| 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 "V8TestObject.h" | 8 #include "V8TestObject.h" |
| 9 | 9 |
| 10 #include "HTMLNames.h" | 10 #include "HTMLNames.h" |
| (...skipping 9420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9431 | 9431 |
| 9432 void V8TestObject::installPerContextEnabledMethods(v8::Handle<v8::Object> protot
ypeTemplate, v8::Isolate* isolate) | 9432 void V8TestObject::installPerContextEnabledMethods(v8::Handle<v8::Object> protot
ypeTemplate, v8::Isolate* isolate) |
| 9433 { | 9433 { |
| 9434 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); | 9434 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); |
| 9435 | 9435 |
| 9436 ExecutionContext* context = toExecutionContext(prototypeTemplate->CreationCo
ntext()); | 9436 ExecutionContext* context = toExecutionContext(prototypeTemplate->CreationCo
ntext()); |
| 9437 if (context && context->isDocument() && ContextFeatures::featureNameEnabled(
toDocument(context))) | 9437 if (context && context->isDocument() && ContextFeatures::featureNameEnabled(
toDocument(context))) |
| 9438 prototypeTemplate->Set(v8AtomicString(isolate, "perContextEnabledVoidMet
hod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::perContextEnable
dVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); | 9438 prototypeTemplate->Set(v8AtomicString(isolate, "perContextEnabledVoidMet
hod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::perContextEnable
dVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); |
| 9439 } | 9439 } |
| 9440 | 9440 |
| 9441 v8::Handle<v8::Object> wrap(TestObject* impl, v8::Handle<v8::Object> creationCon
text, v8::Isolate* isolate) |
| 9442 { |
| 9443 ASSERT(impl); |
| 9444 ASSERT(!DOMDataStore::containsWrapper<V8TestObject>(impl, isolate)); |
| 9445 return V8TestObject::createWrapper(impl, creationContext, isolate); |
| 9446 } |
| 9447 |
| 9441 v8::Handle<v8::Object> V8TestObject::createWrapper(PassRefPtr<TestObject> impl,
v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 9448 v8::Handle<v8::Object> V8TestObject::createWrapper(PassRefPtr<TestObject> impl,
v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 9442 { | 9449 { |
| 9443 ASSERT(impl); | 9450 ASSERT(impl); |
| 9444 ASSERT(!DOMDataStore::containsWrapper<V8TestObject>(impl.get(), isolate)); | 9451 ASSERT(!DOMDataStore::containsWrapper<V8TestObject>(impl.get(), isolate)); |
| 9445 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { | 9452 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { |
| 9446 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); | 9453 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); |
| 9447 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have | 9454 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have |
| 9448 // the same object de-ref functions, though, so use that as the basis of
the check. | 9455 // the same object de-ref functions, though, so use that as the basis of
the check. |
| 9449 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); | 9456 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); |
| 9450 } | 9457 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 9463 fromInternalPointer(object)->deref(); | 9470 fromInternalPointer(object)->deref(); |
| 9464 } | 9471 } |
| 9465 | 9472 |
| 9466 template<> | 9473 template<> |
| 9467 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 9474 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
| 9468 { | 9475 { |
| 9469 return toV8(impl, creationContext, isolate); | 9476 return toV8(impl, creationContext, isolate); |
| 9470 } | 9477 } |
| 9471 | 9478 |
| 9472 } // namespace WebCore | 9479 } // namespace WebCore |
| OLD | NEW |