| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 }; | 107 }; |
| 108 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate, V8
TestExceptionConstants, WTF_ARRAY_LENGTH(V8TestExceptionConstants), isolate); | 108 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate, V8
TestExceptionConstants, WTF_ARRAY_LENGTH(V8TestExceptionConstants), isolate); |
| 109 prototypeTemplate->Set(v8AtomicString(isolate, "toString"), v8::FunctionTemp
late::New(isolate, TestExceptionV8Internal::toStringMethodCallback, v8Undefined(
), defaultSignature, 0), static_cast<v8::PropertyAttribute>(v8::DontDelete | v8:
:DontEnum)); | 109 prototypeTemplate->Set(v8AtomicString(isolate, "toString"), v8::FunctionTemp
late::New(isolate, TestExceptionV8Internal::toStringMethodCallback, v8Undefined(
), defaultSignature, 0), static_cast<v8::PropertyAttribute>(v8::DontDelete | v8:
:DontEnum)); |
| 110 | 110 |
| 111 // Custom toString template | 111 // Custom toString template |
| 112 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 112 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 113 } | 113 } |
| 114 | 114 |
| 115 v8::Handle<v8::FunctionTemplate> V8TestException::domTemplate(v8::Isolate* isola
te) | 115 v8::Handle<v8::FunctionTemplate> V8TestException::domTemplate(v8::Isolate* isola
te) |
| 116 { | 116 { |
| 117 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 117 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), configureV8TestExceptionTemplate); |
| 118 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(const_cas
t<WrapperTypeInfo*>(&wrapperTypeInfo)); | |
| 119 if (!result.IsEmpty()) | |
| 120 return result; | |
| 121 | |
| 122 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); | |
| 123 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); | |
| 124 configureV8TestExceptionTemplate(result, isolate); | |
| 125 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; | |
| 126 return result; | |
| 127 } | 118 } |
| 128 | 119 |
| 129 bool V8TestException::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* is
olate) | 120 bool V8TestException::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* is
olate) |
| 130 { | 121 { |
| 131 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 122 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
| 132 } | 123 } |
| 133 | 124 |
| 134 v8::Handle<v8::Object> V8TestException::findInstanceInPrototypeChain(v8::Handle<
v8::Value> v8Value, v8::Isolate* isolate) | 125 v8::Handle<v8::Object> V8TestException::findInstanceInPrototypeChain(v8::Handle<
v8::Value> v8Value, v8::Isolate* isolate) |
| 135 { | 126 { |
| 136 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 127 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 166 fromInternalPointer(object)->deref(); | 157 fromInternalPointer(object)->deref(); |
| 167 } | 158 } |
| 168 | 159 |
| 169 template<> | 160 template<> |
| 170 v8::Handle<v8::Value> toV8NoInline(TestException* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) | 161 v8::Handle<v8::Value> toV8NoInline(TestException* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) |
| 171 { | 162 { |
| 172 return toV8(impl, creationContext, isolate); | 163 return toV8(impl, creationContext, isolate); |
| 173 } | 164 } |
| 174 | 165 |
| 175 } // namespace WebCore | 166 } // namespace WebCore |
| OLD | NEW |