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 "V8TestInterfaceConstructor3.h" | 8 #include "V8TestInterfaceConstructor3.h" |
9 | 9 |
10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 if (!result.IsEmpty()) | 102 if (!result.IsEmpty()) |
103 return result; | 103 return result; |
104 | 104 |
105 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); | 105 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); |
106 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); | 106 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); |
107 configureV8TestInterfaceConstructor3Template(result, isolate); | 107 configureV8TestInterfaceConstructor3Template(result, isolate); |
108 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; | 108 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; |
109 return result; | 109 return result; |
110 } | 110 } |
111 | 111 |
112 bool V8TestInterfaceConstructor3::hasInstance(v8::Handle<v8::Value> jsValue, v8:
:Isolate* isolate) | 112 bool V8TestInterfaceConstructor3::hasInstance(v8::Handle<v8::Value> v8Value, v8:
:Isolate* isolate) |
113 { | 113 { |
114 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValu
e); | 114 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
115 } | 115 } |
116 | 116 |
117 v8::Handle<v8::Object> V8TestInterfaceConstructor3::findInstanceInPrototypeChain
(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate) | 117 v8::Handle<v8::Object> V8TestInterfaceConstructor3::findInstanceInPrototypeChain
(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
118 { | 118 { |
119 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, jsValue); | 119 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
120 } | 120 } |
121 | 121 |
122 TestInterfaceConstructor3* V8TestInterfaceConstructor3::toNativeWithTypeCheck(v8
::Isolate* isolate, v8::Handle<v8::Value> value) | 122 TestInterfaceConstructor3* V8TestInterfaceConstructor3::toNativeWithTypeCheck(v8
::Isolate* isolate, v8::Handle<v8::Value> value) |
123 { | 123 { |
124 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 124 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
125 } | 125 } |
126 | 126 |
127 v8::Handle<v8::Object> V8TestInterfaceConstructor3::createWrapper(PassRefPtr<Tes
tInterfaceConstructor3> impl, v8::Handle<v8::Object> creationContext, v8::Isolat
e* isolate) | 127 v8::Handle<v8::Object> V8TestInterfaceConstructor3::createWrapper(PassRefPtr<Tes
tInterfaceConstructor3> impl, v8::Handle<v8::Object> creationContext, v8::Isolat
e* isolate) |
128 { | 128 { |
129 ASSERT(impl); | 129 ASSERT(impl); |
(...skipping 19 matching lines...) Expand all Loading... |
149 fromInternalPointer(object)->deref(); | 149 fromInternalPointer(object)->deref(); |
150 } | 150 } |
151 | 151 |
152 template<> | 152 template<> |
153 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor3* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) | 153 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor3* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) |
154 { | 154 { |
155 return toV8(impl, creationContext, isolate); | 155 return toV8(impl, creationContext, isolate); |
156 } | 156 } |
157 | 157 |
158 } // namespace WebCore | 158 } // namespace WebCore |
OLD | NEW |