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

Unified Diff: runtime/vm/assembler_arm.cc

Issue 605533003: Make subtype test stubs isolate-specific. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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 | « no previous file | runtime/vm/assembler_arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_arm.cc
===================================================================
--- runtime/vm/assembler_arm.cc (revision 40704)
+++ runtime/vm/assembler_arm.cc (working copy)
@@ -1730,10 +1730,8 @@
void Assembler::LoadClassById(Register result, Register class_id) {
ASSERT(result != class_id);
- ldr(result, FieldAddress(CTX, Context::isolate_offset()));
- const intptr_t table_offset_in_isolate =
- Isolate::class_table_offset() + ClassTable::table_offset();
- LoadFromOffset(kWord, result, result, table_offset_in_isolate);
+ LoadImmediate(result, Isolate::Current()->class_table()->TableAddress());
+ LoadFromOffset(kWord, result, result, 0);
ldr(result, Address(result, class_id, LSL, 2));
}
@@ -1741,12 +1739,7 @@
void Assembler::LoadClass(Register result, Register object, Register scratch) {
ASSERT(scratch != result);
LoadClassId(scratch, object);
-
- ldr(result, FieldAddress(CTX, Context::isolate_offset()));
- const intptr_t table_offset_in_isolate =
- Isolate::class_table_offset() + ClassTable::table_offset();
- LoadFromOffset(kWord, result, result, table_offset_in_isolate);
- ldr(result, Address(result, scratch, LSL, 2));
+ LoadClassById(result, scratch);
}
« no previous file with comments | « no previous file | runtime/vm/assembler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698