| 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 "V8TestInterfaceConstructor4.h" | 8 #include "V8TestInterfaceConstructor4.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 } | 95 } |
| 96 | 96 |
| 97 TestInterfaceConstructor4V8Internal::constructor(info); | 97 TestInterfaceConstructor4V8Internal::constructor(info); |
| 98 } | 98 } |
| 99 | 99 |
| 100 static void installV8TestInterfaceConstructor4Template(v8::Handle<v8::FunctionTe
mplate> functionTemplate, v8::Isolate* isolate) | 100 static void installV8TestInterfaceConstructor4Template(v8::Handle<v8::FunctionTe
mplate> functionTemplate, v8::Isolate* isolate) |
| 101 { | 101 { |
| 102 functionTemplate->ReadOnlyPrototype(); | 102 functionTemplate->ReadOnlyPrototype(); |
| 103 | 103 |
| 104 v8::Local<v8::Signature> defaultSignature; | 104 v8::Local<v8::Signature> defaultSignature; |
| 105 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl
ate, "TestInterfaceConstructor4", v8::Local<v8::FunctionTemplate>(), V8TestInter
faceConstructor4::internalFieldCount, | 105 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestInterfaceConstructor4", v8::Local<v8::FunctionTemplate>(), V8
TestInterfaceConstructor4::internalFieldCount, |
| 106 0, 0, | 106 0, 0, |
| 107 0, 0, | 107 0, 0, |
| 108 0, 0, | 108 0, 0); |
| 109 isolate); | |
| 110 functionTemplate->SetCallHandler(V8TestInterfaceConstructor4::constructorCal
lback); | 109 functionTemplate->SetCallHandler(V8TestInterfaceConstructor4::constructorCal
lback); |
| 111 functionTemplate->SetLength(1); | 110 functionTemplate->SetLength(1); |
| 112 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 111 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
| 113 ALLOW_UNUSED_LOCAL(instanceTemplate); | 112 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 114 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 113 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
| 115 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 114 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 116 | 115 |
| 117 // Custom toString template | 116 // Custom toString template |
| 118 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 117 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 119 } | 118 } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 148 scriptWrappable->toImpl<TestInterfaceConstructor4>()->deref(); | 147 scriptWrappable->toImpl<TestInterfaceConstructor4>()->deref(); |
| 149 } | 148 } |
| 150 | 149 |
| 151 template<> | 150 template<> |
| 152 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor4* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) | 151 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor4* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) |
| 153 { | 152 { |
| 154 return toV8(impl, creationContext, isolate); | 153 return toV8(impl, creationContext, isolate); |
| 155 } | 154 } |
| 156 | 155 |
| 157 } // namespace blink | 156 } // namespace blink |
| OLD | NEW |