| 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 1892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1903 void visitTrue(TrueConstant constant) => copy(constant); | 1903 void visitTrue(TrueConstant constant) => copy(constant); |
| 1904 | 1904 |
| 1905 void visitFalse(FalseConstant constant) => copy(constant); | 1905 void visitFalse(FalseConstant constant) => copy(constant); |
| 1906 | 1906 |
| 1907 void visitString(StringConstant constant) => copy(constant); | 1907 void visitString(StringConstant constant) => copy(constant); |
| 1908 | 1908 |
| 1909 void visitType(TypeConstant constant) => copy(constant); | 1909 void visitType(TypeConstant constant) => copy(constant); |
| 1910 | 1910 |
| 1911 void visitInterceptor(InterceptorConstant constant) => copy(constant); | 1911 void visitInterceptor(InterceptorConstant constant) => copy(constant); |
| 1912 | 1912 |
| 1913 void visitDummyReceiver(DummyReceiverConstant constant) => copy(constant); | 1913 void visitDummy(DummyConstant constant) => copy(constant); |
| 1914 | 1914 |
| 1915 void visitList(ListConstant constant) { | 1915 void visitList(ListConstant constant) { |
| 1916 copy(constant.entries); | 1916 copy(constant.entries); |
| 1917 copy(constant); | 1917 copy(constant); |
| 1918 } | 1918 } |
| 1919 void visitMap(MapConstant constant) { | 1919 void visitMap(MapConstant constant) { |
| 1920 copy(constant.keys); | 1920 copy(constant.keys); |
| 1921 copy(constant.values); | 1921 copy(constant.values); |
| 1922 copy(constant.protoValue); | 1922 copy(constant.protoValue); |
| 1923 copy(constant); | 1923 copy(constant); |
| 1924 } | 1924 } |
| 1925 | 1925 |
| 1926 void visitConstructed(ConstructedConstant constant) { | 1926 void visitConstructed(ConstructedConstant constant) { |
| 1927 copy(constant.fields); | 1927 copy(constant.fields); |
| 1928 copy(constant); | 1928 copy(constant); |
| 1929 } | 1929 } |
| 1930 } | 1930 } |
| OLD | NEW |