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 "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 233 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
234 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethodF
orMainWorld(info); | 234 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethodF
orMainWorld(info); |
235 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 235 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
236 } | 236 } |
237 | 237 |
238 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) | 238 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
239 { | 239 { |
240 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); | 240 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); |
241 bool optionalBooleanArgument; | 241 bool optionalBooleanArgument; |
242 { | 242 { |
243 v8::TryCatch block; | |
244 V8RethrowTryCatchScope rethrow(block); | |
245 if (UNLIKELY(info.Length() <= 0)) { | 243 if (UNLIKELY(info.Length() <= 0)) { |
246 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInt
erfaceEmptyMethodOptionalBooleanArg()), impl); | 244 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInt
erfaceEmptyMethodOptionalBooleanArg()), impl); |
247 return; | 245 return; |
248 } | 246 } |
249 TONATIVE_VOID_INTERNAL(optionalBooleanArgument, info[0]->BooleanValue())
; | 247 optionalBooleanArgument = info[0]->BooleanValue(); |
250 } | 248 } |
251 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEm
ptyMethodOptionalBooleanArg(optionalBooleanArgument)), impl); | 249 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEm
ptyMethodOptionalBooleanArg(optionalBooleanArgument)), impl); |
252 } | 250 } |
253 | 251 |
254 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) | 252 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) |
255 { | 253 { |
256 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 254 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
257 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona
lBooleanArgMethod(info); | 255 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona
lBooleanArgMethod(info); |
258 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 256 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
259 } | 257 } |
260 | 258 |
261 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 259 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
262 { | 260 { |
263 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); | 261 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); |
264 bool optionalBooleanArgument; | 262 bool optionalBooleanArgument; |
265 { | 263 { |
266 v8::TryCatch block; | |
267 V8RethrowTryCatchScope rethrow(block); | |
268 if (UNLIKELY(info.Length() <= 0)) { | 264 if (UNLIKELY(info.Length() <= 0)) { |
269 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBinding
sTestInterfaceEmptyMethodOptionalBooleanArg())); | 265 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBinding
sTestInterfaceEmptyMethodOptionalBooleanArg())); |
270 return; | 266 return; |
271 } | 267 } |
272 TONATIVE_VOID_INTERNAL(optionalBooleanArgument, info[0]->BooleanValue())
; | 268 optionalBooleanArgument = info[0]->BooleanValue(); |
273 } | 269 } |
274 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInt
erfaceEmptyMethodOptionalBooleanArg(optionalBooleanArgument))); | 270 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInt
erfaceEmptyMethodOptionalBooleanArg(optionalBooleanArgument))); |
275 } | 271 } |
276 | 272 |
277 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall
backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 273 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall
backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
278 { | 274 { |
279 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 275 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
280 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona
lBooleanArgMethodForMainWorld(info); | 276 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona
lBooleanArgMethodForMainWorld(info); |
281 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 277 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
282 } | 278 } |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 #endif | 361 #endif |
366 } | 362 } |
367 | 363 |
368 template<> | 364 template<> |
369 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) | 365 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) |
370 { | 366 { |
371 return toV8(impl, creationContext, isolate); | 367 return toV8(impl, creationContext, isolate); |
372 } | 368 } |
373 | 369 |
374 } // namespace blink | 370 } // namespace blink |
OLD | NEW |