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

Unified Diff: runtime/vm/assembler_mips.h

Issue 2226893002: Optimize AOT's switchable calls for the monomorphic case. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 4 years, 4 months 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 | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/assembler_mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_mips.h
diff --git a/runtime/vm/assembler_mips.h b/runtime/vm/assembler_mips.h
index 87717b656cdaec326d7fd12e563167a35dcbbbe7..095fa749869ff343b684d380879cfd59dc0498f7 100644
--- a/runtime/vm/assembler_mips.h
+++ b/runtime/vm/assembler_mips.h
@@ -243,7 +243,9 @@ class Assembler : public ValueObject {
delay_slot_available_(false),
in_delay_slot_(false),
comments_(),
- constant_pool_allowed_(true) { }
+ constant_pool_allowed_(true) {
+ MonomorphicCheckedEntry();
+ }
~Assembler() { }
void PopRegister(Register r) { Pop(r); }
@@ -280,7 +282,6 @@ class Assembler : public ValueObject {
}
void set_use_far_branches(bool b) {
- ASSERT(buffer_.Size() == 0);
use_far_branches_ = b;
}
@@ -295,6 +296,9 @@ class Assembler : public ValueObject {
// the branch delay slot.
void LeaveStubFrameAndReturn(Register ra = RA);
+ void NoMonomorphicCheckedEntry();
+ void MonomorphicCheckedEntry();
+
void UpdateAllocationStats(intptr_t cid,
Register temp_reg,
Heap::Space space);
« no previous file with comments | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/assembler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698