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

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 1763 matching lines...) Expand 10 before | Expand all | Expand 10 after
1774 intptr_t ssa_temp_index() const { return ssa_temp_index_; } 1774 intptr_t ssa_temp_index() const { return ssa_temp_index_; }
1775 void set_ssa_temp_index(intptr_t index) { 1775 void set_ssa_temp_index(intptr_t index) {
1776 ASSERT(index >= 0); 1776 ASSERT(index >= 0);
1777 ASSERT(is_used()); 1777 ASSERT(is_used());
1778 ssa_temp_index_ = index; 1778 ssa_temp_index_ = index;
1779 } 1779 }
1780 bool HasSSATemp() const { return ssa_temp_index_ >= 0; } 1780 bool HasSSATemp() const { return ssa_temp_index_ >= 0; }
1781 void ClearSSATempIndex() { ssa_temp_index_ = -1; } 1781 void ClearSSATempIndex() { ssa_temp_index_ = -1; }
1782 bool HasPairRepresentation() const { 1782 bool HasPairRepresentation() const {
1783 return (representation() == kPairOfTagged) || 1783 return (representation() == kPairOfTagged) ||
1784 (representation() == kPairOfUnboxedDouble); 1784 (representation() == kPairOfUnboxedDouble) ||
1785 (representation() == kUnboxedMint);
1785 } 1786 }
1786 bool is_used() const { return (use_kind_ != kEffect); } 1787 bool is_used() const { return (use_kind_ != kEffect); }
1787 void set_use_kind(UseKind kind) { use_kind_ = kind; } 1788 void set_use_kind(UseKind kind) { use_kind_ = kind; }
1788 1789
1789 // Compile time type of the definition, which may be requested before type 1790 // Compile time type of the definition, which may be requested before type
1790 // propagation during graph building. 1791 // propagation during graph building.
1791 CompileType* Type() { 1792 CompileType* Type() {
1792 if (type_ == NULL) { 1793 if (type_ == NULL) {
1793 type_ = ComputeInitialType(); 1794 type_ = ComputeInitialType();
1794 } 1795 }
(...skipping 6170 matching lines...) Expand 10 before | Expand all | Expand 10 after
7965 ForwardInstructionIterator* current_iterator_; 7966 ForwardInstructionIterator* current_iterator_;
7966 7967
7967 private: 7968 private:
7968 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 7969 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
7969 }; 7970 };
7970 7971
7971 7972
7972 } // namespace dart 7973 } // namespace dart
7973 7974
7974 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 7975 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698