| 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 "V8TestSpecialOperationsNotEnumerable.h" | 8 #include "V8TestSpecialOperationsNotEnumerable.h" |
| 9 | 9 |
| 10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 if (!result.IsEmpty()) | 108 if (!result.IsEmpty()) |
| 109 return result; | 109 return result; |
| 110 | 110 |
| 111 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); | 111 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); |
| 112 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); | 112 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); |
| 113 configureV8TestSpecialOperationsNotEnumerableTemplate(result, isolate); | 113 configureV8TestSpecialOperationsNotEnumerableTemplate(result, isolate); |
| 114 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; | 114 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; |
| 115 return result; | 115 return result; |
| 116 } | 116 } |
| 117 | 117 |
| 118 bool V8TestSpecialOperationsNotEnumerable::hasInstance(v8::Handle<v8::Value> jsV
alue, v8::Isolate* isolate) | 118 bool V8TestSpecialOperationsNotEnumerable::hasInstance(v8::Handle<v8::Value> v8V
alue, v8::Isolate* isolate) |
| 119 { | 119 { |
| 120 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValu
e); | 120 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
| 121 } | 121 } |
| 122 | 122 |
| 123 v8::Handle<v8::Object> V8TestSpecialOperationsNotEnumerable::findInstanceInProto
typeChain(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate) | 123 v8::Handle<v8::Object> V8TestSpecialOperationsNotEnumerable::findInstanceInProto
typeChain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
| 124 { | 124 { |
| 125 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, jsValue); | 125 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| 126 } | 126 } |
| 127 | 127 |
| 128 TestSpecialOperationsNotEnumerable* V8TestSpecialOperationsNotEnumerable::toNati
veWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) | 128 TestSpecialOperationsNotEnumerable* V8TestSpecialOperationsNotEnumerable::toNati
veWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) |
| 129 { | 129 { |
| 130 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 130 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
| 131 } | 131 } |
| 132 | 132 |
| 133 v8::Handle<v8::Object> V8TestSpecialOperationsNotEnumerable::createWrapper(PassR
efPtr<TestSpecialOperationsNotEnumerable> impl, v8::Handle<v8::Object> creationC
ontext, v8::Isolate* isolate) | 133 v8::Handle<v8::Object> V8TestSpecialOperationsNotEnumerable::createWrapper(PassR
efPtr<TestSpecialOperationsNotEnumerable> impl, v8::Handle<v8::Object> creationC
ontext, v8::Isolate* isolate) |
| 134 { | 134 { |
| 135 ASSERT(impl); | 135 ASSERT(impl); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 155 fromInternalPointer(object)->deref(); | 155 fromInternalPointer(object)->deref(); |
| 156 } | 156 } |
| 157 | 157 |
| 158 template<> | 158 template<> |
| 159 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperationsNotEnumerable* impl, v8:
:Handle<v8::Object> creationContext, v8::Isolate* isolate) | 159 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperationsNotEnumerable* impl, v8:
:Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 160 { | 160 { |
| 161 return toV8(impl, creationContext, isolate); | 161 return toV8(impl, creationContext, isolate); |
| 162 } | 162 } |
| 163 | 163 |
| 164 } // namespace WebCore | 164 } // namespace WebCore |
| OLD | NEW |