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 "V8TestTypedefs.h" | 8 #include "V8TestTypedefs.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 260 |
261 static void stringArrayMethodStringArrayArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 261 static void stringArrayMethodStringArrayArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
262 { | 262 { |
263 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 263 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
264 TestTypedefsV8Internal::stringArrayMethodStringArrayArgMethod(info); | 264 TestTypedefsV8Internal::stringArrayMethodStringArrayArgMethod(info); |
265 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 265 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
266 } | 266 } |
267 | 267 |
268 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 268 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
269 { | 269 { |
270 if (UNLIKELY(info.Length() < 1)) { | 270 if (info.Length() < 1) { |
271 throwMinimumArityTypeErrorForConstructor("TestTypedefs", 1, info.Length(
), info.GetIsolate()); | 271 throwMinimumArityTypeErrorForConstructor("TestTypedefs", 1, info.Length(
), info.GetIsolate()); |
272 return; | 272 return; |
273 } | 273 } |
274 V8StringResource<> stringArg; | 274 V8StringResource<> stringArg; |
275 { | 275 { |
276 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 276 TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
277 } | 277 } |
278 RefPtr<TestTypedefs> impl = TestTypedefs::create(stringArg); | 278 RefPtr<TestTypedefs> impl = TestTypedefs::create(stringArg); |
279 v8::Handle<v8::Object> wrapper = info.Holder(); | 279 v8::Handle<v8::Object> wrapper = info.Holder(); |
280 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl.release(), &V8
TestTypedefs::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration:
:Independent); | 280 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl.release(), &V8
TestTypedefs::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration:
:Independent); |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 fromInternalPointer(object)->deref(); | 385 fromInternalPointer(object)->deref(); |
386 } | 386 } |
387 | 387 |
388 template<> | 388 template<> |
389 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr
eationContext, v8::Isolate* isolate) | 389 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr
eationContext, v8::Isolate* isolate) |
390 { | 390 { |
391 return toV8(impl, creationContext, isolate); | 391 return toV8(impl, creationContext, isolate); |
392 } | 392 } |
393 | 393 |
394 } // namespace blink | 394 } // namespace blink |
OLD | NEW |