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

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

Issue 19464002: Replaces Location::ToStackSlotAddress() with Location::ToStackSlotOffset() (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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_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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 277
278 intptr_t stack_index() const { 278 intptr_t stack_index() const {
279 ASSERT(IsStackSlot() || IsDoubleStackSlot() || IsQuadStackSlot()); 279 ASSERT(IsStackSlot() || IsDoubleStackSlot() || IsQuadStackSlot());
280 // Decode stack index manually to preserve sign. 280 // Decode stack index manually to preserve sign.
281 return payload() - kStackIndexBias; 281 return payload() - kStackIndexBias;
282 } 282 }
283 283
284 // Return a memory operand for stack slot locations. 284 // Return a memory operand for stack slot locations.
285 Address ToStackSlotAddress() const; 285 Address ToStackSlotAddress() const;
286 286
287 // Returns the offset from the frame pointer for stack slot locations.
288 intptr_t ToStackSlotOffset() const;
289
287 // Constants. 290 // Constants.
288 static Location RegisterOrConstant(Value* value); 291 static Location RegisterOrConstant(Value* value);
289 static Location RegisterOrSmiConstant(Value* value); 292 static Location RegisterOrSmiConstant(Value* value);
290 static Location FixedRegisterOrConstant(Value* value, Register reg); 293 static Location FixedRegisterOrConstant(Value* value, Register reg);
291 static Location FixedRegisterOrSmiConstant(Value* value, Register reg); 294 static Location FixedRegisterOrSmiConstant(Value* value, Register reg);
292 static Location AnyOrConstant(Value* value); 295 static Location AnyOrConstant(Value* value);
293 296
294 const char* Name() const; 297 const char* Name() const;
295 void PrintTo(BufferFormatter* f) const; 298 void PrintTo(BufferFormatter* f) const;
296 void Print() const; 299 void Print() const;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 BitmapBuilder* stack_bitmap_; 482 BitmapBuilder* stack_bitmap_;
480 483
481 const ContainsCall contains_call_; 484 const ContainsCall contains_call_;
482 RegisterSet live_registers_; 485 RegisterSet live_registers_;
483 }; 486 };
484 487
485 488
486 } // namespace dart 489 } // namespace dart
487 490
488 #endif // VM_LOCATIONS_H_ 491 #endif // VM_LOCATIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698