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 "V8TestInterfaceConstructor.h" | 8 #include "V8TestInterfaceConstructor.h" |
9 | 9 |
10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::createForJ
SConstructor(scriptState, executionContext, document, arg, optArg, exceptionStat
e); | 259 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::createForJ
SConstructor(scriptState, executionContext, document, arg, optArg, exceptionStat
e); |
260 if (exceptionState.hadException()) { | 260 if (exceptionState.hadException()) { |
261 exceptionState.throwIfNeeded(); | 261 exceptionState.throwIfNeeded(); |
262 return; | 262 return; |
263 } | 263 } |
264 v8::Local<v8::Object> wrapper = info.Holder(); | 264 v8::Local<v8::Object> wrapper = info.Holder(); |
265 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceConstructorCon
structor::wrapperTypeInfo, wrapper); | 265 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceConstructorCon
structor::wrapperTypeInfo, wrapper); |
266 v8SetReturnValue(info, wrapper); | 266 v8SetReturnValue(info, wrapper); |
267 } | 267 } |
268 | 268 |
269 v8::Handle<v8::FunctionTemplate> V8TestInterfaceConstructorConstructor::domTempl
ate(v8::Isolate* isolate) | 269 v8::Local<v8::FunctionTemplate> V8TestInterfaceConstructorConstructor::domTempla
te(v8::Isolate* isolate) |
270 { | 270 { |
271 static int domTemplateKey; // This address is used for a key to look up the
dom template. | 271 static int domTemplateKey; // This address is used for a key to look up the
dom template. |
272 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 272 V8PerIsolateData* data = V8PerIsolateData::from(isolate); |
273 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(&domTempl
ateKey); | 273 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(&domTempl
ateKey); |
274 if (!result.IsEmpty()) | 274 if (!result.IsEmpty()) |
275 return result; | 275 return result; |
276 | 276 |
277 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "BuildDOMTemplate"); | 277 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "BuildDOMTemplate"); |
278 result = v8::FunctionTemplate::New(isolate, V8TestInterfaceConstructorConstr
uctorCallback); | 278 result = v8::FunctionTemplate::New(isolate, V8TestInterfaceConstructorConstr
uctorCallback); |
279 v8::Local<v8::ObjectTemplate> instanceTemplate = result->InstanceTemplate(); | 279 v8::Local<v8::ObjectTemplate> instanceTemplate = result->InstanceTemplate(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 functionTemplate->SetLength(0); | 314 functionTemplate->SetLength(0); |
315 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 315 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
316 ALLOW_UNUSED_LOCAL(instanceTemplate); | 316 ALLOW_UNUSED_LOCAL(instanceTemplate); |
317 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 317 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
318 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 318 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
319 | 319 |
320 // Custom toString template | 320 // Custom toString template |
321 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 321 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
322 } | 322 } |
323 | 323 |
324 v8::Handle<v8::FunctionTemplate> V8TestInterfaceConstructor::domTemplate(v8::Iso
late* isolate) | 324 v8::Local<v8::FunctionTemplate> V8TestInterfaceConstructor::domTemplate(v8::Isol
ate* isolate) |
325 { | 325 { |
326 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceConstructorTemplate); | 326 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceConstructorTemplate); |
327 } | 327 } |
328 | 328 |
329 bool V8TestInterfaceConstructor::hasInstance(v8::Handle<v8::Value> v8Value, v8::
Isolate* isolate) | 329 bool V8TestInterfaceConstructor::hasInstance(v8::Handle<v8::Value> v8Value, v8::
Isolate* isolate) |
330 { | 330 { |
331 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 331 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
332 } | 332 } |
333 | 333 |
334 v8::Handle<v8::Object> V8TestInterfaceConstructor::findInstanceInPrototypeChain(
v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 334 v8::Handle<v8::Object> V8TestInterfaceConstructor::findInstanceInPrototypeChain(
v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
(...skipping 10 matching lines...) Expand all Loading... |
345 { | 345 { |
346 scriptWrappable->toImpl<TestInterfaceConstructor>()->ref(); | 346 scriptWrappable->toImpl<TestInterfaceConstructor>()->ref(); |
347 } | 347 } |
348 | 348 |
349 void V8TestInterfaceConstructor::derefObject(ScriptWrappable* scriptWrappable) | 349 void V8TestInterfaceConstructor::derefObject(ScriptWrappable* scriptWrappable) |
350 { | 350 { |
351 scriptWrappable->toImpl<TestInterfaceConstructor>()->deref(); | 351 scriptWrappable->toImpl<TestInterfaceConstructor>()->deref(); |
352 } | 352 } |
353 | 353 |
354 } // namespace blink | 354 } // namespace blink |
OLD | NEW |