| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 intptr_t token_pos, | 226 intptr_t token_pos, |
| 227 intptr_t try_index) { | 227 intptr_t try_index) { |
| 228 pc_descriptors_list()->AddDescriptor(kind, | 228 pc_descriptors_list()->AddDescriptor(kind, |
| 229 assembler()->CodeSize(), | 229 assembler()->CodeSize(), |
| 230 deopt_id, | 230 deopt_id, |
| 231 token_pos, | 231 token_pos, |
| 232 try_index); | 232 try_index); |
| 233 } | 233 } |
| 234 | 234 |
| 235 | 235 |
| 236 void FlowGraphCompiler::AddDeoptIndexAtCall(intptr_t deopt_id, |
| 237 intptr_t token_pos) { |
| 238 // TODO(srdjan): Temporary use deopt stubs to maintain deopt-indexes. |
| 239 // kDeoptAtCall will not emit code, but will only generate deoptimization |
| 240 // information. |
| 241 const intptr_t deopt_index = deopt_stubs_.length(); |
| 242 const intptr_t kNoTryIndex = -1; |
| 243 AddDeoptStub(deopt_id, kNoTryIndex, kDeoptAtCall); |
| 244 pc_descriptors_list()->AddDescriptor(PcDescriptors::kDeoptIndex, |
| 245 assembler()->CodeSize(), |
| 246 deopt_id, |
| 247 token_pos, |
| 248 deopt_index); |
| 249 } |
| 250 |
| 251 |
| 236 void FlowGraphCompiler::RecordSafepoint(LocationSummary* locs) { | 252 void FlowGraphCompiler::RecordSafepoint(LocationSummary* locs) { |
| 237 if (is_optimizing()) { | 253 if (is_optimizing()) { |
| 238 BitmapBuilder* bitmap = locs->stack_bitmap(); | 254 BitmapBuilder* bitmap = locs->stack_bitmap(); |
| 239 ASSERT(bitmap != NULL); | 255 ASSERT(bitmap != NULL); |
| 240 bitmap->SetLength(StackSize()); | 256 bitmap->SetLength(StackSize()); |
| 241 stackmap_table_builder_->AddEntry(assembler()->CodeSize(), bitmap); | 257 stackmap_table_builder_->AddEntry(assembler()->CodeSize(), bitmap); |
| 242 } | 258 } |
| 243 } | 259 } |
| 244 | 260 |
| 245 | 261 |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 734 return; | 750 return; |
| 735 } | 751 } |
| 736 } | 752 } |
| 737 | 753 |
| 738 // This move is not blocked. | 754 // This move is not blocked. |
| 739 EmitMove(index); | 755 EmitMove(index); |
| 740 } | 756 } |
| 741 | 757 |
| 742 | 758 |
| 743 } // namespace dart | 759 } // namespace dart |
| OLD | NEW |