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

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

Issue 2357343003: Fix lazy deoptimization in the presence of exceptions (Closed)
Patch Set: Ensure space for patching on ARM/MIPS archs 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/stub_code_arm64.cc ('k') | runtime/vm/stub_code_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/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 1959 matching lines...) Expand 10 before | Expand all | Expand 10 after
1970 // MIPS ABI reserves stack space for all arguments. The StackTrace object is 1970 // MIPS ABI reserves stack space for all arguments. The StackTrace object is
1971 // the last of five arguments, so it is first pushed on the stack. 1971 // the last of five arguments, so it is first pushed on the stack.
1972 __ lw(V1, Address(SP, 4 * kWordSize)); // StackTrace object. 1972 __ lw(V1, Address(SP, 4 * kWordSize)); // StackTrace object.
1973 __ mov(FP, A2); // Frame_pointer. 1973 __ mov(FP, A2); // Frame_pointer.
1974 __ lw(THR, Address(SP, 5 * kWordSize)); // Thread. 1974 __ lw(THR, Address(SP, 5 * kWordSize)); // Thread.
1975 // Set tag. 1975 // Set tag.
1976 __ LoadImmediate(A2, VMTag::kDartTagId); 1976 __ LoadImmediate(A2, VMTag::kDartTagId);
1977 __ sw(A2, Assembler::VMTagAddress()); 1977 __ sw(A2, Assembler::VMTagAddress());
1978 // Clear top exit frame. 1978 // Clear top exit frame.
1979 __ sw(ZR, Address(THR, Thread::top_exit_frame_info_offset())); 1979 __ sw(ZR, Address(THR, Thread::top_exit_frame_info_offset()));
1980 1980 // Restore pool pointer.
1981 __ RestoreCodePointer();
1982 __ LoadPoolPointer();
1981 __ jr(A0); // Jump to the exception handler code. 1983 __ jr(A0); // Jump to the exception handler code.
1982 __ delay_slot()->mov(SP, A1); // Stack pointer. 1984 __ delay_slot()->mov(SP, A1); // Stack pointer.
1983 } 1985 }
1984 1986
1985 1987
1986 // Calls to the runtime to optimize the given function. 1988 // Calls to the runtime to optimize the given function.
1987 // T0: function to be reoptimized. 1989 // T0: function to be reoptimized.
1988 // S4: argument descriptor (preserved). 1990 // S4: argument descriptor (preserved).
1989 void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) { 1991 void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) {
1990 __ Comment("OptimizeFunctionStub"); 1992 __ Comment("OptimizeFunctionStub");
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
2363 } 2365 }
2364 2366
2365 2367
2366 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { 2368 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) {
2367 __ break_(0); 2369 __ break_(0);
2368 } 2370 }
2369 2371
2370 } // namespace dart 2372 } // namespace dart
2371 2373
2372 #endif // defined TARGET_ARCH_MIPS 2374 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_arm64.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698