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

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

Issue 626223002: Add unboxed Mint for X64 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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 1624 matching lines...) Expand 10 before | Expand all | Expand 10 after
1635 bool HasTemp() const { return temp_index_ >= 0; } 1635 bool HasTemp() const { return temp_index_ >= 0; }
1636 1636
1637 intptr_t ssa_temp_index() const { return ssa_temp_index_; } 1637 intptr_t ssa_temp_index() const { return ssa_temp_index_; }
1638 void set_ssa_temp_index(intptr_t index) { 1638 void set_ssa_temp_index(intptr_t index) {
1639 ASSERT(index >= 0); 1639 ASSERT(index >= 0);
1640 ssa_temp_index_ = index; 1640 ssa_temp_index_ = index;
1641 } 1641 }
1642 bool HasSSATemp() const { return ssa_temp_index_ >= 0; } 1642 bool HasSSATemp() const { return ssa_temp_index_ >= 0; }
1643 void ClearSSATempIndex() { ssa_temp_index_ = -1; } 1643 void ClearSSATempIndex() { ssa_temp_index_ = -1; }
1644 bool HasPairRepresentation() const { 1644 bool HasPairRepresentation() const {
1645 #if defined(TARGET_ARCH_X64)
1646 return (representation() == kPairOfTagged) ||
1647 (representation() == kPairOfUnboxedDouble);
1648 #else
1645 return (representation() == kPairOfTagged) || 1649 return (representation() == kPairOfTagged) ||
1646 (representation() == kPairOfUnboxedDouble) || 1650 (representation() == kPairOfUnboxedDouble) ||
1647 (representation() == kUnboxedMint); 1651 (representation() == kUnboxedMint);
1652 #endif
1648 } 1653 }
1649 1654
1650 // Compile time type of the definition, which may be requested before type 1655 // Compile time type of the definition, which may be requested before type
1651 // propagation during graph building. 1656 // propagation during graph building.
1652 CompileType* Type() { 1657 CompileType* Type() {
1653 if (type_ == NULL) { 1658 if (type_ == NULL) {
1654 type_ = ComputeInitialType(); 1659 type_ = ComputeInitialType();
1655 } 1660 }
1656 return type_; 1661 return type_;
1657 } 1662 }
(...skipping 6753 matching lines...) Expand 10 before | Expand all | Expand 10 after
8411 Isolate* isolate, bool opt) const { \ 8416 Isolate* isolate, bool opt) const { \
8412 UNIMPLEMENTED(); \ 8417 UNIMPLEMENTED(); \
8413 return NULL; \ 8418 return NULL; \
8414 } \ 8419 } \
8415 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } 8420 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); }
8416 8421
8417 8422
8418 } // namespace dart 8423 } // namespace dart
8419 8424
8420 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 8425 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698