| 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 "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 v8::Local<v8::ObjectTemplate> instanceTemplate ALLOW_UNUSED = functionTempla
te->InstanceTemplate(); | 187 v8::Local<v8::ObjectTemplate> instanceTemplate ALLOW_UNUSED = functionTempla
te->InstanceTemplate(); |
| 188 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl
ate->PrototypeTemplate(); | 188 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl
ate->PrototypeTemplate(); |
| 189 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestSpecialOpe
rationsV8Internal::namedPropertyGetterCallback, TestSpecialOperationsV8Internal:
:namedPropertySetterCallback, TestSpecialOperationsV8Internal::namedPropertyQuer
yCallback, 0, TestSpecialOperationsV8Internal::namedPropertyEnumeratorCallback); | 189 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestSpecialOpe
rationsV8Internal::namedPropertyGetterCallback, TestSpecialOperationsV8Internal:
:namedPropertySetterCallback, TestSpecialOperationsV8Internal::namedPropertyQuer
yCallback, 0, TestSpecialOperationsV8Internal::namedPropertyEnumeratorCallback); |
| 190 | 190 |
| 191 // Custom toString template | 191 // Custom toString template |
| 192 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 192 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 193 } | 193 } |
| 194 | 194 |
| 195 v8::Handle<v8::FunctionTemplate> V8TestSpecialOperations::domTemplate(v8::Isolat
e* isolate) | 195 v8::Handle<v8::FunctionTemplate> V8TestSpecialOperations::domTemplate(v8::Isolat
e* isolate) |
| 196 { | 196 { |
| 197 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 197 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), configureV8TestSpecialOperationsTemplate); |
| 198 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(const_cas
t<WrapperTypeInfo*>(&wrapperTypeInfo)); | |
| 199 if (!result.IsEmpty()) | |
| 200 return result; | |
| 201 | |
| 202 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); | |
| 203 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); | |
| 204 configureV8TestSpecialOperationsTemplate(result, isolate); | |
| 205 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; | |
| 206 return result; | |
| 207 } | 198 } |
| 208 | 199 |
| 209 bool V8TestSpecialOperations::hasInstance(v8::Handle<v8::Value> v8Value, v8::Iso
late* isolate) | 200 bool V8TestSpecialOperations::hasInstance(v8::Handle<v8::Value> v8Value, v8::Iso
late* isolate) |
| 210 { | 201 { |
| 211 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 202 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
| 212 } | 203 } |
| 213 | 204 |
| 214 v8::Handle<v8::Object> V8TestSpecialOperations::findInstanceInPrototypeChain(v8:
:Handle<v8::Value> v8Value, v8::Isolate* isolate) | 205 v8::Handle<v8::Object> V8TestSpecialOperations::findInstanceInPrototypeChain(v8:
:Handle<v8::Value> v8Value, v8::Isolate* isolate) |
| 215 { | 206 { |
| 216 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 207 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 246 fromInternalPointer(object)->deref(); | 237 fromInternalPointer(object)->deref(); |
| 247 } | 238 } |
| 248 | 239 |
| 249 template<> | 240 template<> |
| 250 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) | 241 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) |
| 251 { | 242 { |
| 252 return toV8(impl, creationContext, isolate); | 243 return toV8(impl, creationContext, isolate); |
| 253 } | 244 } |
| 254 | 245 |
| 255 } // namespace WebCore | 246 } // namespace WebCore |
| OLD | NEW |