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

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

Issue 306483005: - Use isolate where it is appropriate. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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) 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 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 bool can_call() { 592 bool can_call() {
593 return contains_call_ != kNoCall; 593 return contains_call_ != kNoCall;
594 } 594 }
595 595
596 bool HasCallOnSlowPath() { 596 bool HasCallOnSlowPath() {
597 return can_call() && !always_calls(); 597 return can_call() && !always_calls();
598 } 598 }
599 599
600 void PrintTo(BufferFormatter* f) const; 600 void PrintTo(BufferFormatter* f) const;
601 601
602 static LocationSummary* Make(intptr_t input_count, 602 static LocationSummary* Make(Isolate* isolate,
603 intptr_t input_count,
603 Location out, 604 Location out,
604 ContainsCall contains_call); 605 ContainsCall contains_call);
605 606
606 RegisterSet* live_registers() { 607 RegisterSet* live_registers() {
607 return &live_registers_; 608 return &live_registers_;
608 } 609 }
609 610
610 private: 611 private:
611 GrowableArray<Location> input_locations_; 612 GrowableArray<Location> input_locations_;
612 GrowableArray<Location> temp_locations_; 613 GrowableArray<Location> temp_locations_;
613 GrowableArray<Location> output_locations_; 614 GrowableArray<Location> output_locations_;
614 615
615 BitmapBuilder* stack_bitmap_; 616 BitmapBuilder* stack_bitmap_;
616 617
617 const ContainsCall contains_call_; 618 const ContainsCall contains_call_;
618 RegisterSet live_registers_; 619 RegisterSet live_registers_;
619 }; 620 };
620 621
621 622
622 } // namespace dart 623 } // namespace dart
623 624
624 #endif // VM_LOCATIONS_H_ 625 #endif // VM_LOCATIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698