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(info.GetIsolate(), v8Value, exception
State); | 63 unsigned long long cppValue = toUInt64(info.GetIsolate(), v8Value, NormalCon
version, exceptionState); |
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 295 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 |