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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 74 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
75 { | 75 { |
76 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 76 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
77 TestExceptionV8Internal::toStringMethod(info); | 77 TestExceptionV8Internal::toStringMethod(info); |
78 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 78 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
79 } | 79 } |
80 | 80 |
81 } // namespace TestExceptionV8Internal | 81 } // namespace TestExceptionV8Internal |
82 | 82 |
83 static const V8DOMConfiguration::AccessorConfiguration V8TestExceptionAccessors[
] = { | 83 static const V8DOMConfiguration::AccessorConfiguration V8TestExceptionAccessors[
] = { |
84 {"readonlyUnsignedShortAttribute", TestExceptionV8Internal::readonlyUnsigned
ShortAttributeAttributeGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::
PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConf
iguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 84 {"readonlyUnsignedShortAttribute", TestExceptionV8Internal::readonlyUnsigned
ShortAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl
>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec
kHolder}, |
85 {"readonlyStringAttribute", TestExceptionV8Internal::readonlyStringAttribute
AttributeGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttrib
ute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP
rototype, V8DOMConfiguration::CheckHolder}, | 85 {"readonlyStringAttribute", TestExceptionV8Internal::readonlyStringAttribute
AttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
86 }; | 86 }; |
87 | 87 |
88 static void installV8TestExceptionTemplate(v8::Local<v8::FunctionTemplate> funct
ionTemplate, v8::Isolate* isolate) | 88 static void installV8TestExceptionTemplate(v8::Local<v8::FunctionTemplate> funct
ionTemplate, v8::Isolate* isolate) |
89 { | 89 { |
90 functionTemplate->ReadOnlyPrototype(); | 90 functionTemplate->ReadOnlyPrototype(); |
91 | 91 |
92 v8::Local<v8::Signature> defaultSignature; | 92 v8::Local<v8::Signature> defaultSignature; |
93 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestException", v8::Local<v8::FunctionTemplate>(), V8TestExceptio
n::internalFieldCount, | 93 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestException", v8::Local<v8::FunctionTemplate>(), V8TestExceptio
n::internalFieldCount, |
94 0, 0, | 94 0, 0, |
95 V8TestExceptionAccessors, WTF_ARRAY_LENGTH(V8TestExceptionAccessors), | 95 V8TestExceptionAccessors, WTF_ARRAY_LENGTH(V8TestExceptionAccessors), |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 { | 135 { |
136 scriptWrappable->toImpl<TestException>()->ref(); | 136 scriptWrappable->toImpl<TestException>()->ref(); |
137 } | 137 } |
138 | 138 |
139 void V8TestException::derefObject(ScriptWrappable* scriptWrappable) | 139 void V8TestException::derefObject(ScriptWrappable* scriptWrappable) |
140 { | 140 { |
141 scriptWrappable->toImpl<TestException>()->deref(); | 141 scriptWrappable->toImpl<TestException>()->deref(); |
142 } | 142 } |
143 | 143 |
144 } // namespace blink | 144 } // namespace blink |
OLD | NEW |