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

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

Issue 1148343004: Remove ConstantExpression.value (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Update comments. Created 5 years, 6 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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 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 library dart2js.test.memory_compiler; 5 library dart2js.test.memory_compiler;
6 6
7 import 'memory_source_file_helper.dart'; 7 import 'memory_source_file_helper.dart';
8 8
9 import 'package:compiler/src/compile_time_constants.dart';
10
9 import 'package:compiler/src/dart2jslib.dart' 11 import 'package:compiler/src/dart2jslib.dart'
10 show NullSink; 12 show NullSink;
11 13
12 import 'package:compiler/compiler.dart' 14 import 'package:compiler/compiler.dart'
13 show Diagnostic, DiagnosticHandler, CompilerOutputProvider; 15 show Diagnostic, DiagnosticHandler, CompilerOutputProvider;
14 16
15 import 'dart:async'; 17 import 'dart:async';
16 18
17 import 'package:compiler/src/mirrors/source_mirrors.dart'; 19 import 'package:compiler/src/mirrors/source_mirrors.dart';
18 import 'package:compiler/src/mirrors/analyze.dart'; 20 import 'package:compiler/src/mirrors/analyze.dart';
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 compiler.onLibraryCreated(patchLibrary); 150 compiler.onLibraryCreated(patchLibrary);
149 compiler.onLibraryScanned(patchLibrary, null); 151 compiler.onLibraryScanned(patchLibrary, null);
150 } 152 }
151 copiedLibraries[library.canonicalUri] = library; 153 copiedLibraries[library.canonicalUri] = library;
152 } 154 }
153 }); 155 });
154 // TODO(johnniwinther): Assert that no libraries are loaded lazily from 156 // TODO(johnniwinther): Assert that no libraries are loaded lazily from
155 // this call. 157 // this call.
156 compiler.onLibrariesLoaded(new MemoryLoadedLibraries(copiedLibraries)); 158 compiler.onLibrariesLoaded(new MemoryLoadedLibraries(copiedLibraries));
157 159
160 compiler.backend.constantCompilerTask.copyConstantValues(
161 cachedCompiler.backend.constantCompilerTask);
158 compiler.symbolConstructor = cachedCompiler.symbolConstructor; 162 compiler.symbolConstructor = cachedCompiler.symbolConstructor;
159 compiler.mirrorSystemClass = cachedCompiler.mirrorSystemClass; 163 compiler.mirrorSystemClass = cachedCompiler.mirrorSystemClass;
160 compiler.mirrorsUsedClass = cachedCompiler.mirrorsUsedClass; 164 compiler.mirrorsUsedClass = cachedCompiler.mirrorsUsedClass;
161 compiler.mirrorSystemGetNameFunction = 165 compiler.mirrorSystemGetNameFunction =
162 cachedCompiler.mirrorSystemGetNameFunction; 166 cachedCompiler.mirrorSystemGetNameFunction;
163 compiler.symbolImplementationClass = 167 compiler.symbolImplementationClass =
164 cachedCompiler.symbolImplementationClass; 168 cachedCompiler.symbolImplementationClass;
165 compiler.symbolValidatedConstructor = 169 compiler.symbolValidatedConstructor =
166 cachedCompiler.symbolValidatedConstructor; 170 cachedCompiler.symbolValidatedConstructor;
167 compiler.mirrorsUsedConstructor = cachedCompiler.mirrorsUsedConstructor; 171 compiler.mirrorsUsedConstructor = cachedCompiler.mirrorsUsedConstructor;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 createDiagnosticHandler(diagnosticHandler, provider, showDiagnostics); 237 createDiagnosticHandler(diagnosticHandler, provider, showDiagnostics);
234 238
235 List<Uri> libraries = <Uri>[]; 239 List<Uri> libraries = <Uri>[];
236 memorySourceFiles.forEach((String path, _) { 240 memorySourceFiles.forEach((String path, _) {
237 libraries.add(new Uri(scheme: 'memory', path: path)); 241 libraries.add(new Uri(scheme: 'memory', path: path));
238 }); 242 });
239 243
240 return analyze(libraries, libraryRoot, packageRoot, 244 return analyze(libraries, libraryRoot, packageRoot,
241 provider, handler, options); 245 provider, handler, options);
242 } 246 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/const_exp_test.dart ('k') | tests/compiler/dart2js/message_kind_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698