OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef RUNTIME_VM_RUNTIME_ENTRY_H_ | 5 #ifndef RUNTIME_VM_RUNTIME_ENTRY_H_ |
6 #define RUNTIME_VM_RUNTIME_ENTRY_H_ | 6 #define RUNTIME_VM_RUNTIME_ENTRY_H_ |
7 | 7 |
8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 #include "vm/flags.h" | 9 #include "vm/flags.h" |
10 #include "vm/native_arguments.h" | 10 #include "vm/native_arguments.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 } | 51 } |
52 | 52 |
53 const char* name() const { return name_; } | 53 const char* name() const { return name_; } |
54 RuntimeFunction function() const { return function_; } | 54 RuntimeFunction function() const { return function_; } |
55 intptr_t argument_count() const { return argument_count_; } | 55 intptr_t argument_count() const { return argument_count_; } |
56 bool is_leaf() const { return is_leaf_; } | 56 bool is_leaf() const { return is_leaf_; } |
57 bool is_float() const { return is_float_; } | 57 bool is_float() const { return is_float_; } |
58 uword GetEntryPoint() const; | 58 uword GetEntryPoint() const; |
59 | 59 |
60 // Generate code to call the runtime entry. | 60 // Generate code to call the runtime entry. |
61 void Call(Assembler* assembler, intptr_t argument_count) const; | 61 NOT_IN_PRECOMPILED(void Call(Assembler* assembler, intptr_t argument_count) |
| 62 const); |
62 | 63 |
63 void set_next(const RuntimeEntry* next) { next_ = next; } | 64 void set_next(const RuntimeEntry* next) { next_ = next; } |
64 const RuntimeEntry* next() const { return next_; } | 65 const RuntimeEntry* next() const { return next_; } |
65 | 66 |
66 static inline uword AddressFromId(RuntimeFunctionId id); | 67 static inline uword AddressFromId(RuntimeFunctionId id); |
67 static inline RuntimeFunctionId RuntimeFunctionIdFromAddress(uword address); | 68 static inline RuntimeFunctionId RuntimeFunctionIdFromAddress(uword address); |
68 | 69 |
69 private: | 70 private: |
70 const char* name_; | 71 const char* name_; |
71 const RuntimeFunction function_; | 72 const RuntimeFunction function_; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 const char* DeoptReasonToCString(ICData::DeoptReasonId deopt_reason); | 180 const char* DeoptReasonToCString(ICData::DeoptReasonId deopt_reason); |
180 | 181 |
181 void DeoptimizeAt(const Code& optimized_code, StackFrame* frame); | 182 void DeoptimizeAt(const Code& optimized_code, StackFrame* frame); |
182 void DeoptimizeFunctionsOnStack(); | 183 void DeoptimizeFunctionsOnStack(); |
183 | 184 |
184 double DartModulo(double a, double b); | 185 double DartModulo(double a, double b); |
185 | 186 |
186 } // namespace dart | 187 } // namespace dart |
187 | 188 |
188 #endif // RUNTIME_VM_RUNTIME_ENTRY_H_ | 189 #endif // RUNTIME_VM_RUNTIME_ENTRY_H_ |
OLD | NEW |