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

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

Issue 15692005: Fix a bug in optimized ARM code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « runtime/vm/deopt_instructions.cc ('k') | 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 435
436 intptr_t CurrentTryIndex() const { 436 intptr_t CurrentTryIndex() const {
437 if (current_block_ == NULL) { 437 if (current_block_ == NULL) {
438 return CatchClauseNode::kInvalidTryIndex; 438 return CatchClauseNode::kInvalidTryIndex;
439 } 439 }
440 return current_block_->try_index(); 440 return current_block_->try_index();
441 } 441 }
442 442
443 bool may_reoptimize() const { return may_reoptimize_; } 443 bool may_reoptimize() const { return may_reoptimize_; }
444 444
445 static Condition FlipCondition(Condition condition);
446
447 static bool EvaluateCondition(Condition condition, intptr_t l, intptr_t r);
448
449 // Array/list element address computations. 445 // Array/list element address computations.
450 static intptr_t DataOffsetFor(intptr_t cid); 446 static intptr_t DataOffsetFor(intptr_t cid);
451 static intptr_t ElementSizeFor(intptr_t cid); 447 static intptr_t ElementSizeFor(intptr_t cid);
452 static FieldAddress ElementAddressForIntIndex(intptr_t cid, 448 static FieldAddress ElementAddressForIntIndex(intptr_t cid,
453 intptr_t index_scale, 449 intptr_t index_scale,
454 Register array, 450 Register array,
455 intptr_t offset); 451 intptr_t offset);
456 static FieldAddress ElementAddressForRegIndex(intptr_t cid, 452 static FieldAddress ElementAddressForRegIndex(intptr_t cid,
457 intptr_t index_scale, 453 intptr_t index_scale,
458 Register array, 454 Register array,
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 // that should be used when deoptimizing we store it in this variable. 590 // that should be used when deoptimizing we store it in this variable.
595 // In future AddDeoptStub should be moved out of the instruction template. 591 // In future AddDeoptStub should be moved out of the instruction template.
596 Environment* pending_deoptimization_env_; 592 Environment* pending_deoptimization_env_;
597 593
598 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 594 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
599 }; 595 };
600 596
601 } // namespace dart 597 } // namespace dart
602 598
603 #endif // VM_FLOW_GRAPH_COMPILER_H_ 599 #endif // VM_FLOW_GRAPH_COMPILER_H_
OLDNEW
« no previous file with comments | « runtime/vm/deopt_instructions.cc ('k') | runtime/vm/flow_graph_compiler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698