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

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

Issue 252333002: Use GPRs for mints (Closed) Base URL: https://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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 1761 matching lines...) Expand 10 before | Expand all | Expand 10 after
1772 1772
1773 intptr_t ssa_temp_index() const { return ssa_temp_index_; } 1773 intptr_t ssa_temp_index() const { return ssa_temp_index_; }
1774 void set_ssa_temp_index(intptr_t index) { 1774 void set_ssa_temp_index(intptr_t index) {
1775 ASSERT(index >= 0); 1775 ASSERT(index >= 0);
1776 ssa_temp_index_ = index; 1776 ssa_temp_index_ = index;
1777 } 1777 }
1778 bool HasSSATemp() const { return ssa_temp_index_ >= 0; } 1778 bool HasSSATemp() const { return ssa_temp_index_ >= 0; }
1779 void ClearSSATempIndex() { ssa_temp_index_ = -1; } 1779 void ClearSSATempIndex() { ssa_temp_index_ = -1; }
1780 bool HasPairRepresentation() const { 1780 bool HasPairRepresentation() const {
1781 return (representation() == kPairOfTagged) || 1781 return (representation() == kPairOfTagged) ||
1782 (representation() == kPairOfUnboxedDouble); 1782 (representation() == kPairOfUnboxedDouble) ||
1783 (representation() == kUnboxedMint);
1783 } 1784 }
1784 1785
1785 // Compile time type of the definition, which may be requested before type 1786 // Compile time type of the definition, which may be requested before type
1786 // propagation during graph building. 1787 // propagation during graph building.
1787 CompileType* Type() { 1788 CompileType* Type() {
1788 if (type_ == NULL) { 1789 if (type_ == NULL) {
1789 type_ = ComputeInitialType(); 1790 type_ = ComputeInitialType();
1790 } 1791 }
1791 return type_; 1792 return type_;
1792 } 1793 }
(...skipping 6166 matching lines...) Expand 10 before | Expand all | Expand 10 after
7959 ForwardInstructionIterator* current_iterator_; 7960 ForwardInstructionIterator* current_iterator_;
7960 7961
7961 private: 7962 private:
7962 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 7963 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
7963 }; 7964 };
7964 7965
7965 7966
7966 } // namespace dart 7967 } // namespace dart
7967 7968
7968 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 7969 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698