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

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

Issue 2357343003: Fix lazy deoptimization in the presence of exceptions (Closed)
Patch Set: new test case 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
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 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after
1888 __ mov(SP, R1); // Stack pointer. 1888 __ mov(SP, R1); // Stack pointer.
1889 __ mov(FP, R2); // Frame_pointer. 1889 __ mov(FP, R2); // Frame_pointer.
1890 __ mov(R0, R3); // Exception object. 1890 __ mov(R0, R3); // Exception object.
1891 __ mov(R1, R4); // StackTrace object. 1891 __ mov(R1, R4); // StackTrace object.
1892 __ mov(THR, R5); 1892 __ mov(THR, R5);
1893 // Set the tag. 1893 // Set the tag.
1894 __ LoadImmediate(R2, VMTag::kDartTagId); 1894 __ LoadImmediate(R2, VMTag::kDartTagId);
1895 __ StoreToOffset(R2, THR, Thread::vm_tag_offset()); 1895 __ StoreToOffset(R2, THR, Thread::vm_tag_offset());
1896 // Clear top exit frame. 1896 // Clear top exit frame.
1897 __ StoreToOffset(ZR, THR, Thread::top_exit_frame_info_offset()); 1897 __ StoreToOffset(ZR, THR, Thread::top_exit_frame_info_offset());
1898 // Restore the pool pointer.
1899 __ RestoreCodePointer();
1900 __ LoadPoolPointer();
1898 __ ret(); // Jump to the exception handler code. 1901 __ ret(); // Jump to the exception handler code.
1899 } 1902 }
1900 1903
1901 1904
1902 // Calls to the runtime to optimize the given function. 1905 // Calls to the runtime to optimize the given function.
1903 // R6: function to be re-optimized. 1906 // R6: function to be re-optimized.
1904 // R4: argument descriptor (preserved). 1907 // R4: argument descriptor (preserved).
1905 void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) { 1908 void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) {
1906 __ EnterStubFrame(); 1909 __ EnterStubFrame();
1907 __ Push(R4); 1910 __ Push(R4);
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
2248 } 2251 }
2249 2252
2250 2253
2251 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { 2254 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) {
2252 __ brk(0); 2255 __ brk(0);
2253 } 2256 }
2254 2257
2255 } // namespace dart 2258 } // namespace dart
2256 2259
2257 #endif // defined TARGET_ARCH_ARM64 2260 #endif // defined TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698