| OLD | NEW |
| 1 {% extends 'interface_base.cpp' %} | 1 {% extends 'interface_base.cpp' %} |
| 2 | 2 |
| 3 | 3 |
| 4 {##############################################################################} | 4 {##############################################################################} |
| 5 {% block constructor_getter %} | 5 {% block constructor_getter %} |
| 6 {% if has_constructor_attributes %} | 6 {% if has_constructor_attributes %} |
| 7 static void {{cpp_class}}ConstructorGetter(v8::Local<v8::String>, const v8::Prop
ertyCallbackInfo<v8::Value>& info) | 7 static void {{cpp_class}}ConstructorGetter(v8::Local<v8::String>, const v8::Prop
ertyCallbackInfo<v8::Value>& info) |
| 8 { | 8 { |
| 9 v8::Handle<v8::Value> data = info.Data(); | 9 v8::Handle<v8::Value> data = info.Data(); |
| 10 ASSERT(data->IsExternal()); | 10 ASSERT(data->IsExternal()); |
| (...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 {# Special interfaces #} | 920 {# Special interfaces #} |
| 921 {% if interface_name == 'Window' %} | 921 {% if interface_name == 'Window' %} |
| 922 | 922 |
| 923 prototypeTemplate->SetInternalFieldCount(V8Window::internalFieldCount); | 923 prototypeTemplate->SetInternalFieldCount(V8Window::internalFieldCount); |
| 924 functionTemplate->SetHiddenPrototype(true); | 924 functionTemplate->SetHiddenPrototype(true); |
| 925 instanceTemplate->SetInternalFieldCount(V8Window::internalFieldCount); | 925 instanceTemplate->SetInternalFieldCount(V8Window::internalFieldCount); |
| 926 // Set access check callbacks, but turned off initially. | 926 // Set access check callbacks, but turned off initially. |
| 927 // When a context is detached from a frame, turn on the access check. | 927 // When a context is detached from a frame, turn on the access check. |
| 928 // Turning on checks also invalidates inline caches of the object. | 928 // Turning on checks also invalidates inline caches of the object. |
| 929 instanceTemplate->SetAccessCheckCallbacks(V8Window::namedSecurityCheckCustom
, V8Window::indexedSecurityCheckCustom, v8::External::New(isolate, const_cast<Wr
apperTypeInfo*>(&V8Window::wrapperTypeInfo)), false); | 929 instanceTemplate->SetAccessCheckCallbacks(V8Window::namedSecurityCheckCustom
, V8Window::indexedSecurityCheckCustom, v8::External::New(isolate, const_cast<Wr
apperTypeInfo*>(&V8Window::wrapperTypeInfo)), false); |
| 930 {% elif interface_name in ['HTMLDocument'] %} | |
| 931 functionTemplate->SetHiddenPrototype(true); | |
| 932 {% endif %} | 930 {% endif %} |
| 933 | 931 |
| 934 // Custom toString template | 932 // Custom toString template |
| 935 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 933 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 936 } | 934 } |
| 937 | 935 |
| 938 {% endblock %} | 936 {% endblock %} |
| 939 | 937 |
| 940 | 938 |
| 941 {######################################} | 939 {######################################} |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1187 fromInternalPointer(internalPointer)->deref(); | 1185 fromInternalPointer(internalPointer)->deref(); |
| 1188 } | 1186 } |
| 1189 | 1187 |
| 1190 template<> | 1188 template<> |
| 1191 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) | 1189 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) |
| 1192 { | 1190 { |
| 1193 return toV8(impl, creationContext, isolate); | 1191 return toV8(impl, creationContext, isolate); |
| 1194 } | 1192 } |
| 1195 | 1193 |
| 1196 {% endblock %} | 1194 {% endblock %} |
| OLD | NEW |