| 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 | 405 |
| 406 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A
rray>& info) | 406 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A
rray>& info) |
| 407 { | 407 { |
| 408 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); | 408 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); |
| 409 TestInterface2V8Internal::namedPropertyEnumerator(info); | 409 TestInterface2V8Internal::namedPropertyEnumerator(info); |
| 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* scriptWrappableBase,
const v8::Persistent<v8::Object>& wrapper, v8::Isolate* isolate) | 415 void V8TestInterface2::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappableBase
* scriptWrappableBase, const v8::Persistent<v8::Object>& wrapper) |
| 416 { | 416 { |
| 417 TestInterface2* impl = scriptWrappableBase->toImpl<TestInterface2>(); | 417 TestInterface2* impl = scriptWrappableBase->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(isolate, owner); | 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(scriptWrappableBase, wrapper, isolate); | 424 setObjectGroup(isolate, scriptWrappableBase, wrapper); |
| 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}, |
| 431 {"namedItem", TestInterface2V8Internal::namedItemMethodCallback, 0, 1, V8DOM
Configuration::ExposedToAllScripts}, | 431 {"namedItem", TestInterface2V8Internal::namedItemMethodCallback, 0, 1, V8DOM
Configuration::ExposedToAllScripts}, |
| 432 {"setNamedItem", TestInterface2V8Internal::setNamedItemMethodCallback, 0, 2,
V8DOMConfiguration::ExposedToAllScripts}, | 432 {"setNamedItem", TestInterface2V8Internal::setNamedItemMethodCallback, 0, 2,
V8DOMConfiguration::ExposedToAllScripts}, |
| 433 {"deleteNamedItem", TestInterface2V8Internal::deleteNamedItemMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 433 {"deleteNamedItem", TestInterface2V8Internal::deleteNamedItemMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
| 434 {"stringifierMethod", TestInterface2V8Internal::stringifierMethodMethodCallb
ack, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 434 {"stringifierMethod", TestInterface2V8Internal::stringifierMethodMethodCallb
ack, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 scriptWrappableBase->toImpl<TestInterface2>()->deref(); | 509 scriptWrappableBase->toImpl<TestInterface2>()->deref(); |
| 510 } | 510 } |
| 511 | 511 |
| 512 template<> | 512 template<> |
| 513 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) | 513 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) |
| 514 { | 514 { |
| 515 return toV8(impl, creationContext, isolate); | 515 return toV8(impl, creationContext, isolate); |
| 516 } | 516 } |
| 517 | 517 |
| 518 } // namespace blink | 518 } // namespace blink |
| OLD | NEW |