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 2799373002: Pass a second type argument vector to all type instantiation calls in the VM. (Closed)
Patch Set: Created 3 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
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 RUNTIME_VM_LOCATIONS_H_ 5 #ifndef RUNTIME_VM_LOCATIONS_H_
6 #define RUNTIME_VM_LOCATIONS_H_ 6 #define RUNTIME_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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 SmallSet<Register> untagged_cpu_registers_; 545 SmallSet<Register> untagged_cpu_registers_;
546 SmallSet<FpuRegister> fpu_registers_; 546 SmallSet<FpuRegister> fpu_registers_;
547 547
548 DISALLOW_COPY_AND_ASSIGN(RegisterSet); 548 DISALLOW_COPY_AND_ASSIGN(RegisterSet);
549 }; 549 };
550 550
551 551
552 // Specification of locations for inputs and output. 552 // Specification of locations for inputs and output.
553 class LocationSummary : public ZoneAllocated { 553 class LocationSummary : public ZoneAllocated {
554 public: 554 public:
555 enum ContainsCall { kNoCall, kCall, kCallOnSlowPath }; 555 enum ContainsCall {
556 kNoCall, // Used registers must be reserved as tmp.
557 kCall, // Registers have been saved and can be used without reservation.
558 kCallOnSlowPath // Used registers must be reserved as tmp.
559 };
556 560
557 LocationSummary(Zone* zone, 561 LocationSummary(Zone* zone,
558 intptr_t input_count, 562 intptr_t input_count,
559 intptr_t temp_count, 563 intptr_t temp_count,
560 LocationSummary::ContainsCall contains_call); 564 LocationSummary::ContainsCall contains_call);
561 565
562 intptr_t input_count() const { return num_inputs_; } 566 intptr_t input_count() const { return num_inputs_; }
563 567
564 Location in(intptr_t index) const { 568 Location in(intptr_t index) const {
565 ASSERT(index >= 0); 569 ASSERT(index >= 0);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 672
669 #if defined(DEBUG) 673 #if defined(DEBUG)
670 intptr_t writable_inputs_; 674 intptr_t writable_inputs_;
671 #endif 675 #endif
672 }; 676 };
673 677
674 678
675 } // namespace dart 679 } // namespace dart
676 680
677 #endif // RUNTIME_VM_LOCATIONS_H_ 681 #endif // RUNTIME_VM_LOCATIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698