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

Unified Diff: runtime/vm/stub_code_x64.cc

Issue 2463083002: Remove default monomorphic check code from functions and stubs that do not need it. (Closed)
Patch Set: address comment 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/stub_code_x64.cc
diff --git a/runtime/vm/stub_code_x64.cc b/runtime/vm/stub_code_x64.cc
index 7ff72e280476d95ac64a316f855bc080feb00458..f5692b7194e3b2155be320e620a413713476a187 100644
--- a/runtime/vm/stub_code_x64.cc
+++ b/runtime/vm/stub_code_x64.cc
@@ -2041,8 +2041,6 @@ void StubCode::GenerateOptimizedIdenticalWithNumberCheckStub(
// CODE_REG: target Code
// R10: arguments descriptor
void StubCode::GenerateMegamorphicCallStub(Assembler* assembler) {
- __ NoMonomorphicCheckedEntry();
-
// Jump if receiver is a smi.
Label smi_case;
__ testq(RDI, Immediate(kSmiTagMask));
@@ -2114,10 +2112,7 @@ void StubCode::GenerateMegamorphicCallStub(Assembler* assembler) {
// CODE_REG: target Code object
// R10: arguments descriptor
void StubCode::GenerateICCallThroughFunctionStub(Assembler* assembler) {
- __ NoMonomorphicCheckedEntry();
-
Label loop, found, miss;
-
__ movq(R13, FieldAddress(RBX, ICData::ic_data_offset()));
__ movq(R10, FieldAddress(RBX, ICData::arguments_descriptor_offset()));
__ leaq(R13, FieldAddress(R13, Array::data_offset()));
@@ -2154,10 +2149,7 @@ void StubCode::GenerateICCallThroughFunctionStub(Assembler* assembler) {
void StubCode::GenerateICCallThroughCodeStub(Assembler* assembler) {
- __ NoMonomorphicCheckedEntry();
-
Label loop, found, miss;
-
__ movq(R13, FieldAddress(RBX, ICData::ic_data_offset()));
__ movq(R10, FieldAddress(RBX, ICData::arguments_descriptor_offset()));
__ leaq(R13, FieldAddress(R13, Array::data_offset()));
@@ -2196,8 +2188,6 @@ void StubCode::GenerateICCallThroughCodeStub(Assembler* assembler) {
// RDI: receiver
// RBX: UnlinkedCall
void StubCode::GenerateUnlinkedCallStub(Assembler* assembler) {
- __ NoMonomorphicCheckedEntry();
-
__ EnterStubFrame();
__ pushq(RDI); // Preserve receiver.
@@ -2224,8 +2214,6 @@ void StubCode::GenerateUnlinkedCallStub(Assembler* assembler) {
// Passed to target::
// CODE_REG: target Code object
void StubCode::GenerateSingleTargetCallStub(Assembler* assembler) {
- __ NoMonomorphicCheckedEntry();
-
Label miss;
__ LoadClassIdMayBeSmi(RAX, RDI);
__ movl(R9, FieldAddress(RBX, SingleTargetCache::lower_limit_offset()));
« runtime/vm/object.h ('K') | « runtime/vm/stub_code_mips.cc ('k') | runtime/vm/thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698