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

Side by Side Diff: runtime/vm/stub_code_mips.cc

Issue 51653006: Track live instance and allocation counts for classes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 #include "vm/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1354 __ addiu(T4, T4, Immediate(kWordSize)); 1354 __ addiu(T4, T4, Immediate(kWordSize));
1355 __ bne(T4, T3, &loop); 1355 __ bne(T4, T3, &loop);
1356 __ delay_slot()->sw(T7, Address(T4, -kWordSize)); 1356 __ delay_slot()->sw(T7, Address(T4, -kWordSize));
1357 __ Bind(&loop_exit); 1357 __ Bind(&loop_exit);
1358 } 1358 }
1359 if (is_cls_parameterized) { 1359 if (is_cls_parameterized) {
1360 // R1: new object type arguments. 1360 // R1: new object type arguments.
1361 // Set the type arguments in the new object. 1361 // Set the type arguments in the new object.
1362 __ sw(T1, Address(T2, cls.type_arguments_field_offset())); 1362 __ sw(T1, Address(T2, cls.type_arguments_field_offset()));
1363 } 1363 }
1364 __ BumpAllocationCount(Heap::kNew, cls.id(), T5);
1364 // Done allocating and initializing the instance. 1365 // Done allocating and initializing the instance.
1365 // T2: new object still missing its heap tag. 1366 // T2: new object still missing its heap tag.
1366 __ Ret(); 1367 __ Ret();
1367 __ delay_slot()->addiu(V0, T2, Immediate(kHeapObjectTag)); 1368 __ delay_slot()->addiu(V0, T2, Immediate(kHeapObjectTag));
1368 1369
1369 __ Bind(&slow_case); 1370 __ Bind(&slow_case);
1370 } 1371 }
1371 if (is_cls_parameterized) { 1372 if (is_cls_parameterized) {
1372 __ lw(T1, Address(SP, 1 * kWordSize)); 1373 __ lw(T1, Address(SP, 1 * kWordSize));
1373 __ lw(T0, Address(SP, 0 * kWordSize)); 1374 __ lw(T0, Address(SP, 0 * kWordSize));
(...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after
2411 const Register right = T0; 2412 const Register right = T0;
2412 __ lw(left, Address(SP, 1 * kWordSize)); 2413 __ lw(left, Address(SP, 1 * kWordSize));
2413 __ lw(right, Address(SP, 0 * kWordSize)); 2414 __ lw(right, Address(SP, 0 * kWordSize));
2414 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp1, temp2); 2415 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp1, temp2);
2415 __ Ret(); 2416 __ Ret();
2416 } 2417 }
2417 2418
2418 } // namespace dart 2419 } // namespace dart
2419 2420
2420 #endif // defined TARGET_ARCH_MIPS 2421 #endif // defined TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698