| 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 "V8TestInterfaceNode.h" | 8 #include "V8TestInterfaceNode.h" |
| 9 | 9 |
| 10 #include "HTMLNames.h" | 10 #include "HTMLNames.h" |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 244 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 245 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethodF
orMainWorld(info); | 245 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethodF
orMainWorld(info); |
| 246 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 246 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 247 } | 247 } |
| 248 | 248 |
| 249 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) | 249 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
| 250 { | 250 { |
| 251 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder()); | 251 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder()); |
| 252 bool optionalBooleanArgument; | 252 bool optionalBooleanArgument; |
| 253 { | 253 { |
| 254 v8::TryCatch block; | 254 V8TryPropagate block; |
| 255 if (UNLIKELY(info.Length() <= 0)) { | 255 if (UNLIKELY(info.Length() <= 0)) { |
| 256 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInt
erfaceEmptyMethodOptionalBooleanArg()), impl); | 256 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInt
erfaceEmptyMethodOptionalBooleanArg()), impl); |
| 257 return; | 257 return; |
| 258 } | 258 } |
| 259 TONATIVE_VOID_INTERNAL(optionalBooleanArgument, info[0]->BooleanValue())
; | 259 TONATIVE_VOID_INTERNAL(optionalBooleanArgument, info[0]->BooleanValue())
; |
| 260 } | 260 } |
| 261 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEm
ptyMethodOptionalBooleanArg(optionalBooleanArgument)), impl); | 261 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEm
ptyMethodOptionalBooleanArg(optionalBooleanArgument)), impl); |
| 262 } | 262 } |
| 263 | 263 |
| 264 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) | 264 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 265 { | 265 { |
| 266 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 266 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 267 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona
lBooleanArgMethod(info); | 267 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona
lBooleanArgMethod(info); |
| 268 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 268 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 269 } | 269 } |
| 270 | 270 |
| 271 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 271 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 272 { | 272 { |
| 273 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder()); | 273 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder()); |
| 274 bool optionalBooleanArgument; | 274 bool optionalBooleanArgument; |
| 275 { | 275 { |
| 276 v8::TryCatch block; | 276 V8TryPropagate block; |
| 277 if (UNLIKELY(info.Length() <= 0)) { | 277 if (UNLIKELY(info.Length() <= 0)) { |
| 278 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBinding
sTestInterfaceEmptyMethodOptionalBooleanArg())); | 278 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBinding
sTestInterfaceEmptyMethodOptionalBooleanArg())); |
| 279 return; | 279 return; |
| 280 } | 280 } |
| 281 TONATIVE_VOID_INTERNAL(optionalBooleanArgument, info[0]->BooleanValue())
; | 281 TONATIVE_VOID_INTERNAL(optionalBooleanArgument, info[0]->BooleanValue())
; |
| 282 } | 282 } |
| 283 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInt
erfaceEmptyMethodOptionalBooleanArg(optionalBooleanArgument))); | 283 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInt
erfaceEmptyMethodOptionalBooleanArg(optionalBooleanArgument))); |
| 284 } | 284 } |
| 285 | 285 |
| 286 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall
backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 286 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall
backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 #endif // !ENABLE(OILPAN) | 385 #endif // !ENABLE(OILPAN) |
| 386 } | 386 } |
| 387 | 387 |
| 388 template<> | 388 template<> |
| 389 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) | 389 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) |
| 390 { | 390 { |
| 391 return toV8(impl, creationContext, isolate); | 391 return toV8(impl, creationContext, isolate); |
| 392 } | 392 } |
| 393 | 393 |
| 394 } // namespace WebCore | 394 } // namespace WebCore |
| OLD | NEW |