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

Unified Diff: runtime/vm/assembler_x64.cc

Issue 1235843003: Make subtype test cache stub shared between isolates. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: added back comment Created 5 years, 5 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_mips.cc ('k') | runtime/vm/class_table.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_x64.cc
diff --git a/runtime/vm/assembler_x64.cc b/runtime/vm/assembler_x64.cc
index 05eebf5c776b619e045f5d45c95f2d7e1be97778..7477651e67e5ae985df53a16da4e542fcb9176f5 100644
--- a/runtime/vm/assembler_x64.cc
+++ b/runtime/vm/assembler_x64.cc
@@ -3781,9 +3781,10 @@ void Assembler::LoadClassId(Register result, Register object) {
void Assembler::LoadClassById(Register result, Register class_id, Register pp) {
ASSERT(result != class_id);
- Isolate* isolate = Isolate::Current();
- LoadImmediate(result, Immediate(isolate->class_table()->TableAddress()), pp);
- movq(result, Address(result, 0));
+ LoadIsolate(result);
+ const intptr_t offset =
+ Isolate::class_table_offset() + ClassTable::table_offset();
+ movq(result, Address(result, offset));
movq(result, Address(result, class_id, TIMES_8, 0));
}
« no previous file with comments | « runtime/vm/assembler_mips.cc ('k') | runtime/vm/class_table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698