| 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 const VERBOSE_OPTIMIZER_HINTS = false; | 7 const VERBOSE_OPTIMIZER_HINTS = false; |
| 8 | 8 |
| 9 class JavaScriptItemCompilationContext extends ItemCompilationContext { | 9 class JavaScriptItemCompilationContext extends ItemCompilationContext { |
| 10 final Set<HInstruction> boundsChecked = new Set<HInstruction>(); | 10 final Set<HInstruction> boundsChecked = new Set<HInstruction>(); |
| (...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 967 if (element.isTypedef()) { | 967 if (element.isTypedef()) { |
| 968 typedefTypeLiterals.add(element); | 968 typedefTypeLiterals.add(element); |
| 969 } | 969 } |
| 970 customElementsAnalysis.registerTypeLiteral(element, enqueuer); | 970 customElementsAnalysis.registerTypeLiteral(element, enqueuer); |
| 971 } | 971 } |
| 972 | 972 |
| 973 void registerStackTraceInCatch(TreeElements elements) { | 973 void registerStackTraceInCatch(TreeElements elements) { |
| 974 enqueueInResolution(getTraceFromException(), elements); | 974 enqueueInResolution(getTraceFromException(), elements); |
| 975 } | 975 } |
| 976 | 976 |
| 977 void registerSetRuntimeType(TreeElements elements) { | |
| 978 enqueueInResolution(getSetRuntimeTypeInfo(), elements); | |
| 979 } | |
| 980 | |
| 981 void registerGetRuntimeTypeArgument(TreeElements elements) { | 977 void registerGetRuntimeTypeArgument(TreeElements elements) { |
| 982 enqueueInResolution(getGetRuntimeTypeArgument(), elements); | 978 enqueueInResolution(getGetRuntimeTypeArgument(), elements); |
| 983 enqueueInResolution(getGetTypeArgumentByIndex(), elements); | 979 enqueueInResolution(getGetTypeArgumentByIndex(), elements); |
| 984 enqueueInResolution(getCopyTypeArguments(), elements); | 980 enqueueInResolution(getCopyTypeArguments(), elements); |
| 985 } | 981 } |
| 986 | 982 |
| 987 void registerGenericCallMethod(Element callMethod, | 983 void registerGenericCallMethod(Element callMethod, |
| 988 Enqueuer enqueuer, TreeElements elements) { | 984 Enqueuer enqueuer, TreeElements elements) { |
| 989 if (enqueuer.isResolutionQueue || methodNeedsRti(callMethod)) { | 985 if (enqueuer.isResolutionQueue || methodNeedsRti(callMethod)) { |
| 990 registerComputeSignature(enqueuer, elements); | 986 registerComputeSignature(enqueuer, elements); |
| (...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1996 copy(constant.values); | 1992 copy(constant.values); |
| 1997 copy(constant.protoValue); | 1993 copy(constant.protoValue); |
| 1998 copy(constant); | 1994 copy(constant); |
| 1999 } | 1995 } |
| 2000 | 1996 |
| 2001 void visitConstructed(ConstructedConstant constant) { | 1997 void visitConstructed(ConstructedConstant constant) { |
| 2002 copy(constant.fields); | 1998 copy(constant.fields); |
| 2003 copy(constant); | 1999 copy(constant); |
| 2004 } | 2000 } |
| 2005 } | 2001 } |
| OLD | NEW |