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 "V8TestInterfaceConstructor.h" | 8 #include "V8TestInterfaceConstructor.h" |
9 | 9 |
10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 } | 292 } |
293 | 293 |
294 TestInterfaceConstructorV8Internal::constructor(info); | 294 TestInterfaceConstructorV8Internal::constructor(info); |
295 } | 295 } |
296 | 296 |
297 static void installV8TestInterfaceConstructorTemplate(v8::Handle<v8::FunctionTem
plate> functionTemplate, v8::Isolate* isolate) | 297 static void installV8TestInterfaceConstructorTemplate(v8::Handle<v8::FunctionTem
plate> functionTemplate, v8::Isolate* isolate) |
298 { | 298 { |
299 functionTemplate->ReadOnlyPrototype(); | 299 functionTemplate->ReadOnlyPrototype(); |
300 | 300 |
301 v8::Local<v8::Signature> defaultSignature; | 301 v8::Local<v8::Signature> defaultSignature; |
302 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl
ate, "TestInterfaceConstructor", v8::Local<v8::FunctionTemplate>(), V8TestInterf
aceConstructor::internalFieldCount, | 302 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestInterfaceConstructor", v8::Local<v8::FunctionTemplate>(), V8T
estInterfaceConstructor::internalFieldCount, |
303 0, 0, | 303 0, 0, |
304 0, 0, | 304 0, 0, |
305 0, 0, | 305 0, 0); |
306 isolate); | |
307 functionTemplate->SetCallHandler(V8TestInterfaceConstructor::constructorCall
back); | 306 functionTemplate->SetCallHandler(V8TestInterfaceConstructor::constructorCall
back); |
308 functionTemplate->SetLength(0); | 307 functionTemplate->SetLength(0); |
309 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 308 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
310 ALLOW_UNUSED_LOCAL(instanceTemplate); | 309 ALLOW_UNUSED_LOCAL(instanceTemplate); |
311 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 310 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
312 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 311 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
313 | 312 |
314 // Custom toString template | 313 // Custom toString template |
315 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 314 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
316 } | 315 } |
(...skipping 28 matching lines...) Expand all Loading... |
345 scriptWrappable->toImpl<TestInterfaceConstructor>()->deref(); | 344 scriptWrappable->toImpl<TestInterfaceConstructor>()->deref(); |
346 } | 345 } |
347 | 346 |
348 template<> | 347 template<> |
349 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) | 348 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) |
350 { | 349 { |
351 return toV8(impl, creationContext, isolate); | 350 return toV8(impl, creationContext, isolate); |
352 } | 351 } |
353 | 352 |
354 } // namespace blink | 353 } // namespace blink |
OLD | NEW |