OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #include "config.h" | 7 #include "config.h" |
8 #include "V8TestInterface3.h" | 8 #include "V8TestInterface3.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 86 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
87 } | 87 } |
88 | 88 |
89 } // namespace TestInterface3V8Internal | 89 } // namespace TestInterface3V8Internal |
90 | 90 |
91 static void installV8TestInterface3Template(v8::Handle<v8::FunctionTemplate> fun
ctionTemplate, v8::Isolate* isolate) | 91 static void installV8TestInterface3Template(v8::Handle<v8::FunctionTemplate> fun
ctionTemplate, v8::Isolate* isolate) |
92 { | 92 { |
93 functionTemplate->ReadOnlyPrototype(); | 93 functionTemplate->ReadOnlyPrototype(); |
94 | 94 |
95 v8::Local<v8::Signature> defaultSignature; | 95 v8::Local<v8::Signature> defaultSignature; |
96 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl
ate, "TestInterface3", v8::Local<v8::FunctionTemplate>(), V8TestInterface3::inte
rnalFieldCount, | 96 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestInterface3", v8::Local<v8::FunctionTemplate>(), V8TestInterfa
ce3::internalFieldCount, |
97 0, 0, | 97 0, 0, |
98 0, 0, | 98 0, 0, |
99 0, 0, | 99 0, 0); |
100 isolate); | |
101 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 100 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
102 ALLOW_UNUSED_LOCAL(instanceTemplate); | 101 ALLOW_UNUSED_LOCAL(instanceTemplate); |
103 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 102 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
104 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 103 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
105 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestInterfac
e3V8Internal::indexedPropertyGetterCallback, TestInterface3V8Internal::indexedPr
opertySetterCallback, 0, TestInterface3V8Internal::indexedPropertyDeleterCallbac
k, indexedPropertyEnumerator<TestInterface3>); | 104 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestInterfac
e3V8Internal::indexedPropertyGetterCallback, TestInterface3V8Internal::indexedPr
opertySetterCallback, 0, TestInterface3V8Internal::indexedPropertyDeleterCallbac
k, indexedPropertyEnumerator<TestInterface3>); |
106 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestInterface3
V8Internal::namedPropertyGetterCallback, TestInterface3V8Internal::namedProperty
SetterCallback, TestInterface3V8Internal::namedPropertyQueryCallback, TestInterf
ace3V8Internal::namedPropertyDeleterCallback, TestInterface3V8Internal::namedPro
pertyEnumeratorCallback); | 105 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestInterface3
V8Internal::namedPropertyGetterCallback, TestInterface3V8Internal::namedProperty
SetterCallback, TestInterface3V8Internal::namedPropertyQueryCallback, TestInterf
ace3V8Internal::namedPropertyDeleterCallback, TestInterface3V8Internal::namedPro
pertyEnumeratorCallback); |
107 | 106 |
108 // Custom toString template | 107 // Custom toString template |
109 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 108 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
110 } | 109 } |
(...skipping 28 matching lines...) Expand all Loading... |
139 scriptWrappable->toImpl<TestInterface3>()->deref(); | 138 scriptWrappable->toImpl<TestInterface3>()->deref(); |
140 } | 139 } |
141 | 140 |
142 template<> | 141 template<> |
143 v8::Handle<v8::Value> toV8NoInline(TestInterface3* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) | 142 v8::Handle<v8::Value> toV8NoInline(TestInterface3* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) |
144 { | 143 { |
145 return toV8(impl, creationContext, isolate); | 144 return toV8(impl, creationContext, isolate); |
146 } | 145 } |
147 | 146 |
148 } // namespace blink | 147 } // namespace blink |
OLD | NEW |