| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_DEOPT_INSTRUCTIONS_H_ | 5 #ifndef VM_DEOPT_INSTRUCTIONS_H_ |
| 6 #define VM_DEOPT_INSTRUCTIONS_H_ | 6 #define VM_DEOPT_INSTRUCTIONS_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/code_generator.h" | 10 #include "vm/code_generator.h" |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 void AddReturnAddressBefore(const Function& function, | 158 void AddReturnAddressBefore(const Function& function, |
| 159 intptr_t deopt_id, | 159 intptr_t deopt_id, |
| 160 intptr_t to_index); | 160 intptr_t to_index); |
| 161 | 161 |
| 162 // Return address after instruction. | 162 // Return address after instruction. |
| 163 void AddReturnAddressAfter(const Function& function, | 163 void AddReturnAddressAfter(const Function& function, |
| 164 intptr_t deopt_id, | 164 intptr_t deopt_id, |
| 165 intptr_t to_index); | 165 intptr_t to_index); |
| 166 | 166 |
| 167 // Copy from optimized frame to unoptimized. | 167 // Copy from optimized frame to unoptimized. |
| 168 void AddCopy(const Location& from_loc, | 168 void AddCopy(const Location& from_loc, intptr_t to_index); |
| 169 const Value& from_value, | |
| 170 intptr_t to_index); | |
| 171 void AddPcMarker(const Function& function, intptr_t to_index); | 169 void AddPcMarker(const Function& function, intptr_t to_index); |
| 172 void AddCallerFp(intptr_t to_index); | 170 void AddCallerFp(intptr_t to_index); |
| 173 void AddCallerPc(intptr_t to_index); | 171 void AddCallerPc(intptr_t to_index); |
| 174 | 172 |
| 175 RawDeoptInfo* CreateDeoptInfo(); | 173 RawDeoptInfo* CreateDeoptInfo(); |
| 176 | 174 |
| 177 private: | 175 private: |
| 178 class TrieNode; | 176 class TrieNode; |
| 179 | 177 |
| 180 intptr_t FindOrAddObjectInTable(const Object& obj) const; | 178 intptr_t FindOrAddObjectInTable(const Object& obj) const; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 DeoptInfo* info, | 216 DeoptInfo* info, |
| 219 Smi* reason); | 217 Smi* reason); |
| 220 | 218 |
| 221 private: | 219 private: |
| 222 static const intptr_t kEntrySize = 3; | 220 static const intptr_t kEntrySize = 3; |
| 223 }; | 221 }; |
| 224 | 222 |
| 225 } // namespace dart | 223 } // namespace dart |
| 226 | 224 |
| 227 #endif // VM_DEOPT_INSTRUCTIONS_H_ | 225 #endif // VM_DEOPT_INSTRUCTIONS_H_ |
| OLD | NEW |