| 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 class Interceptors { | 5 class Interceptors { |
| 6 Compiler compiler; | 6 Compiler compiler; |
| 7 Interceptors(Compiler this.compiler); | 7 Interceptors(Compiler this.compiler); |
| 8 | 8 |
| 9 SourceString mapOperatorToMethodName(Operator op) { | 9 SourceString mapOperatorToMethodName(Operator op) { |
| 10 String name = op.source.stringValue; | 10 String name = op.source.stringValue; |
| (...skipping 1928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1939 } | 1939 } |
| 1940 | 1940 |
| 1941 visitLiteralList(LiteralList node) { | 1941 visitLiteralList(LiteralList node) { |
| 1942 List<HInstruction> inputs = <HInstruction>[]; | 1942 List<HInstruction> inputs = <HInstruction>[]; |
| 1943 for (Link<Node> link = node.elements.nodes; | 1943 for (Link<Node> link = node.elements.nodes; |
| 1944 !link.isEmpty(); | 1944 !link.isEmpty(); |
| 1945 link = link.tail) { | 1945 link = link.tail) { |
| 1946 visit(link.head); | 1946 visit(link.head); |
| 1947 inputs.add(pop()); | 1947 inputs.add(pop()); |
| 1948 } | 1948 } |
| 1949 push(new HLiteralList(inputs)); | 1949 push(new HLiteralList(inputs, node.isConst())); |
| 1950 } | 1950 } |
| 1951 | 1951 |
| 1952 visitConditional(Conditional node) { | 1952 visitConditional(Conditional node) { |
| 1953 visit(node.condition); | 1953 visit(node.condition); |
| 1954 HBasicBlock conditionBlock = close(new HIf(popBoolified(), true)); | 1954 HBasicBlock conditionBlock = close(new HIf(popBoolified(), true)); |
| 1955 LocalsHandler savedLocals = new LocalsHandler.from(localsHandler); | 1955 LocalsHandler savedLocals = new LocalsHandler.from(localsHandler); |
| 1956 | 1956 |
| 1957 HBasicBlock thenBlock = addNewBlock(); | 1957 HBasicBlock thenBlock = addNewBlock(); |
| 1958 conditionBlock.addSuccessor(thenBlock); | 1958 conditionBlock.addSuccessor(thenBlock); |
| 1959 open(thenBlock); | 1959 open(thenBlock); |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2290 } | 2290 } |
| 2291 | 2291 |
| 2292 visitCatchBlock(CatchBlock node) { | 2292 visitCatchBlock(CatchBlock node) { |
| 2293 visit(node.block); | 2293 visit(node.block); |
| 2294 } | 2294 } |
| 2295 | 2295 |
| 2296 visitTypedef(Typedef node) { | 2296 visitTypedef(Typedef node) { |
| 2297 compiler.unimplemented('SsaBuilder.visitTypedef', node: node); | 2297 compiler.unimplemented('SsaBuilder.visitTypedef', node: node); |
| 2298 } | 2298 } |
| 2299 } | 2299 } |
| OLD | NEW |