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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 v8::Handle<v8::Object> wrapper = info.Holder(); | 45 v8::Handle<v8::Object> wrapper = info.Holder(); |
46 impl->associateWithWrapper(&V8TestInterfaceConstructor4::wrapperTypeInfo, wr
apper, info.GetIsolate()); | 46 impl->associateWithWrapper(&V8TestInterfaceConstructor4::wrapperTypeInfo, wr
apper, info.GetIsolate()); |
47 v8SetReturnValue(info, wrapper); | 47 v8SetReturnValue(info, wrapper); |
48 } | 48 } |
49 | 49 |
50 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info) | 50 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info) |
51 { | 51 { |
52 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor4", info.Holder(), info.GetIsolate()); | 52 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor4", info.Holder(), info.GetIsolate()); |
53 V8StringResource<> scalarValueStringArg; | 53 V8StringResource<> scalarValueStringArg; |
54 { | 54 { |
55 v8::TryCatch block; | |
56 V8RethrowTryCatchScope rethrow(block); | |
57 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(scalarValueStringArg, toScalarValu
eString(info[0], exceptionState), exceptionState); | 55 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(scalarValueStringArg, toScalarValu
eString(info[0], exceptionState), exceptionState); |
58 } | 56 } |
59 RefPtr<TestInterfaceConstructor4> impl = TestInterfaceConstructor4::create(s
calarValueStringArg); | 57 RefPtr<TestInterfaceConstructor4> impl = TestInterfaceConstructor4::create(s
calarValueStringArg); |
60 v8::Handle<v8::Object> wrapper = info.Holder(); | 58 v8::Handle<v8::Object> wrapper = info.Holder(); |
61 impl->associateWithWrapper(&V8TestInterfaceConstructor4::wrapperTypeInfo, wr
apper, info.GetIsolate()); | 59 impl->associateWithWrapper(&V8TestInterfaceConstructor4::wrapperTypeInfo, wr
apper, info.GetIsolate()); |
62 v8SetReturnValue(info, wrapper); | 60 v8SetReturnValue(info, wrapper); |
63 } | 61 } |
64 | 62 |
65 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 63 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
66 { | 64 { |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 return 0; | 157 return 0; |
160 } | 158 } |
161 | 159 |
162 template<> | 160 template<> |
163 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor4* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) | 161 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor4* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) |
164 { | 162 { |
165 return toV8(impl, creationContext, isolate); | 163 return toV8(impl, creationContext, isolate); |
166 } | 164 } |
167 | 165 |
168 } // namespace blink | 166 } // namespace blink |
OLD | NEW |