| 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/flow_graph_builder.h" | 5 #include "vm/flow_graph_builder.h" |
| 6 | 6 |
| 7 #include "lib/invocation_mirror.h" | 7 #include "lib/invocation_mirror.h" |
| 8 #include "vm/ast_printer.h" | 8 #include "vm/ast_printer.h" |
| 9 #include "vm/bit_vector.h" | 9 #include "vm/bit_vector.h" |
| 10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
| (...skipping 2376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2387 node->ElementAt(i)->Visit(&for_value); | 2387 node->ElementAt(i)->Visit(&for_value); |
| 2388 Append(for_value); | 2388 Append(for_value); |
| 2389 // No store barrier needed for constants. | 2389 // No store barrier needed for constants. |
| 2390 const StoreBarrierType emit_store_barrier = | 2390 const StoreBarrierType emit_store_barrier = |
| 2391 for_value.value()->BindsToConstant() | 2391 for_value.value()->BindsToConstant() |
| 2392 ? kNoStoreBarrier | 2392 ? kNoStoreBarrier |
| 2393 : kEmitStoreBarrier; | 2393 : kEmitStoreBarrier; |
| 2394 const intptr_t index_scale = Instance::ElementSizeFor(class_id); | 2394 const intptr_t index_scale = Instance::ElementSizeFor(class_id); |
| 2395 StoreIndexedInstr* store = new(Z) StoreIndexedInstr( | 2395 StoreIndexedInstr* store = new(Z) StoreIndexedInstr( |
| 2396 array, index, for_value.value(), emit_store_barrier, | 2396 array, index, for_value.value(), emit_store_barrier, |
| 2397 index_scale, class_id, deopt_id, node->token_pos()); | 2397 index_scale, class_id, kAlignedAccess, deopt_id, node->token_pos()); |
| 2398 Do(store); | 2398 Do(store); |
| 2399 } | 2399 } |
| 2400 ReturnDefinition(ExitTempLocalScope(array_val)); | 2400 ReturnDefinition(ExitTempLocalScope(array_val)); |
| 2401 } | 2401 } |
| 2402 } | 2402 } |
| 2403 | 2403 |
| 2404 | 2404 |
| 2405 void EffectGraphVisitor::VisitStringInterpolateNode( | 2405 void EffectGraphVisitor::VisitStringInterpolateNode( |
| 2406 StringInterpolateNode* node) { | 2406 StringInterpolateNode* node) { |
| 2407 ValueGraphVisitor for_argument(owner()); | 2407 ValueGraphVisitor for_argument(owner()); |
| (...skipping 2233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4641 block_marks); | 4641 block_marks); |
| 4642 ASSERT(found); | 4642 ASSERT(found); |
| 4643 } | 4643 } |
| 4644 | 4644 |
| 4645 | 4645 |
| 4646 void FlowGraphBuilder::Bailout(const char* reason) const { | 4646 void FlowGraphBuilder::Bailout(const char* reason) const { |
| 4647 parsed_function_.Bailout("FlowGraphBuilder", reason); | 4647 parsed_function_.Bailout("FlowGraphBuilder", reason); |
| 4648 } | 4648 } |
| 4649 | 4649 |
| 4650 } // namespace dart | 4650 } // namespace dart |
| OLD | NEW |