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

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

Issue 346823003: VM: Optimized context allocation on all platforms. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 207
208 // Inlined allocation of an instance of class 'cls', code has no runtime 208 // Inlined allocation of an instance of class 'cls', code has no runtime
209 // calls. Jump to 'failure' if the instance cannot be allocated here. 209 // calls. Jump to 'failure' if the instance cannot be allocated here.
210 // Allocated instance is returned in 'instance_reg'. 210 // Allocated instance is returned in 'instance_reg'.
211 // Only the tags field of the object is initialized. 211 // Only the tags field of the object is initialized.
212 void TryAllocate(const Class& cls, 212 void TryAllocate(const Class& cls,
213 Label* failure, 213 Label* failure,
214 Register instance_reg, 214 Register instance_reg,
215 Register temp_reg); 215 Register temp_reg);
216 216
217 void TryAllocateArray(intptr_t cid,
218 intptr_t instance_size,
219 Label* failure,
220 Register instance,
221 Register end_address,
222 Register temp1,
223 Register temp2);
224
217 // Debugging and bringup support. 225 // Debugging and bringup support.
218 void Stop(const char* message); 226 void Stop(const char* message);
219 227
220 // TODO(zra): TraceSimMsg enables printing of helpful messages when 228 // TODO(zra): TraceSimMsg enables printing of helpful messages when
221 // --trace_sim is given. Eventually these calls will be changed to Comment. 229 // --trace_sim is given. Eventually these calls will be changed to Comment.
222 void TraceSimMsg(const char* message); 230 void TraceSimMsg(const char* message);
223 void Unimplemented(const char* message); 231 void Unimplemented(const char* message);
224 void Untested(const char* message); 232 void Untested(const char* message);
225 void Unreachable(const char* message); 233 void Unreachable(const char* message);
226 234
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1368 Register value, 1376 Register value,
1369 Label* no_update); 1377 Label* no_update);
1370 1378
1371 DISALLOW_ALLOCATION(); 1379 DISALLOW_ALLOCATION();
1372 DISALLOW_COPY_AND_ASSIGN(Assembler); 1380 DISALLOW_COPY_AND_ASSIGN(Assembler);
1373 }; 1381 };
1374 1382
1375 } // namespace dart 1383 } // namespace dart
1376 1384
1377 #endif // VM_ASSEMBLER_MIPS_H_ 1385 #endif // VM_ASSEMBLER_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698