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

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

Issue 578443003: Support old-space allocation in generated code (bump block only for now). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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_ASSEMBLER_MIPS_H_ 5 #ifndef VM_ASSEMBLER_MIPS_H_
6 #define VM_ASSEMBLER_MIPS_H_ 6 #define VM_ASSEMBLER_MIPS_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_mips.h directly; use assembler.h instead. 9 #error Do not include assembler_mips.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // to set up the frame and save a PC which can be used to figure out the 194 // to set up the frame and save a PC which can be used to figure out the
195 // RawInstruction object corresponding to the code running in the frame. 195 // RawInstruction object corresponding to the code running in the frame.
196 // See EnterDartFrame. There are 6 instructions before we know the PC. 196 // See EnterDartFrame. There are 6 instructions before we know the PC.
197 static const intptr_t kEntryPointToPcMarkerOffset = 6 * Instr::kInstrSize; 197 static const intptr_t kEntryPointToPcMarkerOffset = 6 * Instr::kInstrSize;
198 static intptr_t EntryPointToPcMarkerOffset() { 198 static intptr_t EntryPointToPcMarkerOffset() {
199 return kEntryPointToPcMarkerOffset; 199 return kEntryPointToPcMarkerOffset;
200 } 200 }
201 201
202 void UpdateAllocationStats(intptr_t cid, 202 void UpdateAllocationStats(intptr_t cid,
203 Register temp_reg, 203 Register temp_reg,
204 Heap::Space space = Heap::kNew); 204 Heap::Space space);
205 205
206 void UpdateAllocationStatsWithSize(intptr_t cid, 206 void UpdateAllocationStatsWithSize(intptr_t cid,
207 Register size_reg, 207 Register size_reg,
208 Register temp_reg, 208 Register temp_reg,
209 Heap::Space space = Heap::kNew); 209 Heap::Space space);
210 210
211 211
212 // Inlined allocation of an instance of class 'cls', code has no runtime 212 // Inlined allocation of an instance of class 'cls', code has no runtime
213 // calls. Jump to 'failure' if the instance cannot be allocated here. 213 // calls. Jump to 'failure' if the instance cannot be allocated here.
214 // Allocated instance is returned in 'instance_reg'. 214 // Allocated instance is returned in 'instance_reg'.
215 // Only the tags field of the object is initialized. 215 // Only the tags field of the object is initialized.
216 void TryAllocate(const Class& cls, 216 void TryAllocate(const Class& cls,
217 Label* failure, 217 Label* failure,
218 Register instance_reg, 218 Register instance_reg,
219 Register temp_reg); 219 Register temp_reg);
(...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1395 Register value, 1395 Register value,
1396 Label* no_update); 1396 Label* no_update);
1397 1397
1398 DISALLOW_ALLOCATION(); 1398 DISALLOW_ALLOCATION();
1399 DISALLOW_COPY_AND_ASSIGN(Assembler); 1399 DISALLOW_COPY_AND_ASSIGN(Assembler);
1400 }; 1400 };
1401 1401
1402 } // namespace dart 1402 } // namespace dart
1403 1403
1404 #endif // VM_ASSEMBLER_MIPS_H_ 1404 #endif // VM_ASSEMBLER_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698