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

Side by Side Diff: Source/bindings/scripts/CodeGeneratorV8.pm

Issue 14348032: Perfrorm binding integrity check using scriptwrappable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/bindings/tests/results/V8TestActiveDOMObject.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> 1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com> 2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com>
3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org> 4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org>
5 # Copyright (C) 2006 Apple Computer, Inc. 5 # Copyright (C) 2006 Apple Computer, Inc.
6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc. 6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc.
7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
8 # Copyright (C) Research In Motion Limited 2010. All rights reserved. 8 # Copyright (C) Research In Motion Limited 2010. All rights reserved.
9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 # Copyright (C) 2012 Ericsson AB. All rights reserved. 10 # Copyright (C) 2012 Ericsson AB. All rights reserved.
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 574
575 v8::Handle<v8::Object> wrap(${nativeType}* impl, v8::Handle<v8::Object> creation Context, v8::Isolate*); 575 v8::Handle<v8::Object> wrap(${nativeType}* impl, v8::Handle<v8::Object> creation Context, v8::Isolate*);
576 END 576 END
577 } else { 577 } else {
578 AddToHeader(<<END); 578 AddToHeader(<<END);
579 579
580 inline v8::Handle<v8::Object> wrap(${nativeType}* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate) 580 inline v8::Handle<v8::Object> wrap(${nativeType}* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate)
581 { 581 {
582 ASSERT(impl); 582 ASSERT(impl);
583 ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty()); 583 ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty());
584 if (ScriptWrappable::wrapperCanBeStoredInObject(impl)) {
585 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje ct(impl);
586 if (actualInfo != &${v8InterfaceName}::info)
587 CRASH();
abarth-chromium 2013/04/23 21:09:48 Should we be using RELEASE_ASSERT? cevans seemed
588 }
584 return ${returningCreatedWrapperOpening}$createWrapperCall(impl, creationCon text, isolate)${returningCreatedWrapperClosing}; 589 return ${returningCreatedWrapperOpening}$createWrapperCall(impl, creationCon text, isolate)${returningCreatedWrapperClosing};
585 } 590 }
586 END 591 END
587 } 592 }
588 593
589 AddToHeader(<<END); 594 AddToHeader(<<END);
590 595
591 inline v8::Handle<v8::Value> toV8(${nativeType}* impl, v8::Handle<v8::Object> cr eationContext, v8::Isolate* isolate) 596 inline v8::Handle<v8::Value> toV8(${nativeType}* impl, v8::Handle<v8::Object> cr eationContext, v8::Isolate* isolate)
592 { 597 {
593 if (UNLIKELY(!impl)) 598 if (UNLIKELY(!impl))
(...skipping 4263 matching lines...) Expand 10 before | Expand all | Expand 10 after
4857 4862
4858 sub GetPassRefPtrType 4863 sub GetPassRefPtrType
4859 { 4864 {
4860 my $v8InterfaceName = shift; 4865 my $v8InterfaceName = shift;
4861 4866
4862 my $angleBracketSpace = $v8InterfaceName =~ />$/ ? " " : ""; 4867 my $angleBracketSpace = $v8InterfaceName =~ />$/ ? " " : "";
4863 return "PassRefPtr<${v8InterfaceName}${angleBracketSpace}>"; 4868 return "PassRefPtr<${v8InterfaceName}${angleBracketSpace}>";
4864 } 4869 }
4865 4870
4866 1; 4871 1;
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/tests/results/V8TestActiveDOMObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698