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

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

Issue 564063002: Generate simple code for "trivial" conversions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 6 years, 3 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 { 93 {
94 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); 94 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty");
95 TestSpecialOperationsV8Internal::namedPropertyGetter(name, info); 95 TestSpecialOperationsV8Internal::namedPropertyGetter(name, info);
96 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 96 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
97 } 97 }
98 98
99 static void namedPropertySetter(v8::Local<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) 99 static void namedPropertySetter(v8::Local<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info)
100 { 100 {
101 TestSpecialOperations* impl = V8TestSpecialOperations::toImpl(info.Holder()) ; 101 TestSpecialOperations* impl = V8TestSpecialOperations::toImpl(info.Holder()) ;
102 TOSTRING_VOID(V8StringResource<>, propertyName, name); 102 TOSTRING_VOID(V8StringResource<>, propertyName, name);
103 TONATIVE_VOID(Node*, propertyValue, V8Node::toImplWithTypeCheck(info.GetIsol ate(), v8Value)); 103 Node* propertyValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value );
104 bool result = impl->anonymousNamedSetter(propertyName, propertyValue); 104 bool result = impl->anonymousNamedSetter(propertyName, propertyValue);
105 if (!result) 105 if (!result)
106 return; 106 return;
107 v8SetReturnValue(info, v8Value); 107 v8SetReturnValue(info, v8Value);
108 } 108 }
109 109
110 static void namedPropertySetterCallback(v8::Local<v8::String> name, v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) 110 static void namedPropertySetterCallback(v8::Local<v8::String> name, v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info)
111 { 111 {
112 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); 112 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty");
113 TestSpecialOperationsV8Internal::namedPropertySetter(name, v8Value, info); 113 TestSpecialOperationsV8Internal::namedPropertySetter(name, v8Value, info);
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 return 0; 217 return 0;
218 } 218 }
219 219
220 template<> 220 template<>
221 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O bject> creationContext, v8::Isolate* isolate) 221 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O bject> creationContext, v8::Isolate* isolate)
222 { 222 {
223 return toV8(impl, creationContext, isolate); 223 return toV8(impl, creationContext, isolate);
224 } 224 }
225 225
226 } // namespace blink 226 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestObject.cpp ('k') | Source/bindings/tests/results/modules/V8TestInterface5.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698