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

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

Issue 12218007: Implement substitution for type variables. (Closed) Base URL: https://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
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 part of js_backend; 5 part of js_backend;
6 6
7 typedef void Recompile(Element element); 7 typedef void Recompile(Element element);
8 8
9 class ReturnInfo { 9 class ReturnInfo {
10 HType returnType; 10 HType returnType;
(...skipping 1229 matching lines...) Expand 10 before | Expand all | Expand 10 after
1240 } 1240 }
1241 1241
1242 Element getSetRuntimeTypeInfo() { 1242 Element getSetRuntimeTypeInfo() {
1243 return compiler.findHelper(const SourceString('setRuntimeTypeInfo')); 1243 return compiler.findHelper(const SourceString('setRuntimeTypeInfo'));
1244 } 1244 }
1245 1245
1246 Element getGetRuntimeTypeInfo() { 1246 Element getGetRuntimeTypeInfo() {
1247 return compiler.findHelper(const SourceString('getRuntimeTypeInfo')); 1247 return compiler.findHelper(const SourceString('getRuntimeTypeInfo'));
1248 } 1248 }
1249 1249
1250 Element getGetRuntimeTypeArgument() {
1251 return compiler.findHelper(const SourceString('getRuntimeTypeArgument'));
1252 }
1253
1250 /** 1254 /**
1251 * Remove [element] from the set of generated code, and put it back 1255 * Remove [element] from the set of generated code, and put it back
1252 * into the worklist. 1256 * into the worklist.
1253 * 1257 *
1254 * Invariant: [element] must be a declaration element. 1258 * Invariant: [element] must be a declaration element.
1255 */ 1259 */
1256 void eagerRecompile(Element element) { 1260 void eagerRecompile(Element element) {
1257 assert(invariant(element, element.isDeclaration)); 1261 assert(invariant(element, element.isDeclaration));
1258 generatedCode.remove(element); 1262 generatedCode.remove(element);
1259 generatedBailoutCode.remove(element); 1263 generatedBailoutCode.remove(element);
1260 compiler.enqueuer.codegen.addToWorkList(element); 1264 compiler.enqueuer.codegen.addToWorkList(element);
1261 } 1265 }
1262 } 1266 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698