Chromium Code Reviews| 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/globals.h" // Needed here to get TARGET_ARCH_XXX. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX. |
| 6 | 6 |
| 7 #include "vm/flow_graph_compiler.h" | 7 #include "vm/flow_graph_compiler.h" |
| 8 | 8 |
| 9 #include "vm/dart_entry.h" | 9 #include "vm/dart_entry.h" |
| 10 #include "vm/debugger.h" | 10 #include "vm/debugger.h" |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 194 | 194 |
| 195 Label* FlowGraphCompiler::AddDeoptStub(intptr_t deopt_id, | 195 Label* FlowGraphCompiler::AddDeoptStub(intptr_t deopt_id, |
| 196 intptr_t deopt_token_pos, | 196 intptr_t deopt_token_pos, |
| 197 intptr_t try_index, | 197 intptr_t try_index, |
| 198 DeoptReasonId reason, | 198 DeoptReasonId reason, |
| 199 Register reg1, | 199 Register reg1, |
| 200 Register reg2, | 200 Register reg2, |
| 201 Register reg3) { | 201 Register reg3) { |
| 202 DeoptimizationStub* stub = | 202 DeoptimizationStub* stub = |
| 203 new DeoptimizationStub(deopt_id, deopt_token_pos, try_index, reason); | 203 new DeoptimizationStub(deopt_id, deopt_token_pos, try_index, reason); |
| 204 ASSERT((pending_deoptimization_env_ != NULL) || !is_ssa_); | |
|
srdjan
2012/07/31 15:53:15
Alternative would be to split this into two assert
Florian Schneider
2012/08/01 11:46:36
Done.
| |
| 204 if (pending_deoptimization_env_ == NULL) { | 205 if (pending_deoptimization_env_ == NULL) { |
| 205 frame_register_allocator()->SpillInDeoptStub(stub); | 206 frame_register_allocator()->SpillInDeoptStub(stub); |
| 206 if (reg1 != kNoRegister) stub->Push(reg1); | 207 if (reg1 != kNoRegister) stub->Push(reg1); |
| 207 if (reg2 != kNoRegister) stub->Push(reg2); | 208 if (reg2 != kNoRegister) stub->Push(reg2); |
| 208 if (reg3 != kNoRegister) stub->Push(reg3); | 209 if (reg3 != kNoRegister) stub->Push(reg3); |
| 209 } else { | 210 } else { |
| 210 stub->set_deoptimization_env(pending_deoptimization_env_); | 211 stub->set_deoptimization_env(pending_deoptimization_env_); |
| 211 } | 212 } |
| 212 deopt_stubs_.Add(stub); | 213 deopt_stubs_.Add(stub); |
| 213 return stub->entry_label(); | 214 return stub->entry_label(); |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 800 return; | 801 return; |
| 801 } | 802 } |
| 802 } | 803 } |
| 803 | 804 |
| 804 // This move is not blocked. | 805 // This move is not blocked. |
| 805 EmitMove(index); | 806 EmitMove(index); |
| 806 } | 807 } |
| 807 | 808 |
| 808 | 809 |
| 809 } // namespace dart | 810 } // namespace dart |
| OLD | NEW |