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

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

Issue 10806089: Add HasSSATemp and an assert to ssa_temp_idnex setter. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/il_printer.cc ('k') | no next file » | 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) 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 2095 matching lines...) Expand 10 before | Expand all | Expand 10 after
2106 public: 2106 public:
2107 Definition() : temp_index_(-1), ssa_temp_index_(-1) { } 2107 Definition() : temp_index_(-1), ssa_temp_index_(-1) { }
2108 2108
2109 virtual bool IsDefinition() const { return true; } 2109 virtual bool IsDefinition() const { return true; }
2110 virtual Definition* AsDefinition() { return this; } 2110 virtual Definition* AsDefinition() { return this; }
2111 2111
2112 intptr_t temp_index() const { return temp_index_; } 2112 intptr_t temp_index() const { return temp_index_; }
2113 void set_temp_index(intptr_t index) { temp_index_ = index; } 2113 void set_temp_index(intptr_t index) { temp_index_ = index; }
2114 2114
2115 intptr_t ssa_temp_index() const { return ssa_temp_index_; } 2115 intptr_t ssa_temp_index() const { return ssa_temp_index_; }
2116 void set_ssa_temp_index(intptr_t index) { ssa_temp_index_ = index; } 2116 void set_ssa_temp_index(intptr_t index) {
2117 ASSERT(index >= 0);
2118 ssa_temp_index_ = index;
2119 }
2120 bool HasSSATemp() const { return ssa_temp_index_ >= 0; }
2117 2121
2118 private: 2122 private:
2119 intptr_t temp_index_; 2123 intptr_t temp_index_;
2120 intptr_t ssa_temp_index_; 2124 intptr_t ssa_temp_index_;
2121 2125
2122 DISALLOW_COPY_AND_ASSIGN(Definition); 2126 DISALLOW_COPY_AND_ASSIGN(Definition);
2123 }; 2127 };
2124 2128
2125 2129
2126 Definition* UseVal::definition() const { 2130 Definition* UseVal::definition() const {
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
2533 const GrowableArray<BlockEntryInstr*>& block_order_; 2537 const GrowableArray<BlockEntryInstr*>& block_order_;
2534 2538
2535 private: 2539 private:
2536 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 2540 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
2537 }; 2541 };
2538 2542
2539 2543
2540 } // namespace dart 2544 } // namespace dart
2541 2545
2542 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 2546 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/il_printer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698