| 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 "V8TestObject.h" |      8 #include "V8TestObject.h" | 
|      9  |      9  | 
|     10 #include "bindings/core/v8/BindingSecurity.h" |     10 #include "bindings/core/v8/BindingSecurity.h" | 
| (...skipping 7389 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   7400  |   7400  | 
|   7401 static void voidMethodDefaultFalseBooleanArgMethodCallback(const v8::FunctionCal
       lbackInfo<v8::Value>& info) |   7401 static void voidMethodDefaultFalseBooleanArgMethodCallback(const v8::FunctionCal
       lbackInfo<v8::Value>& info) | 
|   7402 { |   7402 { | 
|   7403     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |   7403     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 
|   7404     TestObjectV8Internal::voidMethodDefaultFalseBooleanArgMethod(info); |   7404     TestObjectV8Internal::voidMethodDefaultFalseBooleanArgMethod(info); | 
|   7405     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |   7405     TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 
|   7406 } |   7406 } | 
|   7407  |   7407  | 
|   7408 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb
       ackInfo<v8::Value>& info) |   7408 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb
       ackInfo<v8::Value>& info) | 
|   7409 { |   7409 { | 
 |   7410     ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
       efaultNullableByteStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 
|   7410     TestObject* impl = V8TestObject::toNative(info.Holder()); |   7411     TestObject* impl = V8TestObject::toNative(info.Holder()); | 
|   7411     V8StringResource<TreatNullAsNullString> defaultStringArg; |   7412     V8StringResource<TreatNullAsNullString> defaultStringArg; | 
|   7412     { |   7413     { | 
|   7413         v8::TryCatch block; |   7414         v8::TryCatch block; | 
|   7414         V8RethrowTryCatchScope rethrow(block); |   7415         V8RethrowTryCatchScope rethrow(block); | 
|   7415         if (!info[0]->IsUndefined()) { |   7416         if (!info[0]->IsUndefined()) { | 
|   7416             TONATIVE_VOID_INTERNAL(defaultStringArg, toByteString(info[0])); |   7417             TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultStringArg, toByteString
       (info[0], exceptionState), exceptionState); | 
|   7417         } else { |   7418         } else { | 
|   7418             defaultStringArg = nullptr; |   7419             defaultStringArg = nullptr; | 
|   7419         } |   7420         } | 
|   7420     } |   7421     } | 
|   7421     impl->voidMethodDefaultNullableByteStringArg(defaultStringArg); |   7422     impl->voidMethodDefaultNullableByteStringArg(defaultStringArg); | 
|   7422 } |   7423 } | 
|   7423  |   7424  | 
|   7424 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct
       ionCallbackInfo<v8::Value>& info) |   7425 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct
       ionCallbackInfo<v8::Value>& info) | 
|   7425 { |   7426 { | 
|   7426     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |   7427     TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 
| (...skipping 3909 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  11336             // FIXME: We should support more exceptions. |  11337             // FIXME: We should support more exceptions. | 
|  11337             RELEASE_ASSERT_NOT_REACHED(); |  11338             RELEASE_ASSERT_NOT_REACHED(); | 
|  11338         } |  11339         } | 
|  11339         block.ReThrow(); |  11340         block.ReThrow(); | 
|  11340         return false; |  11341         return false; | 
|  11341     } |  11342     } | 
|  11342     return true; |  11343     return true; | 
|  11343 } |  11344 } | 
|  11344  |  11345  | 
|  11345 } // namespace blink |  11346 } // namespace blink | 
| OLD | NEW |