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

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

Issue 10559035: Implement a simple register allocator that tries to keep instruction results in registers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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) 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 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 1246
1247 DECLARE_COMPUTATION(CreateArray) 1247 DECLARE_COMPUTATION(CreateArray)
1248 1248
1249 intptr_t token_index() const { return token_index_; } 1249 intptr_t token_index() const { return token_index_; }
1250 intptr_t try_index() const { return try_index_; } 1250 intptr_t try_index() const { return try_index_; }
1251 intptr_t ElementCount() const { return elements_->length(); } 1251 intptr_t ElementCount() const { return elements_->length(); }
1252 Value* ElementAt(intptr_t i) const { return (*elements_)[i]; } 1252 Value* ElementAt(intptr_t i) const { return (*elements_)[i]; }
1253 Value* element_type() const { return inputs_[0]; } 1253 Value* element_type() const { return inputs_[0]; }
1254 1254
1255 virtual intptr_t InputCount() const; 1255 virtual intptr_t InputCount() const;
1256 virtual Value* InputAt(intptr_t i) const { return ElementAt(i); } 1256 virtual Value* InputAt(intptr_t i) const;
1257 1257
1258 virtual void PrintOperandsTo(BufferFormatter* f) const; 1258 virtual void PrintOperandsTo(BufferFormatter* f) const;
1259 1259
1260 private: 1260 private:
1261 const intptr_t token_index_; 1261 const intptr_t token_index_;
1262 const intptr_t try_index_; 1262 const intptr_t try_index_;
1263 ZoneGrowableArray<Value*>* const elements_; 1263 ZoneGrowableArray<Value*>* const elements_;
1264 1264
1265 DISALLOW_COPY_AND_ASSIGN(CreateArrayComp); 1265 DISALLOW_COPY_AND_ASSIGN(CreateArrayComp);
1266 }; 1266 };
(...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after
2420 const GrowableArray<BlockEntryInstr*>& block_order_; 2420 const GrowableArray<BlockEntryInstr*>& block_order_;
2421 2421
2422 private: 2422 private:
2423 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 2423 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
2424 }; 2424 };
2425 2425
2426 2426
2427 } // namespace dart 2427 } // namespace dart
2428 2428
2429 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 2429 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698