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

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

Issue 419673003: IDL: Remove UNLIKELY() from constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 260
261 static void stringArrayMethodStringArrayArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 261 static void stringArrayMethodStringArrayArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
262 { 262 {
263 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 263 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
264 TestTypedefsV8Internal::stringArrayMethodStringArrayArgMethod(info); 264 TestTypedefsV8Internal::stringArrayMethodStringArrayArgMethod(info);
265 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 265 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
266 } 266 }
267 267
268 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) 268 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
269 { 269 {
270 if (UNLIKELY(info.Length() < 1)) { 270 if (info.Length() < 1) {
271 throwMinimumArityTypeErrorForConstructor("TestTypedefs", 1, info.Length( ), info.GetIsolate()); 271 throwMinimumArityTypeErrorForConstructor("TestTypedefs", 1, info.Length( ), info.GetIsolate());
272 return; 272 return;
273 } 273 }
274 V8StringResource<> stringArg; 274 V8StringResource<> stringArg;
275 { 275 {
276 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 276 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
277 } 277 }
278 RefPtr<TestTypedefs> impl = TestTypedefs::create(stringArg); 278 RefPtr<TestTypedefs> impl = TestTypedefs::create(stringArg);
279 v8::Handle<v8::Object> wrapper = info.Holder(); 279 v8::Handle<v8::Object> wrapper = info.Holder();
280 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl.release(), &V8 TestTypedefs::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration: :Independent); 280 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl.release(), &V8 TestTypedefs::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration: :Independent);
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 fromInternalPointer(object)->deref(); 385 fromInternalPointer(object)->deref();
386 } 386 }
387 387
388 template<> 388 template<>
389 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr eationContext, v8::Isolate* isolate) 389 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr eationContext, v8::Isolate* isolate)
390 { 390 {
391 return toV8(impl, creationContext, isolate); 391 return toV8(impl, creationContext, isolate);
392 } 392 }
393 393
394 } // namespace blink 394 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698