Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: Source/bindings/tests/results/core/V8TestTypedefs.cpp

Issue 1011093002: [bindings] Pass NormalConversion to to[U]Int{8/16/32/64}(...) in v8_types.py and reduce conversion … (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing after review comments! :) Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestObject.cpp ('k') | Source/bindings/tests/results/modules/V8TestInterface5.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698