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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart

Issue 1249023002: dart2js: support isolates in the startup-emitter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix typo. Created 5 years, 4 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) 2014, the Dart project authors. Please see the AUTHORS file 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 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.js_emitter.lazy_emitter; 5 library dart2js.js_emitter.lazy_emitter;
6 6
7 import 'package:js_runtime/shared/embedded_names.dart' show 7 import 'package:js_runtime/shared/embedded_names.dart' show
8 JsBuiltin, 8 JsBuiltin,
9 METADATA, 9 METADATA,
10 TYPES; 10 TYPES;
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 case JsBuiltin.isGivenTypeRti: 171 case JsBuiltin.isGivenTypeRti:
172 return js.js.expressionTemplateFor('#.$typeNameProperty === #'); 172 return js.js.expressionTemplateFor('#.$typeNameProperty === #');
173 173
174 case JsBuiltin.getMetadata: 174 case JsBuiltin.getMetadata:
175 return _emitter.templateForReadMetadata; 175 return _emitter.templateForReadMetadata;
176 176
177 case JsBuiltin.getType: 177 case JsBuiltin.getType:
178 return _emitter.templateForReadType; 178 return _emitter.templateForReadType;
179 179
180 case JsBuiltin.createDartClosureFromNameOfStaticFunction:
181 throw new UnsupportedError('createDartClosureFromNameOfStaticFunction');
182
180 default: 183 default:
181 _compiler.internalError(NO_LOCATION_SPANNABLE, 184 _compiler.internalError(NO_LOCATION_SPANNABLE,
182 "Unhandled Builtin: $builtin"); 185 "Unhandled Builtin: $builtin");
183 return null; 186 return null;
184 } 187 }
185 } 188 }
186 189
187 @override 190 @override
188 void invalidateCaches() { 191 void invalidateCaches() {
189 } 192 }
190 } 193 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698