OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Fletch 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 library fletchc.function_codegen; | 5 library fletchc.function_codegen; |
6 | 6 |
7 import 'package:compiler/src/dart2jslib.dart' show | 7 import 'package:compiler/src/resolution/tree_elements.dart' show |
8 MessageKind, | 8 TreeElements; |
9 Registry; | |
10 | 9 |
11 import 'package:compiler/src/elements/elements.dart'; | 10 import 'package:compiler/src/elements/elements.dart'; |
12 import 'package:compiler/src/resolution/resolution.dart'; | |
13 import 'package:compiler/src/tree/tree.dart'; | 11 import 'package:compiler/src/tree/tree.dart'; |
14 | 12 |
15 import 'fletch_context.dart'; | 13 import 'fletch_context.dart'; |
16 | 14 |
17 import 'fletch_function_builder.dart' show | 15 import 'fletch_function_builder.dart' show |
18 FletchFunctionBuilder; | 16 FletchFunctionBuilder; |
19 | 17 |
20 import 'fletch_registry.dart' show | 18 import 'fletch_registry.dart' show |
21 FletchRegistry; | 19 FletchRegistry; |
22 | 20 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 } | 131 } |
134 } | 132 } |
135 | 133 |
136 void optionalReplaceResultValue() { | 134 void optionalReplaceResultValue() { |
137 if (hasAssignmentSemantics) { | 135 if (hasAssignmentSemantics) { |
138 assembler.pop(); | 136 assembler.pop(); |
139 assembler.loadSlot(setterResultSlot); | 137 assembler.loadSlot(setterResultSlot); |
140 } | 138 } |
141 } | 139 } |
142 } | 140 } |
OLD | NEW |