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

Side by Side Diff: Source/bindings/tests/results/core/V8TestObject.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: update auto-generated code for test cases I added, the change in JS binding is applied 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 "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 9981 matching lines...) Expand 10 before | Expand all | Expand 10 after
9992 v8SetReturnValueInt(info, impl->methodImplementedInCPPForPrivateScriptOnly(v alue1, value2)); 9992 v8SetReturnValueInt(info, impl->methodImplementedInCPPForPrivateScriptOnly(v alue1, value2));
9993 } 9993 }
9994 9994
9995 static void methodImplementedInCPPForPrivateScriptOnlyMethodCallback(const v8::F unctionCallbackInfo<v8::Value>& info) 9995 static void methodImplementedInCPPForPrivateScriptOnlyMethodCallback(const v8::F unctionCallbackInfo<v8::Value>& info)
9996 { 9996 {
9997 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9997 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9998 TestObjectV8Internal::methodImplementedInCPPForPrivateScriptOnlyMethod(info) ; 9998 TestObjectV8Internal::methodImplementedInCPPForPrivateScriptOnlyMethod(info) ;
9999 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9999 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10000 } 10000 }
10001 10001
10002 static void typeCheckingMaybeRedundantForOverloadingMethodsA1Method(const v8::Fu nctionCallbackInfo<v8::Value>& info)
10003 {
10004 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsA", "TestObject", info.Holder(), info.GetIso late());
10005 TestObject* impl = V8TestObject::toImpl(info.Holder());
10006 Node* a;
10007 int b;
10008 {
10009 a = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
10010 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(b, toInt32(info[1], exceptionState ), exceptionState);
10011 }
10012 impl->typeCheckingMaybeRedundantForOverloadingMethodsA(a, b);
10013 }
10014
10015 static void typeCheckingMaybeRedundantForOverloadingMethodsA2Method(const v8::Fu nctionCallbackInfo<v8::Value>& info)
10016 {
10017 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsA", "TestObject", info.Holder(), info.GetIso late());
10018 TestObject* impl = V8TestObject::toImpl(info.Holder());
10019 int a;
10020 int b;
10021 {
10022 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(a, toInt32(info[0], exceptionState ), exceptionState);
10023 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(b, toInt32(info[1], exceptionState ), exceptionState);
10024 }
10025 impl->typeCheckingMaybeRedundantForOverloadingMethodsA(a, b);
10026 }
10027
10028 static void typeCheckingMaybeRedundantForOverloadingMethodsAMethod(const v8::Fun ctionCallbackInfo<v8::Value>& info)
10029 {
10030 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsA", "TestObject", info.Holder(), info.GetIso late());
10031 switch (std::min(2, info.Length())) {
10032 case 2:
10033 if (V8Node::hasInstance(info[0], info.GetIsolate())) {
10034 typeCheckingMaybeRedundantForOverloadingMethodsA1Method(info);
10035 return;
10036 }
10037 if (true) {
10038 typeCheckingMaybeRedundantForOverloadingMethodsA2Method(info);
10039 return;
10040 }
10041 break;
10042 default:
10043 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length()));
10044 exceptionState.throwIfNeeded();
10045 return;
10046 }
10047 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
10048 exceptionState.throwIfNeeded();
10049 }
10050
10051 static void typeCheckingMaybeRedundantForOverloadingMethodsAMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
10052 {
10053 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10054 TestObjectV8Internal::typeCheckingMaybeRedundantForOverloadingMethodsAMethod (info);
10055 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10056 }
10057
10058 static void typeCheckingMaybeRedundantForOverloadingMethodsB1Method(const v8::Fu nctionCallbackInfo<v8::Value>& info)
10059 {
10060 TestObject* impl = V8TestObject::toImpl(info.Holder());
10061 Node* a;
10062 {
10063 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) {
10064 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "typeCheckingMaybeRedundantForOverloadingMethodsB", "TestObject", "parameter 1 i s not of type 'Node'."), info.GetIsolate());
10065 return;
10066 }
10067 a = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
10068 }
10069 impl->typeCheckingMaybeRedundantForOverloadingMethodsB(a);
10070 }
10071
10072 static void typeCheckingMaybeRedundantForOverloadingMethodsB2Method(const v8::Fu nctionCallbackInfo<v8::Value>& info)
10073 {
10074 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsB", "TestObject", info.Holder(), info.GetIso late());
10075 TestObject* impl = V8TestObject::toImpl(info.Holder());
10076 int a;
10077 int b;
10078 {
10079 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(a, toInt32(info[0], exceptionState ), exceptionState);
10080 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(b, toInt32(info[1], exceptionState ), exceptionState);
10081 }
10082 impl->typeCheckingMaybeRedundantForOverloadingMethodsB(a, b);
10083 }
10084
10085 static void typeCheckingMaybeRedundantForOverloadingMethodsBMethod(const v8::Fun ctionCallbackInfo<v8::Value>& info)
10086 {
10087 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsB", "TestObject", info.Holder(), info.GetIso late());
10088 switch (std::min(2, info.Length())) {
10089 case 1:
10090 if (true) {
10091 typeCheckingMaybeRedundantForOverloadingMethodsB1Method(info);
10092 return;
10093 }
10094 break;
10095 case 2:
10096 if (true) {
10097 typeCheckingMaybeRedundantForOverloadingMethodsB2Method(info);
10098 return;
10099 }
10100 break;
10101 default:
10102 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
10103 exceptionState.throwIfNeeded();
10104 return;
10105 }
10106 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
10107 exceptionState.throwIfNeeded();
10108 }
10109
10110 static void typeCheckingMaybeRedundantForOverloadingMethodsBMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
10111 {
10112 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10113 TestObjectV8Internal::typeCheckingMaybeRedundantForOverloadingMethodsBMethod (info);
10114 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10115 }
10116
10117 static void typeCheckingMaybeRedundantForOverloadingMethodsC1Method(const v8::Fu nctionCallbackInfo<v8::Value>& info)
10118 {
10119 TestObject* impl = V8TestObject::toImpl(info.Holder());
10120 Node* a;
10121 {
10122 a = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
10123 }
10124 impl->typeCheckingMaybeRedundantForOverloadingMethodsC(a);
10125 }
10126
10127 static void typeCheckingMaybeRedundantForOverloadingMethodsC2Method(const v8::Fu nctionCallbackInfo<v8::Value>& info)
10128 {
10129 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsC", "TestObject", info.Holder(), info.GetIso late());
10130 TestObject* impl = V8TestObject::toImpl(info.Holder());
10131 int a;
10132 int b;
10133 {
10134 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(a, toInt32(info[0], exceptionState ), exceptionState);
10135 if (UNLIKELY(info.Length() <= 1)) {
10136 impl->typeCheckingMaybeRedundantForOverloadingMethodsC(a);
10137 return;
10138 }
10139 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(b, toInt32(info[1], exceptionState ), exceptionState);
10140 }
10141 impl->typeCheckingMaybeRedundantForOverloadingMethodsC(a, b);
10142 }
10143
10144 static void typeCheckingMaybeRedundantForOverloadingMethodsCMethod(const v8::Fun ctionCallbackInfo<v8::Value>& info)
10145 {
10146 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsC", "TestObject", info.Holder(), info.GetIso late());
10147 switch (std::min(2, info.Length())) {
10148 case 1:
10149 if (V8Node::hasInstance(info[0], info.GetIsolate())) {
10150 typeCheckingMaybeRedundantForOverloadingMethodsC1Method(info);
10151 return;
10152 }
10153 if (true) {
10154 typeCheckingMaybeRedundantForOverloadingMethodsC2Method(info);
10155 return;
10156 }
10157 break;
10158 case 2:
10159 if (true) {
10160 typeCheckingMaybeRedundantForOverloadingMethodsC2Method(info);
10161 return;
10162 }
10163 break;
10164 default:
10165 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
10166 exceptionState.throwIfNeeded();
10167 return;
10168 }
10169 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
10170 exceptionState.throwIfNeeded();
10171 }
10172
10173 static void typeCheckingMaybeRedundantForOverloadingMethodsCMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
10174 {
10175 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10176 TestObjectV8Internal::typeCheckingMaybeRedundantForOverloadingMethodsCMethod (info);
10177 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10178 }
10179
10180 static void typeCheckingMaybeRedundantForOverloadingMethodsD1Method(const v8::Fu nctionCallbackInfo<v8::Value>& info)
10181 {
10182 TestObject* impl = V8TestObject::toImpl(info.Holder());
10183 Node* a;
10184 Node* b;
10185 {
10186 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) {
10187 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "typeCheckingMaybeRedundantForOverloadingMethodsD", "TestObject", "parameter 1 i s not of type 'Node'."), info.GetIsolate());
10188 return;
10189 }
10190 a = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
10191 b = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]);
10192 }
10193 impl->typeCheckingMaybeRedundantForOverloadingMethodsD(a, b);
10194 }
10195
10196 static void typeCheckingMaybeRedundantForOverloadingMethodsD2Method(const v8::Fu nctionCallbackInfo<v8::Value>& info)
10197 {
10198 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsD", "TestObject", info.Holder(), info.GetIso late());
10199 TestObject* impl = V8TestObject::toImpl(info.Holder());
10200 Node* a;
10201 int b;
10202 {
10203 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) {
10204 exceptionState.throwTypeError("parameter 1 is not of type 'Node'.");
10205 exceptionState.throwIfNeeded();
10206 return;
10207 }
10208 a = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
10209 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(b, toInt32(info[1], exceptionState ), exceptionState);
10210 }
10211 impl->typeCheckingMaybeRedundantForOverloadingMethodsD(a, b);
10212 }
10213
10214 static void typeCheckingMaybeRedundantForOverloadingMethodsDMethod(const v8::Fun ctionCallbackInfo<v8::Value>& info)
10215 {
10216 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsD", "TestObject", info.Holder(), info.GetIso late());
10217 switch (std::min(2, info.Length())) {
10218 case 2:
10219 if (V8Node::hasInstance(info[1], info.GetIsolate())) {
10220 typeCheckingMaybeRedundantForOverloadingMethodsD1Method(info);
10221 return;
10222 }
10223 if (true) {
10224 typeCheckingMaybeRedundantForOverloadingMethodsD2Method(info);
10225 return;
10226 }
10227 break;
10228 default:
10229 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length()));
10230 exceptionState.throwIfNeeded();
10231 return;
10232 }
10233 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
10234 exceptionState.throwIfNeeded();
10235 }
10236
10237 static void typeCheckingMaybeRedundantForOverloadingMethodsDMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
10238 {
10239 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10240 TestObjectV8Internal::typeCheckingMaybeRedundantForOverloadingMethodsDMethod (info);
10241 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10242 }
10243
10244 static void typeCheckingMaybeRedundantForOverloadingMethodsE1Method(const v8::Fu nctionCallbackInfo<v8::Value>& info)
10245 {
10246 TestObject* impl = V8TestObject::toImpl(info.Holder());
10247 Node* a;
10248 Node* b;
10249 {
10250 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) {
10251 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "typeCheckingMaybeRedundantForOverloadingMethodsE", "TestObject", "parameter 1 i s not of type 'Node'."), info.GetIsolate());
10252 return;
10253 }
10254 a = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
10255 b = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]);
10256 }
10257 impl->typeCheckingMaybeRedundantForOverloadingMethodsE(a, b);
10258 }
10259
10260 static void typeCheckingMaybeRedundantForOverloadingMethodsE2Method(const v8::Fu nctionCallbackInfo<v8::Value>& info)
10261 {
10262 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsE", "TestObject", info.Holder(), info.GetIso late());
10263 TestObject* impl = V8TestObject::toImpl(info.Holder());
10264 Node* a;
10265 int b;
10266 {
10267 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) {
10268 exceptionState.throwTypeError("parameter 1 is not of type 'Node'.");
10269 exceptionState.throwIfNeeded();
10270 return;
10271 }
10272 a = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
10273 if (UNLIKELY(info.Length() <= 1)) {
10274 impl->typeCheckingMaybeRedundantForOverloadingMethodsE(a);
10275 return;
10276 }
10277 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(b, toInt32(info[1], exceptionState ), exceptionState);
10278 }
10279 impl->typeCheckingMaybeRedundantForOverloadingMethodsE(a, b);
10280 }
10281
10282 static void typeCheckingMaybeRedundantForOverloadingMethodsEMethod(const v8::Fun ctionCallbackInfo<v8::Value>& info)
10283 {
10284 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsE", "TestObject", info.Holder(), info.GetIso late());
10285 switch (std::min(2, info.Length())) {
10286 case 1:
10287 if (true) {
10288 typeCheckingMaybeRedundantForOverloadingMethodsE2Method(info);
10289 return;
10290 }
10291 break;
10292 case 2:
10293 if (info[1]->IsUndefined()) {
10294 typeCheckingMaybeRedundantForOverloadingMethodsE2Method(info);
10295 return;
10296 }
10297 if (V8Node::hasInstance(info[1], info.GetIsolate())) {
10298 typeCheckingMaybeRedundantForOverloadingMethodsE1Method(info);
10299 return;
10300 }
10301 if (true) {
10302 typeCheckingMaybeRedundantForOverloadingMethodsE2Method(info);
10303 return;
10304 }
10305 break;
10306 default:
10307 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
10308 exceptionState.throwIfNeeded();
10309 return;
10310 }
10311 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
10312 exceptionState.throwIfNeeded();
10313 }
10314
10315 static void typeCheckingMaybeRedundantForOverloadingMethodsEMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
10316 {
10317 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10318 TestObjectV8Internal::typeCheckingMaybeRedundantForOverloadingMethodsEMethod (info);
10319 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10320 }
10321
10322 static void typeCheckingMaybeRedundantForOverloadingMethodsF1Method(const v8::Fu nctionCallbackInfo<v8::Value>& info)
10323 {
10324 TestObject* impl = V8TestObject::toImpl(info.Holder());
10325 Node* a;
10326 {
10327 if (UNLIKELY(info.Length() <= 0)) {
10328 impl->typeCheckingMaybeRedundantForOverloadingMethodsF();
10329 return;
10330 }
10331 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) {
10332 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "typeCheckingMaybeRedundantForOverloadingMethodsF", "TestObject", "parameter 1 i s not of type 'Node'."), info.GetIsolate());
10333 return;
10334 }
10335 a = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
10336 }
10337 impl->typeCheckingMaybeRedundantForOverloadingMethodsF(a);
10338 }
10339
10340 static void typeCheckingMaybeRedundantForOverloadingMethodsF2Method(const v8::Fu nctionCallbackInfo<v8::Value>& info)
10341 {
10342 TestObject* impl = V8TestObject::toImpl(info.Holder());
10343 Document* a;
10344 Node* b;
10345 {
10346 if (info.Length() > 0 && !V8Document::hasInstance(info[0], info.GetIsola te())) {
10347 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "typeCheckingMaybeRedundantForOverloadingMethodsF", "TestObject", "parameter 1 i s not of type 'Document'."), info.GetIsolate());
10348 return;
10349 }
10350 a = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]);
10351 if (UNLIKELY(info.Length() <= 1)) {
10352 impl->typeCheckingMaybeRedundantForOverloadingMethodsF(a);
10353 return;
10354 }
10355 if (info.Length() > 1 && !V8Node::hasInstance(info[1], info.GetIsolate() )) {
10356 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "typeCheckingMaybeRedundantForOverloadingMethodsF", "TestObject", "parameter 2 i s not of type 'Node'."), info.GetIsolate());
10357 return;
10358 }
10359 b = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]);
10360 }
10361 impl->typeCheckingMaybeRedundantForOverloadingMethodsF(a, b);
10362 }
10363
10364 static void typeCheckingMaybeRedundantForOverloadingMethodsFMethod(const v8::Fun ctionCallbackInfo<v8::Value>& info)
10365 {
10366 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsF", "TestObject", info.Holder(), info.GetIso late());
10367 switch (std::min(2, info.Length())) {
10368 case 0:
10369 if (true) {
10370 typeCheckingMaybeRedundantForOverloadingMethodsF1Method(info);
10371 return;
10372 }
10373 break;
10374 case 1:
10375 if (info[0]->IsUndefined()) {
10376 typeCheckingMaybeRedundantForOverloadingMethodsF1Method(info);
10377 return;
10378 }
10379 if (V8Node::hasInstance(info[0], info.GetIsolate())) {
10380 typeCheckingMaybeRedundantForOverloadingMethodsF1Method(info);
10381 return;
10382 }
10383 if (V8Document::hasInstance(info[0], info.GetIsolate())) {
10384 typeCheckingMaybeRedundantForOverloadingMethodsF2Method(info);
10385 return;
10386 }
10387 break;
10388 case 2:
10389 if (true) {
10390 typeCheckingMaybeRedundantForOverloadingMethodsF2Method(info);
10391 return;
10392 }
10393 break;
10394 default:
10395 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length()));
10396 exceptionState.throwIfNeeded();
10397 return;
10398 }
10399 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
10400 exceptionState.throwIfNeeded();
10401 }
10402
10403 static void typeCheckingMaybeRedundantForOverloadingMethodsFMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
10404 {
10405 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10406 TestObjectV8Internal::typeCheckingMaybeRedundantForOverloadingMethodsFMethod (info);
10407 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10408 }
10409
10002 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 10410 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
10003 { 10411 {
10004 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10412 TestObject* impl = V8TestObject::toImpl(info.Holder());
10005 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate() ); 10413 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate() );
10006 } 10414 }
10007 10415
10008 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 10416 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo)
10009 { 10417 {
10010 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 10418 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10011 TestObjectV8Internal::toStringMethod(info); 10419 TestObjectV8Internal::toStringMethod(info);
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
10377 {"voidMethodTestInterfaceGarbageCollectedArrayArg", TestObjectV8Internal::vo idMethodTestInterfaceGarbageCollectedArrayArgMethodCallback, 0, 1, V8DOMConfigur ation::ExposedToAllScripts}, 10785 {"voidMethodTestInterfaceGarbageCollectedArrayArg", TestObjectV8Internal::vo idMethodTestInterfaceGarbageCollectedArrayArgMethodCallback, 0, 1, V8DOMConfigur ation::ExposedToAllScripts},
10378 {"voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", TestObjectV8Int ernal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallback, 0 , 1, V8DOMConfiguration::ExposedToAllScripts}, 10786 {"voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", TestObjectV8Int ernal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallback, 0 , 1, V8DOMConfiguration::ExposedToAllScripts},
10379 {"voidMethodTestInterfaceWillBeGarbageCollectedArrayArg", TestObjectV8Intern al::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback, 0, 1, V 8DOMConfiguration::ExposedToAllScripts}, 10787 {"voidMethodTestInterfaceWillBeGarbageCollectedArrayArg", TestObjectV8Intern al::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback, 0, 1, V 8DOMConfiguration::ExposedToAllScripts},
10380 {"voidMethodImplementedInPrivateScript", TestObjectV8Internal::voidMethodImp lementedInPrivateScriptMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr ipts}, 10788 {"voidMethodImplementedInPrivateScript", TestObjectV8Internal::voidMethodImp lementedInPrivateScriptMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr ipts},
10381 {"shortMethodImplementedInPrivateScript", TestObjectV8Internal::shortMethodI mplementedInPrivateScriptMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS cripts}, 10789 {"shortMethodImplementedInPrivateScript", TestObjectV8Internal::shortMethodI mplementedInPrivateScriptMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS cripts},
10382 {"shortMethodWithShortArgumentImplementedInPrivateScript", TestObjectV8Inter nal::shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10790 {"shortMethodWithShortArgumentImplementedInPrivateScript", TestObjectV8Inter nal::shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10383 {"stringMethodWithStringArgumentImplementedInPrivateScript", TestObjectV8Int ernal::stringMethodWithStringArgumentImplementedInPrivateScriptMethodCallback, 0 , 1, V8DOMConfiguration::ExposedToAllScripts}, 10791 {"stringMethodWithStringArgumentImplementedInPrivateScript", TestObjectV8Int ernal::stringMethodWithStringArgumentImplementedInPrivateScriptMethodCallback, 0 , 1, V8DOMConfiguration::ExposedToAllScripts},
10384 {"nodeMethodWithNodeArgumentImplementedInPrivateScript", TestObjectV8Interna l::nodeMethodWithNodeArgumentImplementedInPrivateScriptMethodCallback, 0, 1, V8D OMConfiguration::ExposedToAllScripts}, 10792 {"nodeMethodWithNodeArgumentImplementedInPrivateScript", TestObjectV8Interna l::nodeMethodWithNodeArgumentImplementedInPrivateScriptMethodCallback, 0, 1, V8D OMConfiguration::ExposedToAllScripts},
10385 {"nodeMethodWithVariousArgumentsImplementedInPrivateScript", TestObjectV8Int ernal::nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethodCallback, 0 , 5, V8DOMConfiguration::ExposedToAllScripts}, 10793 {"nodeMethodWithVariousArgumentsImplementedInPrivateScript", TestObjectV8Int ernal::nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethodCallback, 0 , 5, V8DOMConfiguration::ExposedToAllScripts},
10386 {"methodImplementedInCPPForPrivateScriptOnly", TestObjectV8Internal::methodI mplementedInCPPForPrivateScriptOnlyMethodCallback, 0, 2, V8DOMConfiguration::Onl yExposedToPrivateScript}, 10794 {"methodImplementedInCPPForPrivateScriptOnly", TestObjectV8Internal::methodI mplementedInCPPForPrivateScriptOnlyMethodCallback, 0, 2, V8DOMConfiguration::Onl yExposedToPrivateScript},
10795 {"typeCheckingMaybeRedundantForOverloadingMethodsA", TestObjectV8Internal::t ypeCheckingMaybeRedundantForOverloadingMethodsAMethodCallback, 0, 2, V8DOMConfig uration::ExposedToAllScripts},
10796 {"typeCheckingMaybeRedundantForOverloadingMethodsB", TestObjectV8Internal::t ypeCheckingMaybeRedundantForOverloadingMethodsBMethodCallback, 0, 1, V8DOMConfig uration::ExposedToAllScripts},
10797 {"typeCheckingMaybeRedundantForOverloadingMethodsC", TestObjectV8Internal::t ypeCheckingMaybeRedundantForOverloadingMethodsCMethodCallback, 0, 1, V8DOMConfig uration::ExposedToAllScripts},
10798 {"typeCheckingMaybeRedundantForOverloadingMethodsD", TestObjectV8Internal::t ypeCheckingMaybeRedundantForOverloadingMethodsDMethodCallback, 0, 2, V8DOMConfig uration::ExposedToAllScripts},
10799 {"typeCheckingMaybeRedundantForOverloadingMethodsE", TestObjectV8Internal::t ypeCheckingMaybeRedundantForOverloadingMethodsEMethodCallback, 0, 1, V8DOMConfig uration::ExposedToAllScripts},
10800 {"typeCheckingMaybeRedundantForOverloadingMethodsF", TestObjectV8Internal::t ypeCheckingMaybeRedundantForOverloadingMethodsFMethodCallback, 0, 0, V8DOMConfig uration::ExposedToAllScripts},
10387 {"toString", TestObjectV8Internal::toStringMethodCallback, 0, 0, V8DOMConfig uration::ExposedToAllScripts}, 10801 {"toString", TestObjectV8Internal::toStringMethodCallback, 0, 0, V8DOMConfig uration::ExposedToAllScripts},
10388 }; 10802 };
10389 10803
10390 static void installV8TestObjectTemplate(v8::Handle<v8::FunctionTemplate> functio nTemplate, v8::Isolate* isolate) 10804 static void installV8TestObjectTemplate(v8::Handle<v8::FunctionTemplate> functio nTemplate, v8::Isolate* isolate)
10391 { 10805 {
10392 functionTemplate->ReadOnlyPrototype(); 10806 functionTemplate->ReadOnlyPrototype();
10393 10807
10394 v8::Local<v8::Signature> defaultSignature; 10808 v8::Local<v8::Signature> defaultSignature;
10395 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "TestObject", v8::Local<v8::FunctionTemplate>(), V8TestObject::internalFiel dCount, 10809 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "TestObject", v8::Local<v8::FunctionTemplate>(), V8TestObject::internalFiel dCount,
10396 V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes), 10810 V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes),
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
11051 return false; 11465 return false;
11052 11466
11053 ScriptState::Scope scope(scriptState); 11467 ScriptState::Scope scope(scriptState);
11054 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11468 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate());
11055 11469
11056 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 11470 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
11057 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 11471 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
11058 } 11472 }
11059 11473
11060 } // namespace blink 11474 } // namespace blink
OLDNEW
« Source/bindings/scripts/v8_methods.py ('K') | « Source/bindings/tests/idls/core/TestObject.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698