| 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_X64) | 5 #if defined(DARTINO_TARGET_X64) |
| 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 2060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2092 | 2092 |
| 2093 // Read frame pointer. | 2093 // Read frame pointer. |
| 2094 __ popq(RBP); | 2094 __ popq(RBP); |
| 2095 | 2095 |
| 2096 // Set the bcp from the stack. | 2096 // Set the bcp from the stack. |
| 2097 RestoreByteCodePointer(); | 2097 RestoreByteCodePointer(); |
| 2098 | 2098 |
| 2099 __ ret(); | 2099 __ ret(); |
| 2100 } | 2100 } |
| 2101 | 2101 |
| 2102 } // namespace fletch | 2102 } // namespace dartino |
| 2103 | 2103 |
| 2104 #endif // defined FLETCH_TARGET_X64 | 2104 #endif // defined DARTINO_TARGET_X64 |
| OLD | NEW |