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 "V8TestTypedefs.h" | 8 #include "V8TestTypedefs.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 53 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
54 TestTypedefsV8Internal::uLongLongAttributeAttributeGetter(info); | 54 TestTypedefsV8Internal::uLongLongAttributeAttributeGetter(info); |
55 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 55 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
56 } | 56 } |
57 | 57 |
58 static void uLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::FunctionCallbackInfo<v8::Value>& info) | 58 static void uLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
59 { | 59 { |
60 v8::Local<v8::Object> holder = info.Holder(); | 60 v8::Local<v8::Object> holder = info.Holder(); |
61 ExceptionState exceptionState(ExceptionState::SetterContext, "uLongLongAttri
bute", "TestTypedefs", holder, info.GetIsolate()); | 61 ExceptionState exceptionState(ExceptionState::SetterContext, "uLongLongAttri
bute", "TestTypedefs", holder, info.GetIsolate()); |
62 TestTypedefs* impl = V8TestTypedefs::toImpl(holder); | 62 TestTypedefs* impl = V8TestTypedefs::toImpl(holder); |
63 unsigned long long cppValue = toUInt64(v8Value, exceptionState); | 63 unsigned long long cppValue = toUInt64(info.GetIsolate(), v8Value, exception
State); |
64 if (exceptionState.throwIfNeeded()) | 64 if (exceptionState.throwIfNeeded()) |
65 return; | 65 return; |
66 impl->setULongLongAttribute(cppValue); | 66 impl->setULongLongAttribute(cppValue); |
67 } | 67 } |
68 | 68 |
69 static void uLongLongAttributeAttributeSetterCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 69 static void uLongLongAttributeAttributeSetterCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
70 { | 70 { |
71 v8::Local<v8::Value> v8Value = info[0]; | 71 v8::Local<v8::Value> v8Value = info[0]; |
72 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 72 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
73 TestTypedefsV8Internal::uLongLongAttributeAttributeSetter(v8Value, info); | 73 TestTypedefsV8Internal::uLongLongAttributeAttributeSetter(v8Value, info); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodF
loatArgStringArg", "TestTypedefs", info.Holder(), info.GetIsolate()); | 116 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodF
loatArgStringArg", "TestTypedefs", info.Holder(), info.GetIsolate()); |
117 if (UNLIKELY(info.Length() < 2)) { | 117 if (UNLIKELY(info.Length() < 2)) { |
118 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 118 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
119 exceptionState.throwIfNeeded(); | 119 exceptionState.throwIfNeeded(); |
120 return; | 120 return; |
121 } | 121 } |
122 TestTypedefs* impl = V8TestTypedefs::toImpl(info.Holder()); | 122 TestTypedefs* impl = V8TestTypedefs::toImpl(info.Holder()); |
123 float floatArg; | 123 float floatArg; |
124 V8StringResource<> stringArg; | 124 V8StringResource<> stringArg; |
125 { | 125 { |
126 floatArg = toRestrictedFloat(info[0], exceptionState); | 126 floatArg = toRestrictedFloat(info.GetIsolate(), info[0], exceptionState)
; |
127 if (exceptionState.throwIfNeeded()) | 127 if (exceptionState.throwIfNeeded()) |
128 return; | 128 return; |
129 stringArg = info[1]; | 129 stringArg = info[1]; |
130 if (!stringArg.prepare()) | 130 if (!stringArg.prepare()) |
131 return; | 131 return; |
132 } | 132 } |
133 impl->voidMethodFloatArgStringArg(floatArg, stringArg); | 133 impl->voidMethodFloatArgStringArg(floatArg, stringArg); |
134 } | 134 } |
135 | 135 |
136 static void voidMethodFloatArgStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 136 static void voidMethodFloatArgStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 { | 369 { |
370 scriptWrappable->toImpl<TestTypedefs>()->ref(); | 370 scriptWrappable->toImpl<TestTypedefs>()->ref(); |
371 } | 371 } |
372 | 372 |
373 void V8TestTypedefs::derefObject(ScriptWrappable* scriptWrappable) | 373 void V8TestTypedefs::derefObject(ScriptWrappable* scriptWrappable) |
374 { | 374 { |
375 scriptWrappable->toImpl<TestTypedefs>()->deref(); | 375 scriptWrappable->toImpl<TestTypedefs>()->deref(); |
376 } | 376 } |
377 | 377 |
378 } // namespace blink | 378 } // namespace blink |
OLD | NEW |