| 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 #if defined(FLETCH_TARGET_IA32) | 5 #if defined(DARTINO_TARGET_IA32) |
| 6 | 6 |
| 7 #include "src/shared/bytecodes.h" | 7 #include "src/shared/bytecodes.h" |
| 8 #include "src/shared/names.h" | 8 #include "src/shared/names.h" |
| 9 #include "src/shared/selectors.h" | 9 #include "src/shared/selectors.h" |
| 10 | 10 |
| 11 #include "src/vm/assembler.h" | 11 #include "src/vm/assembler.h" |
| 12 #include "src/vm/generator.h" | 12 #include "src/vm/generator.h" |
| 13 #include "src/vm/interpreter.h" | 13 #include "src/vm/interpreter.h" |
| 14 #include "src/vm/intrinsics.h" | 14 #include "src/vm/intrinsics.h" |
| 15 #include "src/vm/object.h" | 15 #include "src/vm/object.h" |
| 16 #include "src/vm/process.h" | 16 #include "src/vm/process.h" |
| 17 #include "src/vm/program.h" | 17 #include "src/vm/program.h" |
| 18 | 18 |
| 19 #define __ assembler()-> | 19 #define __ assembler()-> |
| 20 | 20 |
| 21 namespace fletch { | 21 namespace dartino { |
| 22 | 22 |
| 23 class InterpreterGenerator { | 23 class InterpreterGenerator { |
| 24 public: | 24 public: |
| 25 explicit InterpreterGenerator(Assembler* assembler) : assembler_(assembler) {} | 25 explicit InterpreterGenerator(Assembler* assembler) : assembler_(assembler) {} |
| 26 | 26 |
| 27 void Generate(); | 27 void Generate(); |
| 28 | 28 |
| 29 virtual void GeneratePrologue() = 0; | 29 virtual void GeneratePrologue() = 0; |
| 30 virtual void GenerateEpilogue() = 0; | 30 virtual void GenerateEpilogue() = 0; |
| 31 | 31 |
| (...skipping 2115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2147 | 2147 |
| 2148 // Read frame pointer. | 2148 // Read frame pointer. |
| 2149 __ popl(EBP); | 2149 __ popl(EBP); |
| 2150 | 2150 |
| 2151 // Set the bcp from the stack. | 2151 // Set the bcp from the stack. |
| 2152 RestoreByteCodePointer(); | 2152 RestoreByteCodePointer(); |
| 2153 | 2153 |
| 2154 __ ret(); | 2154 __ ret(); |
| 2155 } | 2155 } |
| 2156 | 2156 |
| 2157 } // namespace fletch | 2157 } // namespace dartino |
| 2158 | 2158 |
| 2159 #endif // defined FLETCH_TARGET_IA32 | 2159 #endif // defined DARTINO_TARGET_IA32 |
| OLD | NEW |