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 "V8TestException.h" | 8 #include "V8TestException.h" |
9 | 9 |
10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 if (!result.IsEmpty()) | 119 if (!result.IsEmpty()) |
120 return result; | 120 return result; |
121 | 121 |
122 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); | 122 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); |
123 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); | 123 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); |
124 configureV8TestExceptionTemplate(result, isolate); | 124 configureV8TestExceptionTemplate(result, isolate); |
125 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; | 125 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; |
126 return result; | 126 return result; |
127 } | 127 } |
128 | 128 |
129 bool V8TestException::hasInstance(v8::Handle<v8::Value> jsValue, v8::Isolate* is
olate) | 129 bool V8TestException::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* is
olate) |
130 { | 130 { |
131 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValu
e); | 131 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
132 } | 132 } |
133 | 133 |
134 v8::Handle<v8::Object> V8TestException::findInstanceInPrototypeChain(v8::Handle<
v8::Value> jsValue, v8::Isolate* isolate) | 134 v8::Handle<v8::Object> V8TestException::findInstanceInPrototypeChain(v8::Handle<
v8::Value> v8Value, v8::Isolate* isolate) |
135 { | 135 { |
136 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, jsValue); | 136 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
137 } | 137 } |
138 | 138 |
139 TestException* V8TestException::toNativeWithTypeCheck(v8::Isolate* isolate, v8::
Handle<v8::Value> value) | 139 TestException* V8TestException::toNativeWithTypeCheck(v8::Isolate* isolate, v8::
Handle<v8::Value> value) |
140 { | 140 { |
141 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 141 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
142 } | 142 } |
143 | 143 |
144 v8::Handle<v8::Object> V8TestException::createWrapper(PassRefPtr<TestException>
impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 144 v8::Handle<v8::Object> V8TestException::createWrapper(PassRefPtr<TestException>
impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
145 { | 145 { |
146 ASSERT(impl); | 146 ASSERT(impl); |
(...skipping 19 matching lines...) Expand all Loading... |
166 fromInternalPointer(object)->deref(); | 166 fromInternalPointer(object)->deref(); |
167 } | 167 } |
168 | 168 |
169 template<> | 169 template<> |
170 v8::Handle<v8::Value> toV8NoInline(TestException* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) | 170 v8::Handle<v8::Value> toV8NoInline(TestException* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) |
171 { | 171 { |
172 return toV8(impl, creationContext, isolate); | 172 return toV8(impl, creationContext, isolate); |
173 } | 173 } |
174 | 174 |
175 } // namespace WebCore | 175 } // namespace WebCore |
OLD | NEW |