| 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 "V8TestNode.h" | 8 #include "V8TestNode.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 } | 181 } |
| 182 | 182 |
| 183 TestNodeV8Internal::constructor(info); | 183 TestNodeV8Internal::constructor(info); |
| 184 } | 184 } |
| 185 | 185 |
| 186 static void installV8TestNodeTemplate(v8::Handle<v8::FunctionTemplate> functionT
emplate, v8::Isolate* isolate) | 186 static void installV8TestNodeTemplate(v8::Handle<v8::FunctionTemplate> functionT
emplate, v8::Isolate* isolate) |
| 187 { | 187 { |
| 188 functionTemplate->ReadOnlyPrototype(); | 188 functionTemplate->ReadOnlyPrototype(); |
| 189 | 189 |
| 190 v8::Local<v8::Signature> defaultSignature; | 190 v8::Local<v8::Signature> defaultSignature; |
| 191 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl
ate, "TestNode", V8Node::domTemplate(isolate), V8TestNode::internalFieldCount, | 191 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestNode", V8Node::domTemplate(isolate), V8TestNode::internalFiel
dCount, |
| 192 V8TestNodeAttributes, WTF_ARRAY_LENGTH(V8TestNodeAttributes), | 192 V8TestNodeAttributes, WTF_ARRAY_LENGTH(V8TestNodeAttributes), |
| 193 0, 0, | 193 0, 0, |
| 194 0, 0, | 194 0, 0); |
| 195 isolate); | |
| 196 functionTemplate->SetCallHandler(V8TestNode::constructorCallback); | 195 functionTemplate->SetCallHandler(V8TestNode::constructorCallback); |
| 197 functionTemplate->SetLength(0); | 196 functionTemplate->SetLength(0); |
| 198 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 197 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
| 199 ALLOW_UNUSED_LOCAL(instanceTemplate); | 198 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 200 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 199 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
| 201 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 200 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 202 | 201 |
| 203 // Custom toString template | 202 // Custom toString template |
| 204 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 203 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 205 } | 204 } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 #endif | 237 #endif |
| 239 } | 238 } |
| 240 | 239 |
| 241 template<> | 240 template<> |
| 242 v8::Handle<v8::Value> toV8NoInline(TestNode* impl, v8::Handle<v8::Object> creati
onContext, v8::Isolate* isolate) | 241 v8::Handle<v8::Value> toV8NoInline(TestNode* impl, v8::Handle<v8::Object> creati
onContext, v8::Isolate* isolate) |
| 243 { | 242 { |
| 244 return toV8(impl, creationContext, isolate); | 243 return toV8(impl, creationContext, isolate); |
| 245 } | 244 } |
| 246 | 245 |
| 247 } // namespace blink | 246 } // namespace blink |
| OLD | NEW |