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

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

Issue 294223003: Last cross-platform cleanup in preparation of improved ARM code for indexed (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
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 Address ElementAddressForIntIndex(intptr_t cid, 453 Address ElementAddressForIntIndex(bool is_load,
454 bool is_external,
455 intptr_t cid,
454 intptr_t index_scale, 456 intptr_t index_scale,
455 Register array, 457 Register array,
456 intptr_t offset); 458 intptr_t offset);
457 Address ElementAddressForRegIndex(intptr_t cid, 459 Address ElementAddressForRegIndex(bool is_load,
460 bool is_external,
461 intptr_t cid,
458 intptr_t index_scale, 462 intptr_t index_scale,
459 Register array, 463 Register array,
460 Register index); 464 Register index);
461 Address ExternalElementAddressForIntIndex(intptr_t index_scale,
462 Register array,
463 intptr_t offset);
464 Address ExternalElementAddressForRegIndex(intptr_t index_scale,
465 Register array,
466 Register index);
467 465
468 // Returns 'sorted' array in decreasing count order. 466 // Returns 'sorted' array in decreasing count order.
469 static void SortICDataByCount(const ICData& ic_data, 467 static void SortICDataByCount(const ICData& ic_data,
470 GrowableArray<CidTarget>* sorted); 468 GrowableArray<CidTarget>* sorted);
471 469
472 private: 470 private:
473 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_. 471 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_.
474 472
475 void EmitFrameEntry(); 473 void EmitFrameEntry();
476 474
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 // that should be used when deoptimizing we store it in this variable. 606 // that should be used when deoptimizing we store it in this variable.
609 // In future AddDeoptStub should be moved out of the instruction template. 607 // In future AddDeoptStub should be moved out of the instruction template.
610 Environment* pending_deoptimization_env_; 608 Environment* pending_deoptimization_env_;
611 609
612 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 610 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
613 }; 611 };
614 612
615 } // namespace dart 613 } // namespace dart
616 614
617 #endif // VM_FLOW_GRAPH_COMPILER_H_ 615 #endif // VM_FLOW_GRAPH_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_arm.cc » ('j') | runtime/vm/flow_graph_compiler_ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698