| 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 "V8TestInterface2.h" | 8 #include "V8TestInterface2.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 static void deleteNamedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 215 static void deleteNamedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 216 { | 216 { |
| 217 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 217 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 218 TestInterface2V8Internal::deleteNamedItemMethod(info); | 218 TestInterface2V8Internal::deleteNamedItemMethod(info); |
| 219 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 219 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 220 } | 220 } |
| 221 | 221 |
| 222 static void stringifierMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 222 static void stringifierMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 223 { | 223 { |
| 224 TestInterface2* impl = V8TestInterface2::toNative(info.Holder()); | 224 TestInterface2* impl = V8TestInterface2::toNative(info.Holder()); |
| 225 v8SetReturnValueString(info, impl->stringifierMethod(), info.GetIsolate()); | 225 String result = impl->stringifierMethod(); |
| 226 v8SetReturnValueString(info, result, info.GetIsolate()); |
| 226 } | 227 } |
| 227 | 228 |
| 228 static void stringifierMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 229 static void stringifierMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 229 { | 230 { |
| 230 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 231 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 231 TestInterface2V8Internal::stringifierMethodMethod(info); | 232 TestInterface2V8Internal::stringifierMethodMethod(info); |
| 232 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 233 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 233 } | 234 } |
| 234 | 235 |
| 235 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 236 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 236 { | 237 { |
| 237 TestInterface2* impl = V8TestInterface2::toNative(info.Holder()); | 238 TestInterface2* impl = V8TestInterface2::toNative(info.Holder()); |
| 238 v8SetReturnValueString(info, impl->stringifierMethod(), info.GetIsolate()); | 239 String result = impl->stringifierMethod(); |
| 240 v8SetReturnValueString(info, result, info.GetIsolate()); |
| 239 } | 241 } |
| 240 | 242 |
| 241 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 243 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 242 { | 244 { |
| 243 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 245 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 244 TestInterface2V8Internal::toStringMethod(info); | 246 TestInterface2V8Internal::toStringMethod(info); |
| 245 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 247 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 246 } | 248 } |
| 247 | 249 |
| 248 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 250 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 fromInternalPointer(object)->deref(); | 546 fromInternalPointer(object)->deref(); |
| 545 } | 547 } |
| 546 | 548 |
| 547 template<> | 549 template<> |
| 548 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) | 550 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) |
| 549 { | 551 { |
| 550 return toV8(impl, creationContext, isolate); | 552 return toV8(impl, creationContext, isolate); |
| 551 } | 553 } |
| 552 | 554 |
| 553 } // namespace WebCore | 555 } // namespace WebCore |
| OLD | NEW |