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

Side by Side Diff: runtime/vm/stub_code_arm.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/simulator_mips.cc ('k') | runtime/vm/stub_code_arm64.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_ARM) 6 #if defined(TARGET_ARCH_ARM)
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/cpu.h" 10 #include "vm/cpu.h"
(...skipping 1823 matching lines...) Expand 10 before | Expand all | Expand 10 after
1834 __ ldr(R1, Address(SP, 0)); // StackTrace object. 1834 __ ldr(R1, Address(SP, 0)); // StackTrace object.
1835 __ ldr(THR, Address(SP, 4)); // Thread. 1835 __ ldr(THR, Address(SP, 4)); // Thread.
1836 __ mov(FP, Operand(R2)); // Frame_pointer. 1836 __ mov(FP, Operand(R2)); // Frame_pointer.
1837 __ mov(SP, Operand(IP)); // Set Stack pointer. 1837 __ mov(SP, Operand(IP)); // Set Stack pointer.
1838 // Set the tag. 1838 // Set the tag.
1839 __ LoadImmediate(R2, VMTag::kDartTagId); 1839 __ LoadImmediate(R2, VMTag::kDartTagId);
1840 __ StoreToOffset(kWord, R2, THR, Thread::vm_tag_offset()); 1840 __ StoreToOffset(kWord, R2, THR, Thread::vm_tag_offset());
1841 // Clear top exit frame. 1841 // Clear top exit frame.
1842 __ LoadImmediate(R2, 0); 1842 __ LoadImmediate(R2, 0);
1843 __ StoreToOffset(kWord, R2, THR, Thread::top_exit_frame_info_offset()); 1843 __ StoreToOffset(kWord, R2, THR, Thread::top_exit_frame_info_offset());
1844 // Restore the pool pointer.
1845 __ RestoreCodePointer();
1846 __ LoadPoolPointer();
1844 __ bx(LR); // Jump to the exception handler code. 1847 __ bx(LR); // Jump to the exception handler code.
1845 } 1848 }
1846 1849
1847 1850
1848 // Calls to the runtime to optimize the given function. 1851 // Calls to the runtime to optimize the given function.
1849 // R8: function to be reoptimized. 1852 // R8: function to be reoptimized.
1850 // R4: argument descriptor (preserved). 1853 // R4: argument descriptor (preserved).
1851 void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) { 1854 void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) {
1852 __ EnterStubFrame(); 1855 __ EnterStubFrame();
1853 __ Push(R4); 1856 __ Push(R4);
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
2211 } 2214 }
2212 2215
2213 2216
2214 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { 2217 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) {
2215 __ bkpt(0); 2218 __ bkpt(0);
2216 } 2219 }
2217 2220
2218 } // namespace dart 2221 } // namespace dart
2219 2222
2220 #endif // defined TARGET_ARCH_ARM 2223 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/simulator_mips.cc ('k') | runtime/vm/stub_code_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698