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

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

Issue 460923002: Decouple arity errors creation from throwing. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 "V8TestSpecialOperations.h" 8 #include "V8TestSpecialOperations.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 namespace blink { 44 namespace blink {
45 const WrapperTypeInfo V8TestSpecialOperations::wrapperTypeInfo = { gin::kEmbedde rBlink, V8TestSpecialOperations::domTemplate, V8TestSpecialOperations::derefObje ct, 0, 0, 0, V8TestSpecialOperations::installConditionallyEnabledMethods, 0, Wra pperTypeObjectPrototype, RefCountedObject }; 45 const WrapperTypeInfo V8TestSpecialOperations::wrapperTypeInfo = { gin::kEmbedde rBlink, V8TestSpecialOperations::domTemplate, V8TestSpecialOperations::derefObje ct, 0, 0, 0, V8TestSpecialOperations::installConditionallyEnabledMethods, 0, Wra pperTypeObjectPrototype, RefCountedObject };
46 46
47 namespace TestSpecialOperationsV8Internal { 47 namespace TestSpecialOperationsV8Internal {
48 48
49 template <typename T> void V8_USE(T) { } 49 template <typename T> void V8_USE(T) { }
50 50
51 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 51 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
52 { 52 {
53 if (UNLIKELY(info.Length() < 1)) { 53 if (UNLIKELY(info.Length() < 1)) {
54 throwMinimumArityTypeErrorForMethod("namedItem", "TestSpecialOperations" , 1, info.Length(), info.GetIsolate()); 54 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("n amedItem", "TestSpecialOperations", 1, info.Length(), info.GetIsolate()), info.G etIsolate());
55 return; 55 return;
56 } 56 }
57 TestSpecialOperations* impl = V8TestSpecialOperations::toNative(info.Holder( )); 57 TestSpecialOperations* impl = V8TestSpecialOperations::toNative(info.Holder( ));
58 V8StringResource<> name; 58 V8StringResource<> name;
59 { 59 {
60 TOSTRING_VOID_INTERNAL(name, info[0]); 60 TOSTRING_VOID_INTERNAL(name, info[0]);
61 } 61 }
62 bool result0Enabled = false; 62 bool result0Enabled = false;
63 RefPtrWillBeRawPtr<Node> result0; 63 RefPtrWillBeRawPtr<Node> result0;
64 bool result1Enabled = false; 64 bool result1Enabled = false;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 fromInternalPointer(internalPointer)->deref(); 247 fromInternalPointer(internalPointer)->deref();
248 } 248 }
249 249
250 template<> 250 template<>
251 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O bject> creationContext, v8::Isolate* isolate) 251 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O bject> creationContext, v8::Isolate* isolate)
252 { 252 {
253 return toV8(impl, creationContext, isolate); 253 return toV8(impl, creationContext, isolate);
254 } 254 }
255 255
256 } // namespace blink 256 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestObject.cpp ('k') | Source/bindings/tests/results/V8TestTypedefs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698