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

Unified Diff: runtime/vm/assembler_mips.h

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_mips.h
diff --git a/runtime/vm/assembler_mips.h b/runtime/vm/assembler_mips.h
index 569eb9fb4cde6f8d625dd9e8d7533e618f75ea68..4abaa23c8724373e78ba9d63e98f90c6c7634f8c 100644
--- a/runtime/vm/assembler_mips.h
+++ b/runtime/vm/assembler_mips.h
@@ -239,12 +239,12 @@ class Assembler : public ValueObject {
explicit Assembler(bool use_far_branches = false)
: buffer_(),
prologue_offset_(-1),
+ has_single_entry_point_(true),
use_far_branches_(use_far_branches),
delay_slot_available_(false),
in_delay_slot_(false),
comments_(),
constant_pool_allowed_(true) {
- MonomorphicCheckedEntry();
}
~Assembler() { }
@@ -256,6 +256,7 @@ class Assembler : public ValueObject {
// Misc. functionality
intptr_t CodeSize() const { return buffer_.Size(); }
intptr_t prologue_offset() const { return prologue_offset_; }
+ bool has_single_entry_point() const { return has_single_entry_point_; }
// Count the fixups that produce a pointer offset, without processing
// the fixups.
@@ -296,7 +297,6 @@ class Assembler : public ValueObject {
// the branch delay slot.
void LeaveStubFrameAndReturn(Register ra = RA);
- void NoMonomorphicCheckedEntry();
void MonomorphicCheckedEntry();
void UpdateAllocationStats(intptr_t cid,
@@ -1646,7 +1646,7 @@ class Assembler : public ValueObject {
ObjectPoolWrapper object_pool_wrapper_;
intptr_t prologue_offset_;
-
+ bool has_single_entry_point_;
bool use_far_branches_;
bool delay_slot_available_;
bool in_delay_slot_;
« no previous file with comments | « runtime/vm/assembler_ia32.h ('k') | runtime/vm/assembler_mips.cc » ('j') | runtime/vm/object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698