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

Unified Diff: runtime/vm/assembler_arm.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
« no previous file with comments | « no previous file | runtime/vm/assembler_arm.cc » ('j') | runtime/vm/object.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_arm.h
diff --git a/runtime/vm/assembler_arm.h b/runtime/vm/assembler_arm.h
index 3f07561d280df9f4c9f9929b106d461b63bb1373..735a5f71a2ee3369a2645e688766d484455c42ca 100644
--- a/runtime/vm/assembler_arm.h
+++ b/runtime/vm/assembler_arm.h
@@ -366,10 +366,10 @@ 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),
comments_(),
constant_pool_allowed_(false) {
- MonomorphicCheckedEntry();
}
~Assembler() { }
@@ -382,6 +382,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. On ARM there are no pointers in code.
@@ -946,7 +947,6 @@ class Assembler : public ValueObject {
void EnterStubFrame();
void LeaveStubFrame();
- void NoMonomorphicCheckedEntry();
void MonomorphicCheckedEntry();
// The register into which the allocation stats table is loaded with
@@ -1041,9 +1041,8 @@ class Assembler : public ValueObject {
private:
AssemblerBuffer buffer_; // Contains position independent code.
ObjectPoolWrapper object_pool_wrapper_;
-
int32_t prologue_offset_;
-
+ bool has_single_entry_point_;
bool use_far_branches_;
// If you are thinking of using one or both of these instructions directly,
« no previous file with comments | « no previous file | runtime/vm/assembler_arm.cc » ('j') | runtime/vm/object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698