| 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 "V8TestInterfaceConstructor3.h" | 8 #include "V8TestInterfaceConstructor3.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 impl->associateWithWrapper(&V8TestInterfaceConstructor3::wrapperTypeInfo, wr
apper, info.GetIsolate()); | 45 impl->associateWithWrapper(&V8TestInterfaceConstructor3::wrapperTypeInfo, wr
apper, info.GetIsolate()); |
| 46 v8SetReturnValue(info, wrapper); | 46 v8SetReturnValue(info, wrapper); |
| 47 } | 47 } |
| 48 | 48 |
| 49 } // namespace TestInterfaceConstructor3V8Internal | 49 } // namespace TestInterfaceConstructor3V8Internal |
| 50 | 50 |
| 51 void V8TestInterfaceConstructor3::constructorCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 51 void V8TestInterfaceConstructor3::constructorCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 52 { | 52 { |
| 53 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); | 53 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); |
| 54 if (!info.IsConstructCall()) { | 54 if (!info.IsConstructCall()) { |
| 55 V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallab
leAsFunction("TestInterfaceConstructor3"), info.GetIsolate()); | 55 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c
onstructorNotCallableAsFunction("TestInterfaceConstructor3")); |
| 56 return; | 56 return; |
| 57 } | 57 } |
| 58 | 58 |
| 59 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { | 59 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { |
| 60 v8SetReturnValue(info, info.Holder()); | 60 v8SetReturnValue(info, info.Holder()); |
| 61 return; | 61 return; |
| 62 } | 62 } |
| 63 | 63 |
| 64 TestInterfaceConstructor3V8Internal::constructor(info); | 64 TestInterfaceConstructor3V8Internal::constructor(info); |
| 65 } | 65 } |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 scriptWrappableBase->toImpl<TestInterfaceConstructor3>()->deref(); | 115 scriptWrappableBase->toImpl<TestInterfaceConstructor3>()->deref(); |
| 116 } | 116 } |
| 117 | 117 |
| 118 template<> | 118 template<> |
| 119 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor3* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) | 119 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor3* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) |
| 120 { | 120 { |
| 121 return toV8(impl, creationContext, isolate); | 121 return toV8(impl, creationContext, isolate); |
| 122 } | 122 } |
| 123 | 123 |
| 124 } // namespace blink | 124 } // namespace blink |
| OLD | NEW |