| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 const char* DeoptReasonToCString(ICData::DeoptReasonId deopt_reason); | 183 const char* DeoptReasonToCString(ICData::DeoptReasonId deopt_reason); |
| 183 | 184 |
| 184 void DeoptimizeAt(const Code& optimized_code, StackFrame* frame); | 185 void DeoptimizeAt(const Code& optimized_code, StackFrame* frame); |
| 185 void DeoptimizeFunctionsOnStack(); | 186 void DeoptimizeFunctionsOnStack(); |
| 186 | 187 |
| 187 double DartModulo(double a, double b); | 188 double DartModulo(double a, double b); |
| 188 | 189 |
| 189 } // namespace dart | 190 } // namespace dart |
| 190 | 191 |
| 191 #endif // RUNTIME_VM_RUNTIME_ENTRY_H_ | 192 #endif // RUNTIME_VM_RUNTIME_ENTRY_H_ |
| OLD | NEW |