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 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
9 #include "V8TestInterface.h" | 9 #include "V8TestInterface.h" |
10 | 10 |
(...skipping 2293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2304 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); | 2304 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); |
2305 TestInterfaceImplementationV8Internal::namedPropertyEnumerator(info); | 2305 TestInterfaceImplementationV8Internal::namedPropertyEnumerator(info); |
2306 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2306 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2307 } | 2307 } |
2308 | 2308 |
2309 } // namespace TestInterfaceImplementationV8Internal | 2309 } // namespace TestInterfaceImplementationV8Internal |
2310 | 2310 |
2311 void V8TestInterface::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* scr
iptWrappable, const v8::Persistent<v8::Object>& wrapper) | 2311 void V8TestInterface::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* scr
iptWrappable, const v8::Persistent<v8::Object>& wrapper) |
2312 { | 2312 { |
2313 TestInterfaceImplementation* impl = scriptWrappable->toImpl<TestInterfaceImp
lementation>(); | 2313 TestInterfaceImplementation* impl = scriptWrappable->toImpl<TestInterfaceImp
lementation>(); |
2314 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate,
wrapper); | 2314 v8::Local<v8::Object> context = v8::Local<v8::Object>::New(isolate, wrapper)
; |
2315 V8WrapperInstantiationScope scope(creationContext, isolate); | 2315 v8::Context::Scope scope(context->CreationContext()); |
2316 TestInterfaceImplementation* referencedName = impl->referencedName(); | 2316 TestInterfaceImplementation* referencedName = impl->referencedName(); |
2317 if (referencedName) { | 2317 if (referencedName) { |
2318 if (DOMDataStore::containsWrapper(referencedName, isolate)) | 2318 if (DOMDataStore::containsWrapper(referencedName, isolate)) |
2319 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate); | 2319 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate); |
2320 } | 2320 } |
2321 } | 2321 } |
2322 | 2322 |
2323 // Suppress warning: global constructors, because AttributeConfiguration is triv
ial | 2323 // Suppress warning: global constructors, because AttributeConfiguration is triv
ial |
2324 // and does not depend on another global objects. | 2324 // and does not depend on another global objects. |
2325 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 2325 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2795 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2795 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
2796 { | 2796 { |
2797 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; | 2797 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; |
2798 } | 2798 } |
2799 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2799 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
2800 { | 2800 { |
2801 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; | 2801 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; |
2802 } | 2802 } |
2803 } // namespace blink | 2803 } // namespace blink |
2804 #endif // ENABLE(CONDITION) | 2804 #endif // ENABLE(CONDITION) |
OLD | NEW |