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 "V8TestInterfaceDoNotCheckConstants.h" | 8 #include "V8TestInterfaceDoNotCheckConstants.h" |
9 | 9 |
10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 if (!result.IsEmpty()) | 73 if (!result.IsEmpty()) |
74 return result; | 74 return result; |
75 | 75 |
76 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); | 76 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); |
77 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); | 77 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); |
78 configureV8TestInterfaceDoNotCheckConstantsTemplate(result, isolate); | 78 configureV8TestInterfaceDoNotCheckConstantsTemplate(result, isolate); |
79 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; | 79 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; |
80 return result; | 80 return result; |
81 } | 81 } |
82 | 82 |
83 bool V8TestInterfaceDoNotCheckConstants::hasInstance(v8::Handle<v8::Value> jsVal
ue, v8::Isolate* isolate) | 83 bool V8TestInterfaceDoNotCheckConstants::hasInstance(v8::Handle<v8::Value> v8Val
ue, v8::Isolate* isolate) |
84 { | 84 { |
85 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValu
e); | 85 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
86 } | 86 } |
87 | 87 |
88 v8::Handle<v8::Object> V8TestInterfaceDoNotCheckConstants::findInstanceInPrototy
peChain(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate) | 88 v8::Handle<v8::Object> V8TestInterfaceDoNotCheckConstants::findInstanceInPrototy
peChain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
89 { | 89 { |
90 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, jsValue); | 90 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
91 } | 91 } |
92 | 92 |
93 TestInterfaceDoNotCheckConstants* V8TestInterfaceDoNotCheckConstants::toNativeWi
thTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) | 93 TestInterfaceDoNotCheckConstants* V8TestInterfaceDoNotCheckConstants::toNativeWi
thTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) |
94 { | 94 { |
95 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 95 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
96 } | 96 } |
97 | 97 |
98 v8::Handle<v8::Object> V8TestInterfaceDoNotCheckConstants::createWrapper(PassRef
Ptr<TestInterfaceDoNotCheckConstants> impl, v8::Handle<v8::Object> creationConte
xt, v8::Isolate* isolate) | 98 v8::Handle<v8::Object> V8TestInterfaceDoNotCheckConstants::createWrapper(PassRef
Ptr<TestInterfaceDoNotCheckConstants> impl, v8::Handle<v8::Object> creationConte
xt, v8::Isolate* isolate) |
99 { | 99 { |
100 ASSERT(impl); | 100 ASSERT(impl); |
(...skipping 19 matching lines...) Expand all Loading... |
120 fromInternalPointer(object)->deref(); | 120 fromInternalPointer(object)->deref(); |
121 } | 121 } |
122 | 122 |
123 template<> | 123 template<> |
124 v8::Handle<v8::Value> toV8NoInline(TestInterfaceDoNotCheckConstants* impl, v8::H
andle<v8::Object> creationContext, v8::Isolate* isolate) | 124 v8::Handle<v8::Value> toV8NoInline(TestInterfaceDoNotCheckConstants* impl, v8::H
andle<v8::Object> creationContext, v8::Isolate* isolate) |
125 { | 125 { |
126 return toV8(impl, creationContext, isolate); | 126 return toV8(impl, creationContext, isolate); |
127 } | 127 } |
128 | 128 |
129 } // namespace WebCore | 129 } // namespace WebCore |
OLD | NEW |