| 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 2202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2213 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); | 2213 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); |
| 2214 TestInterfaceImplementationV8Internal::namedPropertyEnumerator(info); | 2214 TestInterfaceImplementationV8Internal::namedPropertyEnumerator(info); |
| 2215 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2215 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2216 } | 2216 } |
| 2217 | 2217 |
| 2218 } // namespace TestInterfaceImplementationV8Internal | 2218 } // namespace TestInterfaceImplementationV8Internal |
| 2219 | 2219 |
| 2220 void V8TestInterface::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* scr
iptWrappable, const v8::Persistent<v8::Object>& wrapper) | 2220 void V8TestInterface::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* scr
iptWrappable, const v8::Persistent<v8::Object>& wrapper) |
| 2221 { | 2221 { |
| 2222 TestInterfaceImplementation* impl = scriptWrappable->toImpl<TestInterfaceImp
lementation>(); | 2222 TestInterfaceImplementation* impl = scriptWrappable->toImpl<TestInterfaceImp
lementation>(); |
| 2223 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate,
wrapper); | 2223 v8::Local<v8::Object> context = v8::Local<v8::Object>::New(isolate, wrapper)
; |
| 2224 V8WrapperInstantiationScope scope(creationContext, isolate); | 2224 v8::Context::Scope scope(context->CreationContext()); |
| 2225 TestInterfaceImplementation* referencedName = impl->referencedName(); | 2225 TestInterfaceImplementation* referencedName = impl->referencedName(); |
| 2226 if (referencedName) { | 2226 if (referencedName) { |
| 2227 if (DOMDataStore::containsWrapper(referencedName, isolate)) | 2227 if (DOMDataStore::containsWrapper(referencedName, isolate)) |
| 2228 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate); | 2228 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate); |
| 2229 } | 2229 } |
| 2230 } | 2230 } |
| 2231 | 2231 |
| 2232 // Suppress warning: global constructors, because AttributeConfiguration is triv
ial | 2232 // Suppress warning: global constructors, because AttributeConfiguration is triv
ial |
| 2233 // and does not depend on another global objects. | 2233 // and does not depend on another global objects. |
| 2234 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 2234 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2671 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2671 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2672 { | 2672 { |
| 2673 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; | 2673 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; |
| 2674 } | 2674 } |
| 2675 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2675 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2676 { | 2676 { |
| 2677 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; | 2677 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; |
| 2678 } | 2678 } |
| 2679 } // namespace blink | 2679 } // namespace blink |
| 2680 #endif // ENABLE(CONDITION) | 2680 #endif // ENABLE(CONDITION) |
| OLD | NEW |