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

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

Issue 234403004: Rename V8TRYCATCH_* macros in v8/V8BindingMacros.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
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 "RuntimeEnabledFeatures.h" 10 #include "RuntimeEnabledFeatures.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 v8::Handle<v8::Object> wrapper = info.Holder(); 59 v8::Handle<v8::Object> wrapper = info.Holder();
60 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor>(impl.re lease(), &V8TestInterfaceConstructor::wrapperTypeInfo, wrapper, isolate, Wrapper Configuration::Independent); 60 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor>(impl.re lease(), &V8TestInterfaceConstructor::wrapperTypeInfo, wrapper, isolate, Wrapper Configuration::Independent);
61 v8SetReturnValue(info, wrapper); 61 v8SetReturnValue(info, wrapper);
62 } 62 }
63 63
64 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info) 64 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info)
65 { 65 {
66 v8::Isolate* isolate = info.GetIsolate(); 66 v8::Isolate* isolate = info.GetIsolate();
67 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceConstructor", info.Holder(), isolate); 67 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceConstructor", info.Holder(), isolate);
68 V8TRYCATCH_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue( ))); 68 V8TRYCATCH_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue( )));
69 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[1]) ; 69 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, stringArg, info[1]);
70 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[2])); 70 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[2]));
71 V8TRYCATCH_VOID(Dictionary, dictionaryArg, Dictionary(info[3], info.GetIsola te())); 71 V8TRYCATCH_VOID(Dictionary, dictionaryArg, Dictionary(info[3], info.GetIsola te()));
72 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { 72 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) {
73 exceptionState.throwTypeError("parameter 4 ('dictionaryArg') is not an o bject."); 73 exceptionState.throwTypeError("parameter 4 ('dictionaryArg') is not an o bject.");
74 exceptionState.throwIfNeeded(); 74 exceptionState.throwIfNeeded();
75 return; 75 return;
76 } 76 }
77 V8TRYCATCH_VOID(Vector<String>, sequenceStringArg, toNativeArray<String>(inf o[4], 5, info.GetIsolate())); 77 V8TRYCATCH_VOID(Vector<String>, sequenceStringArg, toNativeArray<String>(inf o[4], 5, info.GetIsolate()));
78 V8TRYCATCH_VOID(Vector<Dictionary>, sequenceDictionaryArg, toNativeArray<Dic tionary>(info[5], 6, info.GetIsolate())); 78 V8TRYCATCH_VOID(Vector<Dictionary>, sequenceDictionaryArg, toNativeArray<Dic tionary>(info[5], 6, info.GetIsolate()));
79 V8TRYCATCH_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[6], info. GetIsolate())); 79 V8TRYCATCH_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[6], info. GetIsolate()));
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 fromInternalPointer(object)->deref(); 199 fromInternalPointer(object)->deref();
200 } 200 }
201 201
202 template<> 202 template<>
203 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate) 203 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate)
204 { 204 {
205 return toV8(impl, creationContext, isolate); 205 return toV8(impl, creationContext, isolate);
206 } 206 }
207 207
208 } // namespace WebCore 208 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698