| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 VM_CODE_GENERATOR_H_ | 5 #ifndef VM_CODE_GENERATOR_H_ |
| 6 #define VM_CODE_GENERATOR_H_ | 6 #define VM_CODE_GENERATOR_H_ |
| 7 | 7 |
| 8 #include "vm/globals.h" | 8 #include "vm/globals.h" |
| 9 #include "vm/runtime_entry.h" | 9 #include "vm/runtime_entry.h" |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 V(RelationalOp) \ | 66 V(RelationalOp) \ |
| 67 V(EqualityClassCheck) \ | 67 V(EqualityClassCheck) \ |
| 68 V(NoTypeFeedback) \ | 68 V(NoTypeFeedback) \ |
| 69 V(UnaryOp) \ | 69 V(UnaryOp) \ |
| 70 V(UnboxInteger) \ | 70 V(UnboxInteger) \ |
| 71 V(CheckClass) \ | 71 V(CheckClass) \ |
| 72 V(CheckSmi) \ | 72 V(CheckSmi) \ |
| 73 V(CheckArrayBound) \ | 73 V(CheckArrayBound) \ |
| 74 V(AtCall) \ | 74 V(AtCall) \ |
| 75 V(DoubleToSmi) \ | 75 V(DoubleToSmi) \ |
| 76 V(Int32Load) \ |
| 77 V(Uint32Load) \ |
| 76 V(NumReasons) \ | 78 V(NumReasons) \ |
| 77 | 79 |
| 78 enum DeoptReasonId { | 80 enum DeoptReasonId { |
| 79 #define DEFINE_ENUM_LIST(name) kDeopt##name, | 81 #define DEFINE_ENUM_LIST(name) kDeopt##name, |
| 80 DEOPT_REASONS(DEFINE_ENUM_LIST) | 82 DEOPT_REASONS(DEFINE_ENUM_LIST) |
| 81 #undef DEFINE_ENUM_LIST | 83 #undef DEFINE_ENUM_LIST |
| 82 }; | 84 }; |
| 83 | 85 |
| 84 | 86 |
| 85 const char* DeoptReasonToText(intptr_t deopt_id); | 87 const char* DeoptReasonToText(intptr_t deopt_id); |
| 86 | 88 |
| 87 | 89 |
| 88 RawCode* ResolveCompileInstanceCallTarget( | 90 RawCode* ResolveCompileInstanceCallTarget( |
| 89 const Instance& receiver, | 91 const Instance& receiver, |
| 90 const ICData& ic_data, | 92 const ICData& ic_data, |
| 91 const Array& arguments_descriptor); | 93 const Array& arguments_descriptor); |
| 92 | 94 |
| 93 void DeoptimizeAll(); | 95 void DeoptimizeAll(); |
| 94 void DeoptimizeIfOwner(const GrowableArray<intptr_t>& classes); | 96 void DeoptimizeIfOwner(const GrowableArray<intptr_t>& classes); |
| 95 | 97 |
| 96 } // namespace dart | 98 } // namespace dart |
| 97 | 99 |
| 98 #endif // VM_CODE_GENERATOR_H_ | 100 #endif // VM_CODE_GENERATOR_H_ |
| OLD | NEW |