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

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

Issue 13471013: Flow graph SIMD changes (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 Location loc(kDoubleStackSlot, payload); 264 Location loc(kDoubleStackSlot, payload);
265 // Ensure that sign is preserved. 265 // Ensure that sign is preserved.
266 ASSERT(loc.stack_index() == stack_index); 266 ASSERT(loc.stack_index() == stack_index);
267 return loc; 267 return loc;
268 } 268 }
269 269
270 bool IsDoubleStackSlot() const { 270 bool IsDoubleStackSlot() const {
271 return kind() == kDoubleStackSlot; 271 return kind() == kDoubleStackSlot;
272 } 272 }
273 273
274 static Location Float32x4StackSlot(intptr_t stack_index, Representation rep) { 274 static Location Float32x4StackSlot(intptr_t stack_index) {
275 uword payload = make_stack_index_payload(stack_index, rep); 275 uword payload = make_stack_index_payload(stack_index, kUnboxedFloat32x4);
276 Location loc(kFloat32x4StackSlot, payload); 276 Location loc(kFloat32x4StackSlot, payload);
277 // Ensure that sign is preserved. 277 // Ensure that sign is preserved.
278 ASSERT(loc.stack_index() == stack_index); 278 ASSERT(loc.stack_index() == stack_index);
279 return loc; 279 return loc;
280 } 280 }
281 281
282 bool IsFloat32x4StackSlot() const { 282 bool IsFloat32x4StackSlot() const {
283 return kind() == kFloat32x4StackSlot; 283 return kind() == kFloat32x4StackSlot;
284 } 284 }
285 285
286 static Location Uint32x4StackSlot(intptr_t stack_index, Representation rep) { 286 static Location Uint32x4StackSlot(intptr_t stack_index) {
287 uword payload = make_stack_index_payload(stack_index, rep); 287 uword payload = make_stack_index_payload(stack_index, kUnboxedUint32x4);
288 Location loc(kUint32x4StackSlot, payload); 288 Location loc(kUint32x4StackSlot, payload);
289 // Ensure that sign is preserved. 289 // Ensure that sign is preserved.
290 ASSERT(loc.stack_index() == stack_index); 290 ASSERT(loc.stack_index() == stack_index);
291 return loc; 291 return loc;
292 } 292 }
293 293
294 bool IsUint32x4StackSlot() const { 294 bool IsUint32x4StackSlot() const {
295 return kind() == kUint32x4StackSlot; 295 return kind() == kUint32x4StackSlot;
296 } 296 }
297 297
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 BitmapBuilder* stack_bitmap_; 522 BitmapBuilder* stack_bitmap_;
523 523
524 const ContainsCall contains_call_; 524 const ContainsCall contains_call_;
525 RegisterSet live_registers_; 525 RegisterSet live_registers_;
526 }; 526 };
527 527
528 528
529 } // namespace dart 529 } // namespace dart
530 530
531 #endif // VM_LOCATIONS_H_ 531 #endif // VM_LOCATIONS_H_
OLDNEW
« runtime/vm/flow_graph_compiler.cc ('K') | « runtime/vm/flow_graph_compiler_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698