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 "V8TestInterface2.h" | 8 #include "V8TestInterface2.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 410 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
411 } | 411 } |
412 | 412 |
413 } // namespace TestInterface2V8Internal | 413 } // namespace TestInterface2V8Internal |
414 | 414 |
415 void V8TestInterface2::visitDOMWrapper(ScriptWrappableBase* internalPointer, con
st v8::Persistent<v8::Object>& wrapper, v8::Isolate* isolate) | 415 void V8TestInterface2::visitDOMWrapper(ScriptWrappableBase* internalPointer, con
st v8::Persistent<v8::Object>& wrapper, v8::Isolate* isolate) |
416 { | 416 { |
417 TestInterface2* impl = internalPointer->toImpl<TestInterface2>(); | 417 TestInterface2* impl = internalPointer->toImpl<TestInterface2>(); |
418 // The ownerNode() method may return a reference or a pointer. | 418 // The ownerNode() method may return a reference or a pointer. |
419 if (Node* owner = WTF::getPtr(impl->ownerNode())) { | 419 if (Node* owner = WTF::getPtr(impl->ownerNode())) { |
420 Node* root = V8GCController::opaqueRootForGC(owner, isolate); | 420 Node* root = V8GCController::opaqueRootForGC(isolate, owner); |
421 isolate->SetReferenceFromGroup(v8::UniqueId(reinterpret_cast<intptr_t>(r
oot)), wrapper); | 421 isolate->SetReferenceFromGroup(v8::UniqueId(reinterpret_cast<intptr_t>(r
oot)), wrapper); |
422 return; | 422 return; |
423 } | 423 } |
424 setObjectGroup(internalPointer, wrapper, isolate); | 424 setObjectGroup(internalPointer, wrapper, isolate); |
425 } | 425 } |
426 | 426 |
427 static const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] =
{ | 427 static const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] =
{ |
428 {"item", TestInterface2V8Internal::itemMethodCallback, 0, 1, V8DOMConfigurat
ion::ExposedToAllScripts}, | 428 {"item", TestInterface2V8Internal::itemMethodCallback, 0, 1, V8DOMConfigurat
ion::ExposedToAllScripts}, |
429 {"setItem", TestInterface2V8Internal::setItemMethodCallback, 0, 2, V8DOMConf
iguration::ExposedToAllScripts}, | 429 {"setItem", TestInterface2V8Internal::setItemMethodCallback, 0, 2, V8DOMConf
iguration::ExposedToAllScripts}, |
430 {"deleteItem", TestInterface2V8Internal::deleteItemMethodCallback, 0, 1, V8D
OMConfiguration::ExposedToAllScripts}, | 430 {"deleteItem", TestInterface2V8Internal::deleteItemMethodCallback, 0, 1, V8D
OMConfiguration::ExposedToAllScripts}, |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 return 0; | 516 return 0; |
517 } | 517 } |
518 | 518 |
519 template<> | 519 template<> |
520 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) | 520 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) |
521 { | 521 { |
522 return toV8(impl, creationContext, isolate); | 522 return toV8(impl, creationContext, isolate); |
523 } | 523 } |
524 | 524 |
525 } // namespace blink | 525 } // namespace blink |
OLD | NEW |