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

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
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language_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) 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 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after
1645 bool HasTemp() const { return temp_index_ >= 0; } 1645 bool HasTemp() const { return temp_index_ >= 0; }
1646 1646
1647 intptr_t ssa_temp_index() const { return ssa_temp_index_; } 1647 intptr_t ssa_temp_index() const { return ssa_temp_index_; }
1648 void set_ssa_temp_index(intptr_t index) { 1648 void set_ssa_temp_index(intptr_t index) {
1649 ASSERT(index >= 0); 1649 ASSERT(index >= 0);
1650 ssa_temp_index_ = index; 1650 ssa_temp_index_ = index;
1651 } 1651 }
1652 bool HasSSATemp() const { return ssa_temp_index_ >= 0; } 1652 bool HasSSATemp() const { return ssa_temp_index_ >= 0; }
1653 void ClearSSATempIndex() { ssa_temp_index_ = -1; } 1653 void ClearSSATempIndex() { ssa_temp_index_ = -1; }
1654 bool HasPairRepresentation() const { 1654 bool HasPairRepresentation() const {
1655 #if defined(TARGET_ARCH_X64)
1656 return (representation() == kPairOfTagged) ||
1657 (representation() == kPairOfUnboxedDouble);
1658 #else
1655 return (representation() == kPairOfTagged) || 1659 return (representation() == kPairOfTagged) ||
1656 (representation() == kPairOfUnboxedDouble) || 1660 (representation() == kPairOfUnboxedDouble) ||
1657 (representation() == kUnboxedMint); 1661 (representation() == kUnboxedMint);
1662 #endif
1658 } 1663 }
1659 1664
1660 // Compile time type of the definition, which may be requested before type 1665 // Compile time type of the definition, which may be requested before type
1661 // propagation during graph building. 1666 // propagation during graph building.
1662 CompileType* Type() { 1667 CompileType* Type() {
1663 if (type_ == NULL) { 1668 if (type_ == NULL) {
1664 type_ = ComputeInitialType(); 1669 type_ = ComputeInitialType();
1665 } 1670 }
1666 return type_; 1671 return type_;
1667 } 1672 }
(...skipping 6788 matching lines...) Expand 10 before | Expand all | Expand 10 after
8456 Isolate* isolate, bool opt) const { \ 8461 Isolate* isolate, bool opt) const { \
8457 UNIMPLEMENTED(); \ 8462 UNIMPLEMENTED(); \
8458 return NULL; \ 8463 return NULL; \
8459 } \ 8464 } \
8460 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } 8465 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); }
8461 8466
8462 8467
8463 } // namespace dart 8468 } // namespace dart
8464 8469
8465 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 8470 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698