| 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 #include "vm/stack_frame.h" | 5 #include "vm/stack_frame.h" |
| 6 | 6 |
| 7 #include "vm/assembler_macros.h" | 7 #include "vm/assembler_macros.h" |
| 8 #include "vm/deopt_instructions.h" | 8 #include "vm/deopt_instructions.h" |
| 9 #include "vm/isolate.h" | 9 #include "vm/isolate.h" |
| 10 #include "vm/object.h" | 10 #include "vm/object.h" |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 return func_.raw(); | 308 return func_.raw(); |
| 309 } | 309 } |
| 310 // Iterate over the deopt instructions and determine the inlined | 310 // Iterate over the deopt instructions and determine the inlined |
| 311 // functions if any and iterate over them. | 311 // functions if any and iterate over them. |
| 312 ASSERT(deopt_info_.Length() != 0); | 312 ASSERT(deopt_info_.Length() != 0); |
| 313 while (index_ < deopt_info_.Length()) { | 313 while (index_ < deopt_info_.Length()) { |
| 314 intptr_t cur_index = index_; | 314 intptr_t cur_index = index_; |
| 315 index_ += 1; | 315 index_ += 1; |
| 316 intptr_t deopt_instr = deopt_info_.Instruction(cur_index); | 316 intptr_t deopt_instr = deopt_info_.Instruction(cur_index); |
| 317 ASSERT(deopt_instr != DeoptInstr::kRetBeforeAddress); | 317 ASSERT(deopt_instr != DeoptInstr::kRetBeforeAddress); |
| 318 if ((deopt_instr == DeoptInstr::kRetAfterAddress)) { | 318 if (deopt_instr == DeoptInstr::kRetAfterAddress) { |
| 319 intptr_t deopt_from_index = deopt_info_.FromIndex(cur_index); | 319 intptr_t deopt_from_index = deopt_info_.FromIndex(cur_index); |
| 320 *pc = DeoptInstr::GetRetAfterAddress(deopt_from_index, | 320 *pc = DeoptInstr::GetRetAfterAddress(deopt_from_index, |
| 321 object_table_, | 321 object_table_, |
| 322 &func_); | 322 &func_); |
| 323 return func_.raw(); | 323 return func_.raw(); |
| 324 } | 324 } |
| 325 } | 325 } |
| 326 index_ = -1; | 326 index_ = -1; |
| 327 return Function::null(); | 327 return Function::null(); |
| 328 } | 328 } |
| 329 | 329 |
| 330 } // namespace dart | 330 } // namespace dart |
| OLD | NEW |