| 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 26 matching lines...) Expand all Loading... |
| 37 if (UNLIKELY(info.Length() < 1)) { | 37 if (UNLIKELY(info.Length() < 1)) { |
| 38 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct
or("TestInterfaceConstructor3", 1, info.Length(), info.GetIsolate()), info.GetIs
olate()); | 38 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct
or("TestInterfaceConstructor3", 1, info.Length(), info.GetIsolate()), info.GetIs
olate()); |
| 39 return; | 39 return; |
| 40 } | 40 } |
| 41 V8StringResource<> stringArg; | 41 V8StringResource<> stringArg; |
| 42 { | 42 { |
| 43 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 43 TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
| 44 } | 44 } |
| 45 RefPtr<TestInterfaceConstructor3> impl = TestInterfaceConstructor3::create(s
tringArg); | 45 RefPtr<TestInterfaceConstructor3> impl = TestInterfaceConstructor3::create(s
tringArg); |
| 46 v8::Handle<v8::Object> wrapper = info.Holder(); | 46 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 47 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor3>(impl.r
elease(), &V8TestInterfaceConstructor3::wrapperTypeInfo, wrapper, info.GetIsolat
e()); | 47 impl->associateWithWrapper(&V8TestInterfaceConstructor3::wrapperTypeInfo, wr
apper, info.GetIsolate()); |
| 48 v8SetReturnValue(info, wrapper); | 48 v8SetReturnValue(info, wrapper); |
| 49 } | 49 } |
| 50 | 50 |
| 51 } // namespace TestInterfaceConstructor3V8Internal | 51 } // namespace TestInterfaceConstructor3V8Internal |
| 52 | 52 |
| 53 void V8TestInterfaceConstructor3::constructorCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 53 void V8TestInterfaceConstructor3::constructorCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 54 { | 54 { |
| 55 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); | 55 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); |
| 56 if (!info.IsConstructCall()) { | 56 if (!info.IsConstructCall()) { |
| 57 V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallab
leAsFunction("TestInterfaceConstructor3"), info.GetIsolate()); | 57 V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallab
leAsFunction("TestInterfaceConstructor3"), info.GetIsolate()); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 return 0; | 122 return 0; |
| 123 } | 123 } |
| 124 | 124 |
| 125 template<> | 125 template<> |
| 126 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor3* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) | 126 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor3* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) |
| 127 { | 127 { |
| 128 return toV8(impl, creationContext, isolate); | 128 return toV8(impl, creationContext, isolate); |
| 129 } | 129 } |
| 130 | 130 |
| 131 } // namespace blink | 131 } // namespace blink |
| OLD | NEW |