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

Side by Side Diff: test/codegen/names.dart

Issue 1111803005: fix #159, static renames for caller/arguments (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 7 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 | « test/codegen/expect/names.js ('k') | test/codegen/names.html » ('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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 var exports = 42; 5 var exports = 42;
6 6
7 class Foo { 7 class Foo {
8 _foo() => 123; 8 _foo() => 123;
9 } 9 }
10 10
11 _foo() => 456; 11 _foo() => 456;
12 12
13 class Frame { 13 class Frame {
14 final List arguments; 14 final List arguments;
15 Frame.caller(this.arguments); 15 Frame.caller(this.arguments);
16 static callee() => null; 16 static callee() => null;
17 } 17 }
18 18
19
20 class Frame2 {
21 static int caller = 100;
22 static int arguments = 200;
23 }
24
19 main() { 25 main() {
20 print(exports); 26 print(exports);
21 print(new Foo()._foo()); 27 print(new Foo()._foo());
22 print(_foo()); 28 print(_foo());
23 print(new Frame.caller([1,2,3])); 29 print(new Frame.caller([1,2,3]));
24 var eval = Frame.callee; 30 var eval = Frame.callee;
25 print(eval); 31 print(eval);
32 print(Frame2.caller + Frame2.arguments);
26 } 33 }
OLDNEW
« no previous file with comments | « test/codegen/expect/names.js ('k') | test/codegen/names.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698