Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1100)

Side by Side Diff: runtime/vm/flow_graph_builder.cc

Issue 2452453002: Support unaligned integer loads on ARM and MIPS. (Closed)
Patch Set: review Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/assembler_mips_test.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/assembler_mips_test.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698