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

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

Issue 2938203003: Compute KernelClosureRepresentationInfo.variableIsUsedInTryOrSync (Closed)
Patch Set: Merge KernelClosureConversionTask and KernelClosureDataLookup Created 3 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:compiler/compiler.dart' show DiagnosticHandler; 9 import 'package:compiler/compiler.dart' show DiagnosticHandler;
10 import 'package:compiler/compiler_new.dart' 10 import 'package:compiler/compiler_new.dart'
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 // One potential problem that can occur when reusing elements is that there 197 // One potential problem that can occur when reusing elements is that there
198 // is a stale reference to an old compiler object. By nulling out the old 198 // is a stale reference to an old compiler object. By nulling out the old
199 // compiler's fields, such stale references are easier to identify. 199 // compiler's fields, such stale references are easier to identify.
200 cachedCompiler.scanner = null; 200 cachedCompiler.scanner = null;
201 cachedCompiler.dietParser = null; 201 cachedCompiler.dietParser = null;
202 cachedCompiler.parser = null; 202 cachedCompiler.parser = null;
203 cachedCompiler.patchParser = null; 203 cachedCompiler.patchParser = null;
204 cachedCompiler.libraryLoader = null; 204 cachedCompiler.libraryLoader = null;
205 cachedCompiler.resolver = null; 205 cachedCompiler.resolver = null;
206 cachedCompiler.closureDataLookup = null;
207 cachedCompiler.checker = null; 206 cachedCompiler.checker = null;
208 cachedCompiler.globalInference = null; 207 cachedCompiler.globalInference = null;
209 cachedCompiler.backend = null; 208 cachedCompiler.backend = null;
210 // Don't null out the enqueuer as it prevents us from using cachedCompiler 209 // Don't null out the enqueuer as it prevents us from using cachedCompiler
211 // more than once. 210 // more than once.
212 cachedCompiler.deferredLoadTask = null; 211 cachedCompiler.deferredLoadTask = null;
213 cachedCompiler.mirrorUsageAnalyzerTask = null; 212 cachedCompiler.mirrorUsageAnalyzerTask = null;
214 cachedCompiler.dumpInfoTask = null; 213 cachedCompiler.dumpInfoTask = null;
215 } 214 }
216 return compiler; 215 return compiler;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 handler = (Uri uri, int begin, int end, String message, Diagnostic kind) { 249 handler = (Uri uri, int begin, int end, String message, Diagnostic kind) {
251 diagnosticHandler(uri, begin, end, message, kind); 250 diagnosticHandler(uri, begin, end, message, kind);
252 formattingHandler(uri, begin, end, message, kind); 251 formattingHandler(uri, begin, end, message, kind);
253 }; 252 };
254 } 253 }
255 } else if (diagnosticHandler == null) { 254 } else if (diagnosticHandler == null) {
256 handler = (Uri uri, int begin, int end, String message, Diagnostic kind) {}; 255 handler = (Uri uri, int begin, int end, String message, Diagnostic kind) {};
257 } 256 }
258 return handler; 257 return handler;
259 } 258 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698