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

Side by Side Diff: runtime/vm/assembler_mips.cc

Issue 365983002: Make isolate specific stub code accessors instance methods instead (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/longjump.h" 9 #include "vm/longjump.h"
10 #include "vm/runtime_entry.h" 10 #include "vm/runtime_entry.h"
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 // Preserve T0. 568 // Preserve T0.
569 addiu(SP, SP, Immediate(-2 * kWordSize)); 569 addiu(SP, SP, Immediate(-2 * kWordSize));
570 sw(T0, Address(SP, 1 * kWordSize)); 570 sw(T0, Address(SP, 1 * kWordSize));
571 } else { 571 } else {
572 addiu(SP, SP, Immediate(-1 * kWordSize)); 572 addiu(SP, SP, Immediate(-1 * kWordSize));
573 } 573 }
574 sw(RA, Address(SP, 0 * kWordSize)); 574 sw(RA, Address(SP, 0 * kWordSize));
575 if (object != T0) { 575 if (object != T0) {
576 mov(T0, object); 576 mov(T0, object);
577 } 577 }
578 BranchLink(&StubCode::UpdateStoreBufferLabel()); 578 StubCode* stub_code = Isolate::Current()->stub_code();
579 BranchLink(&stub_code->UpdateStoreBufferLabel());
579 lw(RA, Address(SP, 0 * kWordSize)); 580 lw(RA, Address(SP, 0 * kWordSize));
580 if (value != T0) { 581 if (value != T0) {
581 // Restore T0. 582 // Restore T0.
582 lw(T0, Address(SP, 1 * kWordSize)); 583 lw(T0, Address(SP, 1 * kWordSize));
583 addiu(SP, SP, Immediate(2 * kWordSize)); 584 addiu(SP, SP, Immediate(2 * kWordSize));
584 } else { 585 } else {
585 addiu(SP, SP, Immediate(1 * kWordSize)); 586 addiu(SP, SP, Immediate(1 * kWordSize));
586 } 587 }
587 Bind(&done); 588 Bind(&done);
588 } 589 }
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 Emit(reinterpret_cast<int32_t>(message)); 1142 Emit(reinterpret_cast<int32_t>(message));
1142 Bind(&msg); 1143 Bind(&msg);
1143 break_(Instr::kMsgMessageCode); 1144 break_(Instr::kMsgMessageCode);
1144 } 1145 }
1145 #endif 1146 #endif
1146 } 1147 }
1147 1148
1148 } // namespace dart 1149 } // namespace dart
1149 1150
1150 #endif // defined TARGET_ARCH_MIPS 1151 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698