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

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

Issue 150883005: IDL compiler: sync Python to r166989 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/templates/interface.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 4881 matching lines...) Expand 10 before | Expand all | Expand 10 after
4892 GenerateSpecialWrap($interface, $v8ClassName); 4892 GenerateSpecialWrap($interface, $v8ClassName);
4893 GenerateToV8Converters($interface, $v8ClassName); 4893 GenerateToV8Converters($interface, $v8ClassName);
4894 4894
4895 $implementation{nameSpaceWebCore}->add("void ${v8ClassName}::derefObject(voi d* object)\n"); 4895 $implementation{nameSpaceWebCore}->add("void ${v8ClassName}::derefObject(voi d* object)\n");
4896 $implementation{nameSpaceWebCore}->add("{\n"); 4896 $implementation{nameSpaceWebCore}->add("{\n");
4897 if (IsWillBeGarbageCollectedType($interface->name)) { 4897 if (IsWillBeGarbageCollectedType($interface->name)) {
4898 $implementation{nameSpaceWebCore}->add("#if !ENABLE(OILPAN)\n"); 4898 $implementation{nameSpaceWebCore}->add("#if !ENABLE(OILPAN)\n");
4899 } 4899 }
4900 $implementation{nameSpaceWebCore}->add(" fromInternalPointer(object)->der ef();\n"); 4900 $implementation{nameSpaceWebCore}->add(" fromInternalPointer(object)->der ef();\n");
4901 if (IsWillBeGarbageCollectedType($interface->name)) { 4901 if (IsWillBeGarbageCollectedType($interface->name)) {
4902 $implementation{nameSpaceWebCore}->add("#endif\n"); 4902 $implementation{nameSpaceWebCore}->add("#endif // !ENABLE(OILPAN)\n");
4903 } 4903 }
4904 $implementation{nameSpaceWebCore}->add("}\n"); 4904 $implementation{nameSpaceWebCore}->add("}\n\n");
4905 4905
4906 $implementation{nameSpaceWebCore}->add(<<END); 4906 $implementation{nameSpaceWebCore}->add(<<END);
4907 template<> 4907 template<>
4908 v8::Handle<v8::Value> toV8NoInline(${nativeType}* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate) 4908 v8::Handle<v8::Value> toV8NoInline(${nativeType}* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate)
4909 { 4909 {
4910 return toV8(impl, creationContext, isolate); 4910 return toV8(impl, creationContext, isolate);
4911 } 4911 }
4912 4912
4913 END 4913 END
4914 } 4914 }
(...skipping 1572 matching lines...) Expand 10 before | Expand all | Expand 10 after
6487 if ($parameter->type eq "SerializedScriptValue") { 6487 if ($parameter->type eq "SerializedScriptValue") {
6488 return 1; 6488 return 1;
6489 } elsif (IsIntegerType($parameter->type)) { 6489 } elsif (IsIntegerType($parameter->type)) {
6490 return 1; 6490 return 1;
6491 } 6491 }
6492 } 6492 }
6493 return 0; 6493 return 0;
6494 } 6494 }
6495 6495
6496 1; 6496 1;
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/templates/interface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698