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); |