OLD | NEW |
1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.bytecode_assembler; | 5 library dartino_compiler.bytecode_assembler; |
6 | 6 |
7 import '../bytecodes.dart'; | 7 import '../bytecodes.dart'; |
8 | 8 |
9 const int IMPLICIT_STACK_OVERFLOW_LIMIT = 32; | 9 const int IMPLICIT_STACK_OVERFLOW_LIMIT = 32; |
10 const int frameDescriptorSize = 3; | 10 const int frameDescriptorSize = 3; |
11 | 11 |
12 class BytecodeLabel { | 12 class BytecodeLabel { |
13 int position = -1; | 13 int position = -1; |
14 final List<int> usage = <int>[]; | 14 final List<int> usage = <int>[]; |
15 | 15 |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 | 661 |
662 void invokeNativeYield(int arity, int index) { | 662 void invokeNativeYield(int arity, int index) { |
663 internalAdd(new InvokeNativeYield(arity, index)); | 663 internalAdd(new InvokeNativeYield(arity, index)); |
664 } | 664 } |
665 | 665 |
666 void emitThrow() { | 666 void emitThrow() { |
667 hasBindAfterTerminator = false; | 667 hasBindAfterTerminator = false; |
668 internalAdd(const Throw()); | 668 internalAdd(const Throw()); |
669 } | 669 } |
670 } | 670 } |
OLD | NEW |