| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |