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

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

Issue 234403004: Rename V8TRYCATCH_* macros in v8/V8BindingMacros.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: BOOL*_BOOL -> BOOL* 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 "V8TestSpecialOperations.h" 8 #include "V8TestSpecialOperations.h"
9 9
10 #include "RuntimeEnabledFeatures.h" 10 #include "RuntimeEnabledFeatures.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 template <typename T> void V8_USE(T) { } 45 template <typename T> void V8_USE(T) { }
46 46
47 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 47 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
48 { 48 {
49 if (UNLIKELY(info.Length() < 1)) { 49 if (UNLIKELY(info.Length() < 1)) {
50 throwArityTypeErrorForMethod("namedItem", "TestSpecialOperations", 1, in fo.Length(), info.GetIsolate()); 50 throwArityTypeErrorForMethod("namedItem", "TestSpecialOperations", 1, in fo.Length(), info.GetIsolate());
51 return; 51 return;
52 } 52 }
53 TestSpecialOperations* impl = V8TestSpecialOperations::toNative(info.Holder( )); 53 TestSpecialOperations* impl = V8TestSpecialOperations::toNative(info.Holder( ));
54 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, name, info[0]); 54 TOSTRING_VOID(V8StringResource<>, name, info[0]);
55 bool result0Enabled = false; 55 bool result0Enabled = false;
56 RefPtr<Node> result0; 56 RefPtr<Node> result0;
57 bool result1Enabled = false; 57 bool result1Enabled = false;
58 RefPtr<NodeList> result1; 58 RefPtr<NodeList> result1;
59 impl->getItem(name, result0Enabled, result0, result1Enabled, result1); 59 impl->getItem(name, result0Enabled, result0, result1Enabled, result1);
60 if (result0Enabled) { 60 if (result0Enabled) {
61 v8SetReturnValue(info, result0.release()); 61 v8SetReturnValue(info, result0.release());
62 return; 62 return;
63 } 63 }
64 if (result1Enabled) { 64 if (result1Enabled) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 static void namedPropertyGetterCallback(v8::Local<v8::String> name, const v8::Pr opertyCallbackInfo<v8::Value>& info) 100 static void namedPropertyGetterCallback(v8::Local<v8::String> name, const v8::Pr opertyCallbackInfo<v8::Value>& info)
101 { 101 {
102 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); 102 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty");
103 TestSpecialOperationsV8Internal::namedPropertyGetter(name, info); 103 TestSpecialOperationsV8Internal::namedPropertyGetter(name, info);
104 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 104 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
105 } 105 }
106 106
107 static void namedPropertySetter(v8::Local<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) 107 static void namedPropertySetter(v8::Local<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info)
108 { 108 {
109 TestSpecialOperations* impl = V8TestSpecialOperations::toNative(info.Holder( )); 109 TestSpecialOperations* impl = V8TestSpecialOperations::toNative(info.Holder( ));
110 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, propertyName, name) ; 110 TOSTRING_VOID(V8StringResource<>, propertyName, name);
111 V8TRYCATCH_VOID(Node*, propertyValue, V8Node::toNativeWithTypeCheck(info.Get Isolate(), v8Value)); 111 TONATIVE_VOID(Node*, propertyValue, V8Node::toNativeWithTypeCheck(info.GetIs olate(), v8Value));
112 bool result = impl->anonymousNamedSetter(propertyName, propertyValue); 112 bool result = impl->anonymousNamedSetter(propertyName, propertyValue);
113 if (!result) 113 if (!result)
114 return; 114 return;
115 v8SetReturnValue(info, v8Value); 115 v8SetReturnValue(info, v8Value);
116 } 116 }
117 117
118 static void namedPropertySetterCallback(v8::Local<v8::String> name, v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) 118 static void namedPropertySetterCallback(v8::Local<v8::String> name, v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info)
119 { 119 {
120 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); 120 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty");
121 TestSpecialOperationsV8Internal::namedPropertySetter(name, v8Value, info); 121 TestSpecialOperationsV8Internal::namedPropertySetter(name, v8Value, info);
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 fromInternalPointer(object)->deref(); 243 fromInternalPointer(object)->deref();
244 } 244 }
245 245
246 template<> 246 template<>
247 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O bject> creationContext, v8::Isolate* isolate) 247 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O bject> creationContext, v8::Isolate* isolate)
248 { 248 {
249 return toV8(impl, creationContext, isolate); 249 return toV8(impl, creationContext, isolate);
250 } 250 }
251 251
252 } // namespace WebCore 252 } // namespace WebCore
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