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

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

Issue 2463083002: Remove default monomorphic check code from functions and stubs that do not need it. (Closed)
Patch Set: Created 4 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
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_ARM) 6 #if defined(TARGET_ARCH_ARM)
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 3221 matching lines...) Expand 10 before | Expand all | Expand 10 after
3232 void Assembler::EnterStubFrame() { 3232 void Assembler::EnterStubFrame() {
3233 EnterDartFrame(0); 3233 EnterDartFrame(0);
3234 } 3234 }
3235 3235
3236 3236
3237 void Assembler::LeaveStubFrame() { 3237 void Assembler::LeaveStubFrame() {
3238 LeaveDartFrame(); 3238 LeaveDartFrame();
3239 } 3239 }
3240 3240
3241 3241
3242 void Assembler::NoMonomorphicCheckedEntry() {
3243 buffer_.Reset();
3244 bkpt(0);
3245 bkpt(0);
3246 ASSERT(CodeSize() == Instructions::kCheckedEntryOffset);
3247 }
3248
3249
3250 // R0 receiver, R9 guarded cid as Smi 3242 // R0 receiver, R9 guarded cid as Smi
3251 void Assembler::MonomorphicCheckedEntry() { 3243 void Assembler::MonomorphicCheckedEntry() {
3244 ASSERT(has_single_entry_point_);
3245 has_single_entry_point_ = false;
3252 #if defined(TESTING) || defined(DEBUG) 3246 #if defined(TESTING) || defined(DEBUG)
3253 bool saved_use_far_branches = use_far_branches(); 3247 bool saved_use_far_branches = use_far_branches();
3254 set_use_far_branches(false); 3248 set_use_far_branches(false);
3255 #endif 3249 #endif
3256 3250
3257 Label miss; 3251 Label miss;
3258 Bind(&miss); 3252 Bind(&miss);
3259 ldr(IP, Address(THR, Thread::monomorphic_miss_entry_offset())); 3253 ldr(IP, Address(THR, Thread::monomorphic_miss_entry_offset()));
3260 bx(IP); 3254 bx(IP);
3261 3255
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
3546 3540
3547 3541
3548 const char* Assembler::FpuRegisterName(FpuRegister reg) { 3542 const char* Assembler::FpuRegisterName(FpuRegister reg) {
3549 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); 3543 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters));
3550 return fpu_reg_names[reg]; 3544 return fpu_reg_names[reg];
3551 } 3545 }
3552 3546
3553 } // namespace dart 3547 } // namespace dart
3554 3548
3555 #endif // defined TARGET_ARCH_ARM 3549 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm.h ('k') | runtime/vm/assembler_arm64.h » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698