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

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

Issue 1052563003: VM: Add infrastructure to support deferred generation of unoptimized code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 8 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
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/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 // Code above cannot cause GC. 581 // Code above cannot cause GC.
582 __ addiu(SP, FP, Immediate(-kWordSize)); 582 __ addiu(SP, FP, Immediate(-kWordSize));
583 __ lw(RA, Address(SP, 2 * kWordSize)); 583 __ lw(RA, Address(SP, 2 * kWordSize));
584 __ lw(FP, Address(SP, 1 * kWordSize)); 584 __ lw(FP, Address(SP, 1 * kWordSize));
585 __ lw(PP, Address(SP, 0 * kWordSize)); 585 __ lw(PP, Address(SP, 0 * kWordSize));
586 __ addiu(SP, SP, Immediate(4 * kWordSize)); 586 __ addiu(SP, SP, Immediate(4 * kWordSize));
587 587
588 // Frame is fully rewritten at this point and it is safe to perform a GC. 588 // Frame is fully rewritten at this point and it is safe to perform a GC.
589 // Materialize any objects that were deferred by FillFrame because they 589 // Materialize any objects that were deferred by FillFrame because they
590 // require allocation. 590 // require allocation.
591 __ EnterStubFrame(); 591 // Enter stub frame with loading PP. The caller's PP is not materialized yet.
592 __ EnterStubFrame(true);
592 if (preserve_result) { 593 if (preserve_result) {
593 __ Push(T1); // Preserve result, it will be GC-d here. 594 __ Push(T1); // Preserve result, it will be GC-d here.
594 } 595 }
595 __ PushObject(Smi::ZoneHandle()); // Space for the result. 596 __ PushObject(Smi::ZoneHandle()); // Space for the result.
596 __ CallRuntime(kDeoptimizeMaterializeRuntimeEntry, 0); 597 __ CallRuntime(kDeoptimizeMaterializeRuntimeEntry, 0);
597 // Result tells stub how many bytes to remove from the expression stack 598 // Result tells stub how many bytes to remove from the expression stack
598 // of the bottom-most frame. They were used as materialization arguments. 599 // of the bottom-most frame. They were used as materialization arguments.
599 __ Pop(T1); 600 __ Pop(T1);
600 if (preserve_result) { 601 if (preserve_result) {
601 __ Pop(V0); // Restore result. 602 __ Pop(V0); // Restore result.
(...skipping 1649 matching lines...) Expand 10 before | Expand all | Expand 10 after
2251 const Register right = T0; 2252 const Register right = T0;
2252 __ lw(left, Address(SP, 1 * kWordSize)); 2253 __ lw(left, Address(SP, 1 * kWordSize));
2253 __ lw(right, Address(SP, 0 * kWordSize)); 2254 __ lw(right, Address(SP, 0 * kWordSize));
2254 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp1, temp2); 2255 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp1, temp2);
2255 __ Ret(); 2256 __ Ret();
2256 } 2257 }
2257 2258
2258 } // namespace dart 2259 } // namespace dart
2259 2260
2260 #endif // defined TARGET_ARCH_MIPS 2261 #endif // defined TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698