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

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

Issue 2452453002: Support unaligned integer loads on ARM and MIPS. (Closed)
Patch Set: . 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
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 2374 matching lines...) Expand 10 before | Expand all | Expand 10 after
2385 node->token_pos())); 2385 node->token_pos()));
2386 ValueGraphVisitor for_value(owner()); 2386 ValueGraphVisitor for_value(owner());
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 const bool aligned = true;
2395 StoreIndexedInstr* store = new(Z) StoreIndexedInstr( 2396 StoreIndexedInstr* store = new(Z) StoreIndexedInstr(
2396 array, index, for_value.value(), emit_store_barrier, 2397 array, index, for_value.value(), emit_store_barrier,
2397 index_scale, class_id, deopt_id, node->token_pos()); 2398 index_scale, class_id, aligned, deopt_id, node->token_pos());
2398 Do(store); 2399 Do(store);
2399 } 2400 }
2400 ReturnDefinition(ExitTempLocalScope(array_val)); 2401 ReturnDefinition(ExitTempLocalScope(array_val));
2401 } 2402 }
2402 } 2403 }
2403 2404
2404 2405
2405 void EffectGraphVisitor::VisitStringInterpolateNode( 2406 void EffectGraphVisitor::VisitStringInterpolateNode(
2406 StringInterpolateNode* node) { 2407 StringInterpolateNode* node) {
2407 ValueGraphVisitor for_argument(owner()); 2408 ValueGraphVisitor for_argument(owner());
(...skipping 2233 matching lines...) Expand 10 before | Expand all | Expand 10 after
4641 block_marks); 4642 block_marks);
4642 ASSERT(found); 4643 ASSERT(found);
4643 } 4644 }
4644 4645
4645 4646
4646 void FlowGraphBuilder::Bailout(const char* reason) const { 4647 void FlowGraphBuilder::Bailout(const char* reason) const {
4647 parsed_function_.Bailout("FlowGraphBuilder", reason); 4648 parsed_function_.Bailout("FlowGraphBuilder", reason);
4648 } 4649 }
4649 4650
4650 } // namespace dart 4651 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698