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

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

Issue 11819031: Add canonicalize optimization for branches. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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_INTERMEDIATE_LANGUAGE_H_ 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_
6 #define VM_INTERMEDIATE_LANGUAGE_H_ 6 #define VM_INTERMEDIATE_LANGUAGE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after
1520 virtual LocationSummary* locs(); 1520 virtual LocationSummary* locs();
1521 virtual intptr_t DeoptimizationTarget() const; 1521 virtual intptr_t DeoptimizationTarget() const;
1522 virtual Representation RequiredInputRepresentation(intptr_t i) const; 1522 virtual Representation RequiredInputRepresentation(intptr_t i) const;
1523 1523
1524 // Replace the comparison with another, leaving the branch intact. 1524 // Replace the comparison with another, leaving the branch intact.
1525 void ReplaceWith(ComparisonInstr* other, 1525 void ReplaceWith(ComparisonInstr* other,
1526 ForwardInstructionIterator* ignored) { 1526 ForwardInstructionIterator* ignored) {
1527 comparison_ = other; 1527 comparison_ = other;
1528 } 1528 }
1529 1529
1530 virtual Instruction* Canonicalize(FlowGraphOptimizer* optimizer);
1531
1530 virtual void PrintTo(BufferFormatter* f) const; 1532 virtual void PrintTo(BufferFormatter* f) const;
1531 1533
1532 private: 1534 private:
1533 ComparisonInstr* comparison_; 1535 ComparisonInstr* comparison_;
1534 const bool is_checked_; 1536 const bool is_checked_;
1535 1537
1536 DISALLOW_COPY_AND_ASSIGN(BranchInstr); 1538 DISALLOW_COPY_AND_ASSIGN(BranchInstr);
1537 }; 1539 };
1538 1540
1539 1541
(...skipping 2792 matching lines...) Expand 10 before | Expand all | Expand 10 after
4332 ForwardInstructionIterator* current_iterator_; 4334 ForwardInstructionIterator* current_iterator_;
4333 4335
4334 private: 4336 private:
4335 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 4337 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
4336 }; 4338 };
4337 4339
4338 4340
4339 } // namespace dart 4341 } // namespace dart
4340 4342
4341 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 4343 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698