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

Side by Side Diff: runtime/vm/flow_graph_compiler.h

Issue 286903015: Cross-platform cleanup in preparation of better ARM code for indexed load/store. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_arm.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 #ifndef VM_FLOW_GRAPH_COMPILER_H_ 5 #ifndef VM_FLOW_GRAPH_COMPILER_H_
6 #define VM_FLOW_GRAPH_COMPILER_H_ 6 #define VM_FLOW_GRAPH_COMPILER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/code_descriptors.h" 10 #include "vm/code_descriptors.h"
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 return CatchClauseNode::kInvalidTryIndex; 443 return CatchClauseNode::kInvalidTryIndex;
444 } 444 }
445 return current_block_->try_index(); 445 return current_block_->try_index();
446 } 446 }
447 447
448 bool may_reoptimize() const { return may_reoptimize_; } 448 bool may_reoptimize() const { return may_reoptimize_; }
449 449
450 // Array/list element address computations. 450 // Array/list element address computations.
451 static intptr_t DataOffsetFor(intptr_t cid); 451 static intptr_t DataOffsetFor(intptr_t cid);
452 static intptr_t ElementSizeFor(intptr_t cid); 452 static intptr_t ElementSizeFor(intptr_t cid);
453 static FieldAddress ElementAddressForIntIndex(intptr_t cid, 453 static Address ElementAddressForIntIndex(intptr_t cid,
454 intptr_t index_scale, 454 intptr_t index_scale,
455 Register array, 455 Register array,
456 intptr_t offset); 456 intptr_t offset);
457 static FieldAddress ElementAddressForRegIndex(intptr_t cid, 457 static Address ElementAddressForRegIndex(intptr_t cid,
458 intptr_t index_scale, 458 intptr_t index_scale,
459 Register array, 459 Register array,
460 Register index); 460 Register index);
461 static Address ExternalElementAddressForIntIndex(intptr_t index_scale, 461 static Address ExternalElementAddressForIntIndex(intptr_t index_scale,
462 Register array, 462 Register array,
463 intptr_t offset); 463 intptr_t offset);
464 static Address ExternalElementAddressForRegIndex(intptr_t index_scale, 464 static Address ExternalElementAddressForRegIndex(intptr_t index_scale,
465 Register array, 465 Register array,
466 Register index); 466 Register index);
467 467
468 // Returns 'sorted' array in decreasing count order. 468 // Returns 'sorted' array in decreasing count order.
469 static void SortICDataByCount(const ICData& ic_data, 469 static void SortICDataByCount(const ICData& ic_data,
470 GrowableArray<CidTarget>* sorted); 470 GrowableArray<CidTarget>* sorted);
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 // that should be used when deoptimizing we store it in this variable. 608 // that should be used when deoptimizing we store it in this variable.
609 // In future AddDeoptStub should be moved out of the instruction template. 609 // In future AddDeoptStub should be moved out of the instruction template.
610 Environment* pending_deoptimization_env_; 610 Environment* pending_deoptimization_env_;
611 611
612 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 612 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
613 }; 613 };
614 614
615 } // namespace dart 615 } // namespace dart
616 616
617 #endif // VM_FLOW_GRAPH_COMPILER_H_ 617 #endif // VM_FLOW_GRAPH_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698