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

Side by Side Diff: dart/sdk/lib/_internal/compiler/implementation/apiimpl.dart

Issue 16135004: Rename JS_CURRENT_ISOLATE to JS_CURRENT_ISOLATE_CONTEXT. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 leg_apiimpl; 5 library leg_apiimpl;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import '../compiler.dart' as api; 9 import '../compiler.dart' as api;
10 import 'dart2jslib.dart' as leg; 10 import 'dart2jslib.dart' as leg;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 hasOption(options, '--reject-deprecated-language-features'), 52 hasOption(options, '--reject-deprecated-language-features'),
53 checkDeprecationInSdk: 53 checkDeprecationInSdk:
54 hasOption(options, 54 hasOption(options,
55 '--report-sdk-use-of-deprecated-language-features'), 55 '--report-sdk-use-of-deprecated-language-features'),
56 strips: extractCsvOption(options, '--force-strip='), 56 strips: extractCsvOption(options, '--force-strip='),
57 enableConcreteTypeInference: 57 enableConcreteTypeInference:
58 hasOption(options, '--enable-concrete-type-inference'), 58 hasOption(options, '--enable-concrete-type-inference'),
59 preserveComments: hasOption(options, '--preserve-comments'), 59 preserveComments: hasOption(options, '--preserve-comments'),
60 verbose: hasOption(options, '--verbose'), 60 verbose: hasOption(options, '--verbose'),
61 sourceMapUri: extractSourceMapUri(options), 61 sourceMapUri: extractSourceMapUri(options),
62 globalJsName: extractStringOption(
63 options, '--global-js-name=', r'$'),
62 buildId: extractStringOption( 64 buildId: extractStringOption(
63 options, '--build-id=', 65 options, '--build-id=',
64 "build number could not be determined")) { 66 "build number could not be determined")) {
65 if (!libraryRoot.path.endsWith("/")) { 67 if (!libraryRoot.path.endsWith("/")) {
66 throw new ArgumentError("libraryRoot must end with a /"); 68 throw new ArgumentError("libraryRoot must end with a /");
67 } 69 }
68 if (packageRoot != null && !packageRoot.path.endsWith("/")) { 70 if (packageRoot != null && !packageRoot.path.endsWith("/")) {
69 throw new ArgumentError("packageRoot must end with a /"); 71 throw new ArgumentError("packageRoot must end with a /");
70 } 72 }
71 } 73 }
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 handler(translateUri(span.uri, null), span.begin, span.end, 283 handler(translateUri(span.uri, null), span.begin, span.end,
282 message, kind); 284 message, kind);
283 } 285 }
284 } 286 }
285 287
286 bool get isMockCompilation { 288 bool get isMockCompilation {
287 return mockableLibraryUsed 289 return mockableLibraryUsed
288 && (options.indexOf('--allow-mock-compilation') != -1); 290 && (options.indexOf('--allow-mock-compilation') != -1);
289 } 291 }
290 } 292 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698