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

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

Issue 78713009: Introduce toV8NoInline (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 7 years 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 | « no previous file | Source/bindings/tests/results/V8Float64Array.cpp » ('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 4726 matching lines...) Expand 10 before | Expand all | Expand 10 after
4737 4737
4738 GenerateToV8Converters($interface, $v8ClassName, $nativeType); 4738 GenerateToV8Converters($interface, $v8ClassName, $nativeType);
4739 4739
4740 $implementation{nameSpaceWebCore}->add(<<END); 4740 $implementation{nameSpaceWebCore}->add(<<END);
4741 void ${v8ClassName}::derefObject(void* object) 4741 void ${v8ClassName}::derefObject(void* object)
4742 { 4742 {
4743 fromInternalPointer(object)->deref(); 4743 fromInternalPointer(object)->deref();
4744 } 4744 }
4745 4745
4746 END 4746 END
4747 if (!$interface->extendedAttributes->{"DoNotGenerateToV8"}) {
4748 $implementation{nameSpaceWebCore}->add(<<END);
4749 template<>
4750 v8::Handle<v8::Value> toV8NoInline(${nativeType}* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate)
4751 {
4752 return toV8(impl, creationContext, isolate);
4753 }
4754
4755 END
4756 }
4747 } 4757 }
4748 4758
4749 sub GenerateHeaderContentHeader 4759 sub GenerateHeaderContentHeader
4750 { 4760 {
4751 my $interface = shift; 4761 my $interface = shift;
4752 my $v8ClassName = GetV8ClassName($interface); 4762 my $v8ClassName = GetV8ClassName($interface);
4753 my $conditionalString = GenerateConditionalString($interface); 4763 my $conditionalString = GenerateConditionalString($interface);
4754 4764
4755 my @headerContentHeader = split("\r", $licenseHeader); 4765 my @headerContentHeader = split("\r", $licenseHeader);
4756 4766
(...skipping 1579 matching lines...) Expand 10 before | Expand all | Expand 10 after
6336 6346
6337 return 1 if $interface->extendedAttributes->{"CustomToV8"}; 6347 return 1 if $interface->extendedAttributes->{"CustomToV8"};
6338 return 1 if $interface->extendedAttributes->{"CustomWrap"}; 6348 return 1 if $interface->extendedAttributes->{"CustomWrap"};
6339 return 1 if $interface->extendedAttributes->{"SpecialWrapFor"}; 6349 return 1 if $interface->extendedAttributes->{"SpecialWrapFor"};
6340 return 1 if InheritsInterface($interface, "Document"); 6350 return 1 if InheritsInterface($interface, "Document");
6341 6351
6342 return 0; 6352 return 0;
6343 } 6353 }
6344 6354
6345 1; 6355 1;
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/tests/results/V8Float64Array.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698