| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 void AddReturnAddressBefore(const Function& function, | 167 void AddReturnAddressBefore(const Function& function, |
| 168 intptr_t deopt_id, | 168 intptr_t deopt_id, |
| 169 intptr_t to_index); | 169 intptr_t to_index); |
| 170 | 170 |
| 171 // Return address after instruction. | 171 // Return address after instruction. |
| 172 void AddReturnAddressAfter(const Function& function, | 172 void AddReturnAddressAfter(const Function& function, |
| 173 intptr_t deopt_id, | 173 intptr_t deopt_id, |
| 174 intptr_t to_index); | 174 intptr_t to_index); |
| 175 | 175 |
| 176 // Copy from optimized frame to unoptimized. | 176 // Copy from optimized frame to unoptimized. |
| 177 void AddCopy(const Location& from_loc, intptr_t to_index); | 177 void AddCopy(Value* value, const Location& from_loc, intptr_t to_index); |
| 178 void AddPcMarker(const Function& function, intptr_t to_index); | 178 void AddPcMarker(const Function& function, intptr_t to_index); |
| 179 void AddCallerFp(intptr_t to_index); | 179 void AddCallerFp(intptr_t to_index); |
| 180 void AddCallerPc(intptr_t to_index); | 180 void AddCallerPc(intptr_t to_index); |
| 181 | 181 |
| 182 RawDeoptInfo* CreateDeoptInfo(); | 182 RawDeoptInfo* CreateDeoptInfo(); |
| 183 | 183 |
| 184 private: | 184 private: |
| 185 class TrieNode; | 185 class TrieNode; |
| 186 | 186 |
| 187 intptr_t FindOrAddObjectInTable(const Object& obj) const; | 187 intptr_t FindOrAddObjectInTable(const Object& obj) const; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 DeoptInfo* info, | 225 DeoptInfo* info, |
| 226 Smi* reason); | 226 Smi* reason); |
| 227 | 227 |
| 228 private: | 228 private: |
| 229 static const intptr_t kEntrySize = 3; | 229 static const intptr_t kEntrySize = 3; |
| 230 }; | 230 }; |
| 231 | 231 |
| 232 } // namespace dart | 232 } // namespace dart |
| 233 | 233 |
| 234 #endif // VM_DEOPT_INSTRUCTIONS_H_ | 234 #endif // VM_DEOPT_INSTRUCTIONS_H_ |
| OLD | NEW |