| 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 "V8TestSpecialOperations.h" | 8 #include "V8TestSpecialOperations.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 V8TestSpecialOperationsMethods, WTF_ARRAY_LENGTH(V8TestSpecialOperations
Methods)); | 171 V8TestSpecialOperationsMethods, WTF_ARRAY_LENGTH(V8TestSpecialOperations
Methods)); |
| 172 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 172 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
| 173 ALLOW_UNUSED_LOCAL(instanceTemplate); | 173 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 174 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 174 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
| 175 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 175 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 176 { | 176 { |
| 177 v8::NamedPropertyHandlerConfiguration config(TestSpecialOperationsV8Inte
rnal::namedPropertyGetterCallback, TestSpecialOperationsV8Internal::namedPropert
ySetterCallback, TestSpecialOperationsV8Internal::namedPropertyQueryCallback, 0,
TestSpecialOperationsV8Internal::namedPropertyEnumeratorCallback); | 177 v8::NamedPropertyHandlerConfiguration config(TestSpecialOperationsV8Inte
rnal::namedPropertyGetterCallback, TestSpecialOperationsV8Internal::namedPropert
ySetterCallback, TestSpecialOperationsV8Internal::namedPropertyQueryCallback, 0,
TestSpecialOperationsV8Internal::namedPropertyEnumeratorCallback); |
| 178 functionTemplate->InstanceTemplate()->SetHandler(config); | 178 functionTemplate->InstanceTemplate()->SetHandler(config); |
| 179 } | 179 } |
| 180 | 180 |
| 181 instanceTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(is
olate, "TestSpecialOperations")); |
| 182 |
| 183 prototypeTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(i
solate, "TestSpecialOperationsPrototype")); |
| 184 |
| 181 // Custom toString template | 185 // Custom toString template |
| 182 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 186 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 183 } | 187 } |
| 184 | 188 |
| 185 v8::Local<v8::FunctionTemplate> V8TestSpecialOperations::domTemplate(v8::Isolate
* isolate) | 189 v8::Local<v8::FunctionTemplate> V8TestSpecialOperations::domTemplate(v8::Isolate
* isolate) |
| 186 { | 190 { |
| 187 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestSpecialOperationsTemplate); | 191 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestSpecialOperationsTemplate); |
| 188 } | 192 } |
| 189 | 193 |
| 190 bool V8TestSpecialOperations::hasInstance(v8::Local<v8::Value> v8Value, v8::Isol
ate* isolate) | 194 bool V8TestSpecialOperations::hasInstance(v8::Local<v8::Value> v8Value, v8::Isol
ate* isolate) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 206 { | 210 { |
| 207 scriptWrappable->toImpl<TestSpecialOperations>()->ref(); | 211 scriptWrappable->toImpl<TestSpecialOperations>()->ref(); |
| 208 } | 212 } |
| 209 | 213 |
| 210 void V8TestSpecialOperations::derefObject(ScriptWrappable* scriptWrappable) | 214 void V8TestSpecialOperations::derefObject(ScriptWrappable* scriptWrappable) |
| 211 { | 215 { |
| 212 scriptWrappable->toImpl<TestSpecialOperations>()->deref(); | 216 scriptWrappable->toImpl<TestSpecialOperations>()->deref(); |
| 213 } | 217 } |
| 214 | 218 |
| 215 } // namespace blink | 219 } // namespace blink |
| OLD | NEW |