| OLD | NEW |
| 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" // NOLINT | 5 #include "vm/globals.h" // NOLINT |
| 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/longjump.h" | 9 #include "vm/longjump.h" |
| 10 #include "vm/runtime_entry.h" | 10 #include "vm/runtime_entry.h" |
| (...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1031 intptr_t instance_size, | 1031 intptr_t instance_size, |
| 1032 Label* failure, | 1032 Label* failure, |
| 1033 Register instance, | 1033 Register instance, |
| 1034 Register end_address, | 1034 Register end_address, |
| 1035 Register temp1, | 1035 Register temp1, |
| 1036 Register temp2) { | 1036 Register temp2) { |
| 1037 if (FLAG_inline_alloc) { | 1037 if (FLAG_inline_alloc) { |
| 1038 // If this allocation is traced, program will jump to failure path | 1038 // If this allocation is traced, program will jump to failure path |
| 1039 // (i.e. the allocation stub) which will allocate the object and trace the | 1039 // (i.e. the allocation stub) which will allocate the object and trace the |
| 1040 // allocation call site. | 1040 // allocation call site. |
| 1041 MaybeTraceAllocation(cid, temp1, failure); | 1041 MaybeTraceAllocation(cid, temp1, failure, /* inline_isolate = */ false); |
| 1042 Isolate* isolate = Isolate::Current(); | 1042 Isolate* isolate = Isolate::Current(); |
| 1043 Heap* heap = isolate->heap(); | 1043 Heap* heap = isolate->heap(); |
| 1044 Heap::Space space = heap->SpaceForAllocation(cid); | 1044 Heap::Space space = heap->SpaceForAllocation(cid); |
| 1045 lw(temp1, Address(THR, Thread::heap_offset())); | 1045 lw(temp1, Address(THR, Thread::heap_offset())); |
| 1046 // Potential new object start. | 1046 // Potential new object start. |
| 1047 lw(instance, Address(temp1, heap->TopOffset(space))); | 1047 lw(instance, Address(temp1, heap->TopOffset(space))); |
| 1048 // Potential next object start. | 1048 // Potential next object start. |
| 1049 AddImmediate(end_address, instance, instance_size); | 1049 AddImmediate(end_address, instance, instance_size); |
| 1050 // Branch on unsigned overflow. | 1050 // Branch on unsigned overflow. |
| 1051 BranchUnsignedLess(end_address, instance, failure); | 1051 BranchUnsignedLess(end_address, instance, failure); |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1345 Label stop; | 1345 Label stop; |
| 1346 b(&stop); | 1346 b(&stop); |
| 1347 Emit(reinterpret_cast<int32_t>(message)); | 1347 Emit(reinterpret_cast<int32_t>(message)); |
| 1348 Bind(&stop); | 1348 Bind(&stop); |
| 1349 break_(Instr::kStopMessageCode); | 1349 break_(Instr::kStopMessageCode); |
| 1350 } | 1350 } |
| 1351 | 1351 |
| 1352 } // namespace dart | 1352 } // namespace dart |
| 1353 | 1353 |
| 1354 #endif // defined TARGET_ARCH_MIPS | 1354 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |