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

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

Issue 11791051: Support immediate and memory operands for PushArgumentInstr in optimized code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: really handle constant operands Created 7 years, 11 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/intermediate_language_x64.cc ('k') | runtime/vm/locations.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) 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_LOCATIONS_H_ 5 #ifndef VM_LOCATIONS_H_
6 #define VM_LOCATIONS_H_ 6 #define VM_LOCATIONS_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/bitfield.h" 10 #include "vm/bitfield.h"
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 return kind() == kDoubleStackSlot; 255 return kind() == kDoubleStackSlot;
256 } 256 }
257 257
258 258
259 intptr_t stack_index() const { 259 intptr_t stack_index() const {
260 ASSERT(IsStackSlot() || IsDoubleStackSlot()); 260 ASSERT(IsStackSlot() || IsDoubleStackSlot());
261 // Decode stack index manually to preserve sign. 261 // Decode stack index manually to preserve sign.
262 return IndexField::decode(payload()) - kStackIndexBias; 262 return IndexField::decode(payload()) - kStackIndexBias;
263 } 263 }
264 264
265 // Return a memory operand for stack slot locations.
266 Address ToStackSlotAddress() const;
267
265 // Constants. 268 // Constants.
266 static Location RegisterOrConstant(Value* value); 269 static Location RegisterOrConstant(Value* value);
267 static Location RegisterOrSmiConstant(Value* value); 270 static Location RegisterOrSmiConstant(Value* value);
268 static Location FixedRegisterOrConstant(Value* value, Register reg); 271 static Location FixedRegisterOrConstant(Value* value, Register reg);
269 static Location FixedRegisterOrSmiConstant(Value* value, Register reg); 272 static Location FixedRegisterOrSmiConstant(Value* value, Register reg);
273 static Location AnyOrConstant(Value* value);
270 274
271 const char* Name() const; 275 const char* Name() const;
272 void PrintTo(BufferFormatter* f) const; 276 void PrintTo(BufferFormatter* f) const;
273 void Print() const; 277 void Print() const;
274 278
275 // Compare two locations. 279 // Compare two locations.
276 bool Equals(Location other) const { 280 bool Equals(Location other) const {
277 return value_ == other.value_; 281 return value_ == other.value_;
278 } 282 }
279 283
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 BitmapBuilder* stack_bitmap_; 473 BitmapBuilder* stack_bitmap_;
470 474
471 const ContainsCall contains_call_; 475 const ContainsCall contains_call_;
472 RegisterSet live_registers_; 476 RegisterSet live_registers_;
473 }; 477 };
474 478
475 479
476 } // namespace dart 480 } // namespace dart
477 481
478 #endif // VM_LOCATIONS_H_ 482 #endif // VM_LOCATIONS_H_
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/locations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698