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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 instanceTemplate->SetInternalFieldCount(V8TestInterfaceConstructor::internal
FieldCount); | 273 instanceTemplate->SetInternalFieldCount(V8TestInterfaceConstructor::internal
FieldCount); |
274 result->SetClassName(v8AtomicString(isolate, "TestInterfaceConstructor")); | 274 result->SetClassName(v8AtomicString(isolate, "TestInterfaceConstructor")); |
275 result->Inherit(V8TestInterfaceConstructor::domTemplate(isolate)); | 275 result->Inherit(V8TestInterfaceConstructor::domTemplate(isolate)); |
276 data->setDOMTemplate(&domTemplateKey, result); | 276 data->setDOMTemplate(&domTemplateKey, result); |
277 return result; | 277 return result; |
278 } | 278 } |
279 | 279 |
280 void V8TestInterfaceConstructor::constructorCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 280 void V8TestInterfaceConstructor::constructorCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
281 { | 281 { |
282 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); | 282 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); |
283 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te
stFeature); | 283 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); |
284 if (!info.IsConstructCall()) { | 284 if (!info.IsConstructCall()) { |
285 V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallab
leAsFunction("TestInterfaceConstructor"), info.GetIsolate()); | 285 V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallab
leAsFunction("TestInterfaceConstructor"), info.GetIsolate()); |
286 return; | 286 return; |
287 } | 287 } |
288 | 288 |
289 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { | 289 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { |
290 v8SetReturnValue(info, info.Holder()); | 290 v8SetReturnValue(info, info.Holder()); |
291 return; | 291 return; |
292 } | 292 } |
293 | 293 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 return 0; | 352 return 0; |
353 } | 353 } |
354 | 354 |
355 template<> | 355 template<> |
356 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) | 356 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) |
357 { | 357 { |
358 return toV8(impl, creationContext, isolate); | 358 return toV8(impl, creationContext, isolate); |
359 } | 359 } |
360 | 360 |
361 } // namespace blink | 361 } // namespace blink |
OLD | NEW |