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

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

Issue 1189573004: Use object pool for runtime calls. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 | « runtime/vm/assembler_arm64.h ('k') | runtime/vm/assembler_mips.h » ('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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/cpu.h" 9 #include "vm/cpu.h"
10 #include "vm/longjump.h" 10 #include "vm/longjump.h"
(...skipping 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 PopPair(LR, FP); 1230 PopPair(LR, FP);
1231 } 1231 }
1232 1232
1233 1233
1234 void Assembler::CallRuntime(const RuntimeEntry& entry, 1234 void Assembler::CallRuntime(const RuntimeEntry& entry,
1235 intptr_t argument_count) { 1235 intptr_t argument_count) {
1236 entry.Call(this, argument_count); 1236 entry.Call(this, argument_count);
1237 } 1237 }
1238 1238
1239 1239
1240 void Assembler::EnterStubFrame(bool load_pp) { 1240 void Assembler::EnterStubFrame() {
1241 EnterFrame(0); 1241 EnterFrame(0);
1242 // Save caller's pool pointer. Push 0 in the saved PC area for stub frames. 1242 // Save caller's pool pointer. Push 0 in the saved PC area for stub frames.
1243 TagAndPushPPAndPcMarker(ZR); 1243 TagAndPushPPAndPcMarker(ZR);
1244 if (load_pp) { 1244 LoadPoolPointer(PP);
1245 LoadPoolPointer(PP);
1246 }
1247 } 1245 }
1248 1246
1249 1247
1250 void Assembler::LeaveStubFrame() { 1248 void Assembler::LeaveStubFrame() {
1251 // Restore and untag PP. 1249 // Restore and untag PP.
1252 LoadFromOffset(PP, FP, kSavedCallerPpSlotFromFp * kWordSize, kNoPP); 1250 LoadFromOffset(PP, FP, kSavedCallerPpSlotFromFp * kWordSize, kNoPP);
1253 sub(PP, PP, Operand(kHeapObjectTag)); 1251 sub(PP, PP, Operand(kHeapObjectTag));
1254 LeaveFrame(); 1252 LeaveFrame();
1255 } 1253 }
1256 1254
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1461 add(base, array, Operand(index, LSL, shift)); 1459 add(base, array, Operand(index, LSL, shift));
1462 } 1460 }
1463 const OperandSize size = Address::OperandSizeFor(cid); 1461 const OperandSize size = Address::OperandSizeFor(cid);
1464 ASSERT(Address::CanHoldOffset(offset, Address::Offset, size)); 1462 ASSERT(Address::CanHoldOffset(offset, Address::Offset, size));
1465 return Address(base, offset, Address::Offset, size); 1463 return Address(base, offset, Address::Offset, size);
1466 } 1464 }
1467 1465
1468 } // namespace dart 1466 } // namespace dart
1469 1467
1470 #endif // defined TARGET_ARCH_ARM64 1468 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm64.h ('k') | runtime/vm/assembler_mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698