OLD | NEW |
1 // Copyright (c) 2014, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 #ifndef SRC_VM_INTERPRETER_H_ | 5 #ifndef SRC_VM_INTERPRETER_H_ |
6 #define SRC_VM_INTERPRETER_H_ | 6 #define SRC_VM_INTERPRETER_H_ |
7 | 7 |
8 #include "src/shared/globals.h" | 8 #include "src/shared/globals.h" |
9 | 9 |
10 #include "src/vm/lookup_cache.h" | 10 #include "src/vm/lookup_cache.h" |
11 #include "src/vm/natives.h" | 11 #include "src/vm/natives.h" |
12 #include "src/vm/process.h" | 12 #include "src/vm/process.h" |
13 | 13 |
14 namespace fletch { | 14 namespace dartino { |
15 | 15 |
16 class Coroutine; | 16 class Coroutine; |
17 class Failure; | 17 class Failure; |
18 class Function; | 18 class Function; |
19 class Port; | 19 class Port; |
20 | 20 |
21 class TargetYieldResult { | 21 class TargetYieldResult { |
22 public: | 22 public: |
23 explicit TargetYieldResult(const Object* object) | 23 explicit TargetYieldResult(const Object* object) |
24 : value_(reinterpret_cast<uword>(object)) {} | 24 : value_(reinterpret_cast<uword>(object)) {} |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 extern "C" uint8* HandleThrow(Process* process, Object* exception, | 119 extern "C" uint8* HandleThrow(Process* process, Object* exception, |
120 int* stack_delta_result, | 120 int* stack_delta_result, |
121 Object*** frame_pointer_result); | 121 Object*** frame_pointer_result); |
122 | 122 |
123 extern "C" void HandleEnterNoSuchMethod(Process* process); | 123 extern "C" void HandleEnterNoSuchMethod(Process* process); |
124 | 124 |
125 extern "C" Function* HandleInvokeSelector(Process* process); | 125 extern "C" Function* HandleInvokeSelector(Process* process); |
126 | 126 |
127 extern "C" int HandleAtBytecode(Process* process, uint8* bcp, Object** sp); | 127 extern "C" int HandleAtBytecode(Process* process, uint8* bcp, Object** sp); |
128 | 128 |
129 } // namespace fletch | 129 } // namespace dartino |
130 | 130 |
131 #endif // SRC_VM_INTERPRETER_H_ | 131 #endif // SRC_VM_INTERPRETER_H_ |
OLD | NEW |