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

Unified Diff: runtime/vm/assembler_arm64.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/assembler_arm64.cc
diff --git a/runtime/vm/assembler_arm64.cc b/runtime/vm/assembler_arm64.cc
index cec46518fabd5ff6baa20395ebd3e67a2e7cc383..e7cab4041cd359c342ee6f7c067250f7f2b0f75e 100644
--- a/runtime/vm/assembler_arm64.cc
+++ b/runtime/vm/assembler_arm64.cc
@@ -24,10 +24,10 @@ DEFINE_FLAG(bool, use_far_branches, false, "Always use far branches");
Assembler::Assembler(bool use_far_branches)
: buffer_(),
prologue_offset_(-1),
+ has_single_entry_point_(true),
use_far_branches_(use_far_branches),
comments_(),
constant_pool_allowed_(false) {
- MonomorphicCheckedEntry();
}
@@ -1238,18 +1238,10 @@ void Assembler::LeaveStubFrame() {
}
-void Assembler::NoMonomorphicCheckedEntry() {
- buffer_.Reset();
- brk(0);
- brk(0);
- brk(0);
- brk(0);
- ASSERT(CodeSize() == Instructions::kCheckedEntryOffset);
-}
-
-
// R0 receiver, R5 guarded cid as Smi
void Assembler::MonomorphicCheckedEntry() {
+ ASSERT(has_single_entry_point_);
+ has_single_entry_point_ = false;
bool saved_use_far_branches = use_far_branches();
set_use_far_branches(false);
« no previous file with comments | « runtime/vm/assembler_arm64.h ('k') | runtime/vm/assembler_dbc.h » ('j') | runtime/vm/object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698