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

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

Issue 148083004: IDL compiler: anonymous indexed property getters (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 11 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/scripts/unstable/v8_interface.py » ('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 4369 matching lines...) Expand 10 before | Expand all | Expand 10 after
4380 4380
4381 if ($interface->extendedAttributes->{"CheckSecurity"} && $interface->name ne "Window") { 4381 if ($interface->extendedAttributes->{"CheckSecurity"} && $interface->name ne "Window") {
4382 GenerateSecurityCheckFunctions($interface); 4382 GenerateSecurityCheckFunctions($interface);
4383 } 4383 }
4384 4384
4385 my @perContextEnabledFunctions; 4385 my @perContextEnabledFunctions;
4386 my @normalFunctions; 4386 my @normalFunctions;
4387 my $needsDomainSafeFunctionSetter = 0; 4387 my $needsDomainSafeFunctionSetter = 0;
4388 # Generate methods for functions. 4388 # Generate methods for functions.
4389 foreach my $function (@{$interface->functions}) { 4389 foreach my $function (@{$interface->functions}) {
4390 next if $function->name eq ""; 4390 next if $function->name eq ""; # Skip anonymous special operations
4391 my @worldSuffixes = (""); 4391 my @worldSuffixes = ("");
4392 if ($function->extendedAttributes->{"PerWorldBindings"}) { 4392 if ($function->extendedAttributes->{"PerWorldBindings"}) {
4393 push(@worldSuffixes, "ForMainWorld"); 4393 push(@worldSuffixes, "ForMainWorld");
4394 } 4394 }
4395 foreach my $worldSuffix (@worldSuffixes) { 4395 foreach my $worldSuffix (@worldSuffixes) {
4396 GenerateFunction($function, $interface, $worldSuffix); 4396 GenerateFunction($function, $interface, $worldSuffix);
4397 if ($function->{overloadIndex} == @{$function->{overloads}}) { 4397 if ($function->{overloadIndex} == @{$function->{overloads}}) {
4398 if ($function->{overloadIndex} > 1) { 4398 if ($function->{overloadIndex} > 1) {
4399 GenerateOverloadedFunction($function, $interface, $worldSuff ix); 4399 GenerateOverloadedFunction($function, $interface, $worldSuff ix);
4400 } 4400 }
(...skipping 1997 matching lines...) Expand 10 before | Expand all | Expand 10 after
6398 if ($parameter->type eq "SerializedScriptValue") { 6398 if ($parameter->type eq "SerializedScriptValue") {
6399 return 1; 6399 return 1;
6400 } elsif (IsIntegerType($parameter->type)) { 6400 } elsif (IsIntegerType($parameter->type)) {
6401 return 1; 6401 return 1;
6402 } 6402 }
6403 } 6403 }
6404 return 0; 6404 return 0;
6405 } 6405 }
6406 6406
6407 1; 6407 1;
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/scripts/unstable/v8_interface.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698