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. | 5 // This file has been auto-generated by code_generator_v8.py. |
6 // DO NOT MODIFY! | 6 // DO NOT MODIFY! |
7 | 7 |
8 // clang-format off | 8 // clang-format off |
9 #include "V8TestConstants.h" | 9 #include "V8TestConstants.h" |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 static_assert( | 48 static_assert( |
49 std::is_same<decltype(&TestConstants::hasPendingActivity), | 49 std::is_same<decltype(&TestConstants::hasPendingActivity), |
50 decltype(&ScriptWrappable::hasPendingActivity)>::value, | 50 decltype(&ScriptWrappable::hasPendingActivity)>::value, |
51 "TestConstants is overriding hasPendingActivity(), but is not specifying " | 51 "TestConstants is overriding hasPendingActivity(), but is not specifying " |
52 "[ActiveScriptWrappable] extended attribute in the IDL file. " | 52 "[ActiveScriptWrappable] extended attribute in the IDL file. " |
53 "Be consistent."); | 53 "Be consistent."); |
54 | 54 |
55 namespace TestConstantsV8Internal { | 55 namespace TestConstantsV8Internal { |
56 | 56 |
57 void DEPRECATED_CONSTANTConstantGetterCallback(v8::Local<v8::Name>, const v8::Pr
opertyCallbackInfo<v8::Value>& info) { | 57 void DEPRECATED_CONSTANTConstantGetterCallback(v8::Local<v8::Name>, const v8::Pr
opertyCallbackInfo<v8::Value>& info) { |
58 Deprecation::countDeprecationIfNotPrivateScript(info.GetIsolate(), currentExec
utionContext(info.GetIsolate()), UseCounter::Constant); | 58 Deprecation::countDeprecation(currentExecutionContext(info.GetIsolate()), UseC
ounter::Constant); |
59 v8SetReturnValueInt(info, 1); | 59 v8SetReturnValueInt(info, 1); |
60 } | 60 } |
61 | 61 |
62 void MEASURED_CONSTANTConstantGetterCallback(v8::Local<v8::Name>, const v8::Prop
ertyCallbackInfo<v8::Value>& info) { | 62 void MEASURED_CONSTANTConstantGetterCallback(v8::Local<v8::Name>, const v8::Prop
ertyCallbackInfo<v8::Value>& info) { |
63 UseCounter::countIfNotPrivateScript(info.GetIsolate(), currentExecutionContext
(info.GetIsolate()), UseCounter::Constant); | 63 UseCounter::count(currentExecutionContext(info.GetIsolate()), UseCounter::Cons
tant); |
64 v8SetReturnValueInt(info, 1); | 64 v8SetReturnValueInt(info, 1); |
65 } | 65 } |
66 | 66 |
67 } // namespace TestConstantsV8Internal | 67 } // namespace TestConstantsV8Internal |
68 | 68 |
69 static void installV8TestConstantsTemplate(v8::Isolate* isolate, const DOMWrappe
rWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { | 69 static void installV8TestConstantsTemplate(v8::Isolate* isolate, const DOMWrappe
rWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { |
70 // Initialize the interface object's template. | 70 // Initialize the interface object's template. |
71 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestConstants::wrapperTypeInfo.interfaceName, v8::Local<v8::FunctionTemplate>
(), V8TestConstants::internalFieldCount); | 71 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestConstants::wrapperTypeInfo.interfaceName, v8::Local<v8::FunctionTemplate>
(), V8TestConstants::internalFieldCount); |
72 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 72 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
73 ALLOW_UNUSED_LOCAL(signature); | 73 ALLOW_UNUSED_LOCAL(signature); |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 188 |
189 v8::Local<v8::Object> V8TestConstants::findInstanceInPrototypeChain(v8::Local<v8
::Value> v8Value, v8::Isolate* isolate) { | 189 v8::Local<v8::Object> V8TestConstants::findInstanceInPrototypeChain(v8::Local<v8
::Value> v8Value, v8::Isolate* isolate) { |
190 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); | 190 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); |
191 } | 191 } |
192 | 192 |
193 TestConstants* V8TestConstants::toImplWithTypeCheck(v8::Isolate* isolate, v8::Lo
cal<v8::Value> value) { | 193 TestConstants* V8TestConstants::toImplWithTypeCheck(v8::Isolate* isolate, v8::Lo
cal<v8::Value> value) { |
194 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 194 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
195 } | 195 } |
196 | 196 |
197 } // namespace blink | 197 } // namespace blink |
OLD | NEW |