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 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 AddDeoptStub(deopt_id, -1, kDeoptAtCall); | |
|
Florian Schneider
2012/08/28 16:00:57
Maybe kNoTryIndex instead of -1.
Can you also eli
srdjan
2012/08/28 17:08:25
Using kNoTryIndex, will eliminate try_index from A
| |
| 243 pc_descriptors_list()->AddDescriptor(PcDescriptors::kDeoptIndex, | |
| 244 assembler()->CodeSize(), | |
| 245 deopt_id, | |
| 246 token_pos, | |
| 247 deopt_index); | |
| 248 } | |
| 249 | |
| 250 | |
| 236 void FlowGraphCompiler::RecordSafepoint(LocationSummary* locs) { | 251 void FlowGraphCompiler::RecordSafepoint(LocationSummary* locs) { |
| 237 if (is_optimizing()) { | 252 if (is_optimizing()) { |
| 238 BitmapBuilder* bitmap = locs->stack_bitmap(); | 253 BitmapBuilder* bitmap = locs->stack_bitmap(); |
| 239 ASSERT(bitmap != NULL); | 254 ASSERT(bitmap != NULL); |
| 240 bitmap->SetLength(StackSize()); | 255 bitmap->SetLength(StackSize()); |
| 241 stackmap_table_builder_->AddEntry(assembler()->CodeSize(), bitmap); | 256 stackmap_table_builder_->AddEntry(assembler()->CodeSize(), bitmap); |
| 242 } | 257 } |
| 243 } | 258 } |
| 244 | 259 |
| 245 | 260 |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 734 return; | 749 return; |
| 735 } | 750 } |
| 736 } | 751 } |
| 737 | 752 |
| 738 // This move is not blocked. | 753 // This move is not blocked. |
| 739 EmitMove(index); | 754 EmitMove(index); |
| 740 } | 755 } |
| 741 | 756 |
| 742 | 757 |
| 743 } // namespace dart | 758 } // namespace dart |
| OLD | NEW |