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

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

Issue 1352733002: Remove some more embedded pointers. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | runtime/vm/intermediate_language_arm64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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" // 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
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
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
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intermediate_language_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698