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 "V8TestInterface5.h" | 9 #include "V8TestInterface5.h" |
10 | 10 |
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
900 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); | 900 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); |
901 TestInterface5ImplementationV8Internal::namedPropertyEnumerator(info); | 901 TestInterface5ImplementationV8Internal::namedPropertyEnumerator(info); |
902 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 902 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
903 } | 903 } |
904 | 904 |
905 } // namespace TestInterface5ImplementationV8Internal | 905 } // namespace TestInterface5ImplementationV8Internal |
906 | 906 |
907 void V8TestInterface5::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* sc
riptWrappable, const v8::Persistent<v8::Object>& wrapper) | 907 void V8TestInterface5::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* sc
riptWrappable, const v8::Persistent<v8::Object>& wrapper) |
908 { | 908 { |
909 TestInterface5Implementation* impl = scriptWrappable->toImpl<TestInterface5I
mplementation>(); | 909 TestInterface5Implementation* impl = scriptWrappable->toImpl<TestInterface5I
mplementation>(); |
910 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate,
wrapper); | 910 v8::Local<v8::Object> context = v8::Local<v8::Object>::New(isolate, wrapper)
; |
911 V8WrapperInstantiationScope scope(creationContext, isolate); | 911 v8::Context::Scope scope(context->CreationContext()); |
912 TestInterface5Implementation* referencedName = impl->referencedName(); | 912 TestInterface5Implementation* referencedName = impl->referencedName(); |
913 if (referencedName) { | 913 if (referencedName) { |
914 if (DOMDataStore::containsWrapper(referencedName, isolate)) | 914 if (DOMDataStore::containsWrapper(referencedName, isolate)) |
915 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate); | 915 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate); |
916 } | 916 } |
917 } | 917 } |
918 | 918 |
919 // Suppress warning: global constructors, because AttributeConfiguration is triv
ial | 919 // Suppress warning: global constructors, because AttributeConfiguration is triv
ial |
920 // and does not depend on another global objects. | 920 // and does not depend on another global objects. |
921 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 921 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1076 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); | 1076 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); |
1077 } | 1077 } |
1078 | 1078 |
1079 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) | 1079 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) |
1080 { | 1080 { |
1081 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); | 1081 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); |
1082 } | 1082 } |
1083 | 1083 |
1084 } // namespace blink | 1084 } // namespace blink |
1085 #endif // ENABLE(CONDITION) | 1085 #endif // ENABLE(CONDITION) |
OLD | NEW |