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

Unified Diff: runtime/vm/clustered_snapshot.cc

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_x64_test.cc ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/clustered_snapshot.cc
diff --git a/runtime/vm/clustered_snapshot.cc b/runtime/vm/clustered_snapshot.cc
index 6f958fd5cb3693e34ccef21399d6f54f3788b0c4..afacd26ca31bb0ed4bd51ae1a41c93d3bbdf4299 100644
--- a/runtime/vm/clustered_snapshot.cc
+++ b/runtime/vm/clustered_snapshot.cc
@@ -1519,9 +1519,10 @@ class CodeDeserializationCluster : public DeserializationCluster {
int32_t text_offset = d->Read<int32_t>();
RawInstructions* instr = reinterpret_cast<RawInstructions*>(
d->GetInstructionsAt(text_offset) + kHeapObjectTag);
- uword entry_point = Instructions::EntryPoint(instr);
- code->ptr()->entry_point_ = entry_point;
+ code->ptr()->entry_point_ = Instructions::UncheckedEntryPoint(instr);
+ code->ptr()->checked_entry_point_ =
+ Instructions::CheckedEntryPoint(instr);
code->ptr()->active_instructions_ = instr;
code->ptr()->instructions_ = instr;
code->ptr()->object_pool_ =
@@ -2141,7 +2142,7 @@ class ICDataDeserializationCluster : public DeserializationCluster {
funcOrCode = ic.GetTargetOrCodeAt(j);
if (funcOrCode.IsCode()) {
code ^= funcOrCode.raw();
- entry_point = Smi::FromAlignedAddress(code.EntryPoint());
+ entry_point = Smi::FromAlignedAddress(code.UncheckedEntryPoint());
ic.SetEntryPointAt(j, entry_point);
}
}
« no previous file with comments | « runtime/vm/assembler_x64_test.cc ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698