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

Unified Diff: runtime/vm/stub_code_mips.cc

Issue 2427043002: VM: Remove unnecesary load of isolate in some stubs. (Closed)
Patch Set: Created 4 years, 2 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/stub_code_arm64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_mips.cc
diff --git a/runtime/vm/stub_code_mips.cc b/runtime/vm/stub_code_mips.cc
index 6df06424f3adf64ae7ca2cf979232b3fc1960b11..5c99655b6bd8799511e0693ce3110db5de002f90 100644
--- a/runtime/vm/stub_code_mips.cc
+++ b/runtime/vm/stub_code_mips.cc
@@ -699,8 +699,7 @@ void StubCode::GenerateAllocateArrayStub(Assembler* assembler) {
// T2: Allocation size.
Heap::Space space = Heap::kNew;
- __ LoadIsolate(T3);
- __ lw(T3, Address(T3, Isolate::heap_offset()));
+ __ lw(T3, Address(THR, Thread::heap_offset()));
// Potential new object start.
__ lw(T0, Address(T3, Heap::TopOffset(space)));
@@ -970,8 +969,7 @@ void StubCode::GenerateAllocateContextStub(Assembler* assembler) {
// T2: object size.
const intptr_t cid = kContextCid;
Heap::Space space = Heap::kNew;
- __ LoadIsolate(T5);
- __ lw(T5, Address(T5, Isolate::heap_offset()));
+ __ lw(T5, Address(THR, Thread::heap_offset()));
__ lw(V0, Address(T5, Heap::TopOffset(space)));
__ addu(T3, T2, V0);
« no previous file with comments | « runtime/vm/stub_code_arm64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698