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

Side by Side Diff: tests/language/deferred_static_seperate_lib1.dart

Issue 810473003: dart2js: Fix of deferred static functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
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.
4
5 library lib1;
6
7 class C {
8 static foo() {
9 () {} (); // Hack to avoid inlining.
10 return 1;
11 }
12 bar() {
13 () {} (); // Hack to avoid inlining.
14 return 1;
15 }
16 }
17
18 class C1 {
19 static var foo = const {};
floitsch 2014/12/16 12:19:45 use different compile time constants for every fie
sigurdm 2014/12/16 13:02:51 Done.
20 var bar = const {};
21 }
22
23 class C2 {
24 static var foo = new Map();
25 var bar = new Map();
26 }
27
28 class C3 {
29 static final foo = const {};
30 final bar = const {};
31 }
32
33 class C4 {
34 static final foo = new Map();
35 final bar = new Map();
36 }
37
38 class C5 {
39 static const foo = const {};
40 bar() {
41 () {} (); // Hack to avoid inlining.
42 return 1;
43 }
44 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart ('k') | tests/language/deferred_static_seperate_lib2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698