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

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

Issue 1013643002: [bindings] Make sure v8::Isolate is being passed to toXXX() conversion routines as argument. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 "V8TestInterfaceConstructor.h" 8 #include "V8TestInterfaceConstructor.h"
9 9
10 #include "bindings/core/v8/Dictionary.h" 10 #include "bindings/core/v8/Dictionary.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceConstructor", info.Holder(), info.GetIsolate()); 54 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceConstructor", info.Holder(), info.GetIsolate());
55 double doubleArg; 55 double doubleArg;
56 V8StringResource<> stringArg; 56 V8StringResource<> stringArg;
57 TestInterfaceEmpty* testInterfaceEmptyArg; 57 TestInterfaceEmpty* testInterfaceEmptyArg;
58 Dictionary dictionaryArg; 58 Dictionary dictionaryArg;
59 Vector<String> sequenceStringArg; 59 Vector<String> sequenceStringArg;
60 Vector<Dictionary> sequenceDictionaryArg; 60 Vector<Dictionary> sequenceDictionaryArg;
61 Dictionary optionalDictionaryArg; 61 Dictionary optionalDictionaryArg;
62 TestInterfaceEmpty* optionalTestInterfaceEmptyArg; 62 TestInterfaceEmpty* optionalTestInterfaceEmptyArg;
63 { 63 {
64 doubleArg = toRestrictedDouble(info[0], exceptionState); 64 doubleArg = toRestrictedDouble(info.GetIsolate(), info[0], exceptionStat e);
65 if (exceptionState.throwIfNeeded()) 65 if (exceptionState.throwIfNeeded())
66 return; 66 return;
67 stringArg = info[1]; 67 stringArg = info[1];
68 if (!stringArg.prepare()) 68 if (!stringArg.prepare())
69 return; 69 return;
70 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G etIsolate(), info[2]); 70 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G etIsolate(), info[2]);
71 if (!isUndefinedOrNull(info[3]) && !info[3]->IsObject()) { 71 if (!isUndefinedOrNull(info[3]) && !info[3]->IsObject()) {
72 exceptionState.throwTypeError("parameter 4 ('dictionaryArg') is not an object."); 72 exceptionState.throwTypeError("parameter 4 ('dictionaryArg') is not an object.");
73 exceptionState.throwIfNeeded(); 73 exceptionState.throwIfNeeded();
74 return; 74 return;
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 { 371 {
372 scriptWrappable->toImpl<TestInterfaceConstructor>()->ref(); 372 scriptWrappable->toImpl<TestInterfaceConstructor>()->ref();
373 } 373 }
374 374
375 void V8TestInterfaceConstructor::derefObject(ScriptWrappable* scriptWrappable) 375 void V8TestInterfaceConstructor::derefObject(ScriptWrappable* scriptWrappable)
376 { 376 {
377 scriptWrappable->toImpl<TestInterfaceConstructor>()->deref(); 377 scriptWrappable->toImpl<TestInterfaceConstructor>()->deref();
378 } 378 }
379 379
380 } // namespace blink 380 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698