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

Side by Side Diff: tests/compiler/dart2js/size_test.dart

Issue 12226032: Fix size problem spotted by sra@, where iae and ioore were always put in the codegen work list. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « tests/compiler/dart2js/mock_compiler.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013, 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 import "mock_compiler.dart";
6 import "compiler_helper.dart";
7
8 const String TEST = "main() => [];";
9
10 const String DEFAULT_CORELIB_WITH_LIST = r'''
11 class Object {}
12 class bool {}
13 abstract class List {}
14 class num {}
15 class int {}
16 class double {}
17 class String {}
18 class Function {}
19 class Type {}
20 class Map {}
21 ''';
22
23 main() {
24 String generated = compileAll(TEST, coreSource: DEFAULT_CORELIB_WITH_LIST);
25 MockCompiler compiler = new MockCompiler();
26 var backend = compiler.backend;
27
28 // Make sure no class is emitted.
29 Expect.isFalse(generated.contains(backend.emitter.defineClassName));
30 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698