Changeset 60932 in webkit
- Timestamp:
- Jun 9, 2010 8:01:40 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r60931 r60932 1 2010-06-09 Anton Muhin <antonm@chromium.org> 2 3 Reviewed by Nate Chapin. 4 5 [v8] First phase of switching to new named property query API 6 https://bugs.webkit.org/show_bug.cgi?id=40303 7 8 To allow better management of attributes of intercepted properties, 9 we're starting to switch to new named property query API which 10 now could return attributes instead of simple property present/absent 11 flag. The next step would remove USE_NEW_QUERY_CALLBACK, then 12 v8 would have them enabled by default. 13 14 * bindings/scripts/CodeGeneratorV8.pm: 15 * bindings/v8/NPV8Object.cpp: 16 * bindings/v8/ScriptArray.cpp: 17 * bindings/v8/ScriptCallStack.cpp: 18 * bindings/v8/SerializedScriptValue.cpp: 19 * bindings/v8/V8Binding.cpp: 20 * bindings/v8/V8DOMWrapper.cpp: 21 * bindings/v8/V8GCController.cpp: 22 * bindings/v8/V8IsolatedContext.cpp: 23 * bindings/v8/V8NPObject.cpp: 24 (WebCore::npObjectQueryProperty): 25 * bindings/v8/V8Proxy.cpp: 26 * bindings/v8/custom/V8PopStateEventCustom.cpp: 27 * bindings/v8/custom/V8StorageCustom.cpp: 28 (WebCore::V8Storage::namedPropertyQuery): 29 * config.h: 30 1 31 2010-06-09 Steve Block <steveblock@google.com> 2 32 -
trunk/WebCore/bindings/scripts/CodeGeneratorV8.pm
r60931 r60932 470 470 push(@headerContent, <<END); 471 471 static v8::Handle<v8::Array> namedPropertyEnumerator(const v8::AccessorInfo&); 472 static v8::Handle<v8:: Boolean> namedPropertyQuery(v8::Local<v8::String>, const v8::AccessorInfo&);472 static v8::Handle<v8::Integer> namedPropertyQuery(v8::Local<v8::String>, const v8::AccessorInfo&); 473 473 END 474 474 } … … 1549 1549 push(@implContent, $hasSetter ? "V8${interfaceName}::namedPropertySetter, " : "0, "); 1550 1550 # If there is a custom enumerator, there MUST be custom query to properly communicate property attributes. 1551 push(@implContent, $hasEnumerator ? "V8${interfaceName}::namedPropertyQuery, " : "0, ");1551 push(@implContent, $hasEnumerator ? "V8${interfaceName}::namedPropertyQuery, " : "0, "); 1552 1552 push(@implContent, $hasDeleter ? "V8${interfaceName}::namedPropertyDeleter, " : "0, "); 1553 1553 push(@implContent, $hasEnumerator ? "V8${interfaceName}::namedPropertyEnumerator" : "0"); -
trunk/WebCore/bindings/v8/NPV8Object.cpp
r59862 r60932 50 50 51 51 #include <stdio.h> 52 #include <v8.h>53 52 #include <wtf/StringExtras.h> 54 53 -
trunk/WebCore/bindings/v8/ScriptArray.cpp
r54421 r60932 39 39 #include "V8Binding.h" 40 40 #include "V8Proxy.h" 41 42 #include <v8.h>43 41 44 42 namespace WebCore { -
trunk/WebCore/bindings/v8/ScriptCallStack.cpp
r60266 r60932 38 38 39 39 #include <v8-debug.h> 40 #include <v8.h>41 40 42 41 namespace WebCore { -
trunk/WebCore/bindings/v8/SerializedScriptValue.cpp
r57382 r60932 45 45 #include "V8Proxy.h" 46 46 47 #include <v8.h>48 47 #include <wtf/Assertions.h> 49 48 #include <wtf/RefCounted.h> -
trunk/WebCore/bindings/v8/V8Binding.cpp
r56825 r60932 45 45 #include <wtf/text/CString.h> 46 46 47 #include <v8.h>48 49 47 namespace WebCore { 50 48 -
trunk/WebCore/bindings/v8/V8DOMWrapper.cpp
r60670 r60932 83 83 #include <algorithm> 84 84 #include <utility> 85 #include <v8.h>86 85 #include <v8-debug.h> 87 86 #include <wtf/Assertions.h> -
trunk/WebCore/bindings/v8/V8GCController.cpp
r58316 r60932 47 47 #include <algorithm> 48 48 #include <utility> 49 #include <v8.h>50 49 #include <v8-debug.h> 51 50 #include <wtf/HashMap.h> -
trunk/WebCore/bindings/v8/V8IsolatedContext.cpp
r54051 r60932 39 39 #include "V8DOMWindow.h" 40 40 #include "V8HiddenPropertyName.h" 41 #include <v8.h>42 41 43 42 namespace WebCore { -
trunk/WebCore/bindings/v8/V8NPObject.cpp
r60531 r60932 244 244 } 245 245 246 v8::Handle<v8:: Boolean> npObjectQueryProperty(v8::Local<v8::String> name, const v8::AccessorInfo& info)246 v8::Handle<v8::Integer> npObjectQueryProperty(v8::Local<v8::String> name, const v8::AccessorInfo& info) 247 247 { 248 248 NPIdentifier identifier = getStringIdentifier(name); 249 return npObjectGetProperty(info.Holder(), identifier, name).IsEmpty() ? v8::Handle<v8:: Boolean>() : v8::True();249 return npObjectGetProperty(info.Holder(), identifier, name).IsEmpty() ? v8::Handle<v8::Integer>() : v8::Integer::New(v8::None); 250 250 } 251 251 -
trunk/WebCore/bindings/v8/V8Proxy.cpp
r60728 r60932 68 68 #include <stdio.h> 69 69 #include <utility> 70 #include <v8.h>71 70 #include <wtf/Assertions.h> 72 71 #include <wtf/OwnArrayPtr.h> -
trunk/WebCore/bindings/v8/custom/V8PopStateEventCustom.cpp
r58504 r60932 36 36 #include "V8Proxy.h" 37 37 38 #include <v8.h>39 40 38 namespace WebCore { 41 39 -
trunk/WebCore/bindings/v8/custom/V8StorageCustom.cpp
r60531 r60932 80 80 } 81 81 82 v8::Handle<v8:: Boolean> V8Storage::namedPropertyQuery(v8::Local<v8::String> v8Name, const v8::AccessorInfo& info)82 v8::Handle<v8::Integer> V8Storage::namedPropertyQuery(v8::Local<v8::String> v8Name, const v8::AccessorInfo& info) 83 83 { 84 84 INC_STATS("DOM.Storage.NamedPropertyQuery"); … … 88 88 89 89 if (storage->contains(name) && name != "length") 90 return v8:: True();90 return v8::Integer::New(v8::None); 91 91 92 return v8::Handle<v8:: Boolean>();92 return v8::Handle<v8::Integer>(); 93 93 } 94 94 -
trunk/WebCore/config.h
r59537 r60932 224 224 #define WTF_USE_SAFARI_THEME 1 225 225 #endif 226 227 #if defined(WTF_USE_V8) 228 #define USE_NEW_QUERY_CALLBACKS 229 #endif
Note: See TracChangeset
for help on using the changeset viewer.