Chromium Code Reviews| 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 7390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 7401 | 7401 |
| 7402 static void voidMethodDefaultFalseBooleanArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) | 7402 static void voidMethodDefaultFalseBooleanArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) |
| 7403 { | 7403 { |
| 7404 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7404 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7405 TestObjectV8Internal::voidMethodDefaultFalseBooleanArgMethod(info); | 7405 TestObjectV8Internal::voidMethodDefaultFalseBooleanArgMethod(info); |
| 7406 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7406 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7407 } | 7407 } |
| 7408 | 7408 |
| 7409 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info) | 7409 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info) |
| 7410 { | 7410 { |
| 7411 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultNullableByteStringArg", "TestObject", info.Holder(), info.GetIsolate()); | |
| 7411 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7412 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7412 V8StringResource<TreatNullAsNullString> defaultStringArg; | 7413 V8StringResource<TreatNullAsNullString> defaultStringArg; |
| 7413 { | 7414 { |
| 7414 v8::TryCatch block; | 7415 v8::TryCatch block; |
| 7415 V8RethrowTryCatchScope rethrow(block); | 7416 V8RethrowTryCatchScope rethrow(block); |
| 7416 if (!info[0]->IsUndefined()) { | 7417 if (!info[0]->IsUndefined()) { |
| 7417 TONATIVE_VOID_INTERNAL(defaultStringArg, toByteString(info[0])); | 7418 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultStringArg, toByteString (info[0], exceptionState), exceptionState); |
|
Jens Widell
2014/08/15 07:13:49
This seems a correct change; there's only one toBy
| |
| 7418 } else { | 7419 } else { |
| 7419 defaultStringArg = nullptr; | 7420 defaultStringArg = nullptr; |
| 7420 } | 7421 } |
| 7421 } | 7422 } |
| 7422 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg); | 7423 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg); |
| 7423 } | 7424 } |
| 7424 | 7425 |
| 7425 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) | 7426 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) |
| 7426 { | 7427 { |
| 7427 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7428 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| (...skipping 3856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 11284 // FIXME: We should support more exceptions. | 11285 // FIXME: We should support more exceptions. |
| 11285 RELEASE_ASSERT_NOT_REACHED(); | 11286 RELEASE_ASSERT_NOT_REACHED(); |
| 11286 } | 11287 } |
| 11287 block.ReThrow(); | 11288 block.ReThrow(); |
| 11288 return false; | 11289 return false; |
| 11289 } | 11290 } |
| 11290 return true; | 11291 return true; |
| 11291 } | 11292 } |
| 11292 | 11293 |
| 11293 } // namespace blink | 11294 } // namespace blink |
| OLD | NEW |