| 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 "V8TestException.h" | 8 #include "V8TestException.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 65 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 66 { | 66 { |
| 67 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 67 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 68 TestExceptionV8Internal::toStringMethod(info); | 68 TestExceptionV8Internal::toStringMethod(info); |
| 69 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 69 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 70 } | 70 } |
| 71 | 71 |
| 72 } // namespace TestExceptionV8Internal | 72 } // namespace TestExceptionV8Internal |
| 73 | 73 |
| 74 static const V8DOMConfiguration::AccessorConfiguration V8TestExceptionAccessors[
] = { | 74 static const V8DOMConfiguration::AccessorConfiguration V8TestExceptionAccessors[
] = { |
| 75 {"readonlyUnsignedShortAttribute", TestExceptionV8Internal::readonlyUnsigned
ShortAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl
>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
::ExposedToAllScripts}, | 75 {"readonlyUnsignedShortAttribute", TestExceptionV8Internal::readonlyUnsigned
ShortAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl
>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
::ExposedToAllScripts, V8DOMConfiguration::CheckHolder}, |
| 76 {"readonlyStringAttribute", TestExceptionV8Internal::readonlyStringAttribute
AttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll
Scripts}, | 76 {"readonlyStringAttribute", TestExceptionV8Internal::readonlyStringAttribute
AttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::CheckHolder}, |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 static void installV8TestExceptionTemplate(v8::Local<v8::FunctionTemplate> funct
ionTemplate, v8::Isolate* isolate) | 79 static void installV8TestExceptionTemplate(v8::Local<v8::FunctionTemplate> funct
ionTemplate, v8::Isolate* isolate) |
| 80 { | 80 { |
| 81 functionTemplate->ReadOnlyPrototype(); | 81 functionTemplate->ReadOnlyPrototype(); |
| 82 | 82 |
| 83 v8::Local<v8::Signature> defaultSignature; | 83 v8::Local<v8::Signature> defaultSignature; |
| 84 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestException", v8::Local<v8::FunctionTemplate>(), V8TestExceptio
n::internalFieldCount, | 84 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestException", v8::Local<v8::FunctionTemplate>(), V8TestExceptio
n::internalFieldCount, |
| 85 0, 0, | 85 0, 0, |
| 86 V8TestExceptionAccessors, WTF_ARRAY_LENGTH(V8TestExceptionAccessors), | 86 V8TestExceptionAccessors, WTF_ARRAY_LENGTH(V8TestExceptionAccessors), |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 { | 126 { |
| 127 scriptWrappable->toImpl<TestException>()->ref(); | 127 scriptWrappable->toImpl<TestException>()->ref(); |
| 128 } | 128 } |
| 129 | 129 |
| 130 void V8TestException::derefObject(ScriptWrappable* scriptWrappable) | 130 void V8TestException::derefObject(ScriptWrappable* scriptWrappable) |
| 131 { | 131 { |
| 132 scriptWrappable->toImpl<TestException>()->deref(); | 132 scriptWrappable->toImpl<TestException>()->deref(); |
| 133 } | 133 } |
| 134 | 134 |
| 135 } // namespace blink | 135 } // namespace blink |
| OLD | NEW |