Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterfaceConstructor2.cpp

Issue 611953003: Canvas2D Performance: fix the bottleneck of hasInstance during JS binding -- overloading (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add code change in Source/bindings/tests/results/ Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "V8TestInterfaceConstructor2.h" 8 #include "V8TestInterfaceConstructor2.h"
9 9
10 #include "bindings/core/v8/Dictionary.h" 10 #include "bindings/core/v8/Dictionary.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 static void constructor4(const v8::FunctionCallbackInfo<v8::Value>& info) 78 static void constructor4(const v8::FunctionCallbackInfo<v8::Value>& info)
79 { 79 {
80 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceConstructor2", info.Holder(), info.GetIsolate()); 80 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceConstructor2", info.Holder(), info.GetIsolate());
81 TestInterfaceEmpty* testInterfaceEmptyArg; 81 TestInterfaceEmpty* testInterfaceEmptyArg;
82 int longArg; 82 int longArg;
83 V8StringResource<> defaultUndefinedOptionalStringArg; 83 V8StringResource<> defaultUndefinedOptionalStringArg;
84 V8StringResource<> defaultNullStringOptionalStringArg; 84 V8StringResource<> defaultNullStringOptionalStringArg;
85 Dictionary defaultUndefinedOptionalDictionaryArg; 85 Dictionary defaultUndefinedOptionalDictionaryArg;
86 V8StringResource<> optionalStringArg; 86 V8StringResource<> optionalStringArg;
87 { 87 {
88 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G etIsolate(), info[0]); 88 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImpl(v8::Handle<v8::Obje ct>::Cast(info[0]));
89 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState); 89 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState);
90 TOSTRING_VOID_INTERNAL(defaultUndefinedOptionalStringArg, info[2]); 90 TOSTRING_VOID_INTERNAL(defaultUndefinedOptionalStringArg, info[2]);
91 if (!info[3]->IsUndefined()) { 91 if (!info[3]->IsUndefined()) {
92 TOSTRING_VOID_INTERNAL(defaultNullStringOptionalStringArg, info[3]); 92 TOSTRING_VOID_INTERNAL(defaultNullStringOptionalStringArg, info[3]);
93 } else { 93 } else {
94 defaultNullStringOptionalStringArg = nullptr; 94 defaultNullStringOptionalStringArg = nullptr;
95 } 95 }
96 if (!isUndefinedOrNull(info[4]) && !info[4]->IsObject()) { 96 if (!isUndefinedOrNull(info[4]) && !info[4]->IsObject()) {
97 exceptionState.throwTypeError("parameter 5 ('defaultUndefinedOptiona lDictionaryArg') is not an object."); 97 exceptionState.throwTypeError("parameter 5 ('defaultUndefinedOptiona lDictionaryArg') is not an object.");
98 exceptionState.throwIfNeeded(); 98 exceptionState.throwIfNeeded();
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 return 0; 245 return 0;
246 } 246 }
247 247
248 template<> 248 template<>
249 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate) 249 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate)
250 { 250 {
251 return toV8(impl, creationContext, isolate); 251 return toV8(impl, creationContext, isolate);
252 } 252 }
253 253
254 } // namespace blink 254 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698