OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |