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

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

Issue 2357343003: Fix lazy deoptimization in the presence of exceptions (Closed)
Patch Set: new test case Created 4 years, 3 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) 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_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 1856 matching lines...) Expand 10 before | Expand all | Expand 10 after
1867 #endif 1867 #endif
1868 __ movq(RBP, CallingConventions::kArg3Reg); 1868 __ movq(RBP, CallingConventions::kArg3Reg);
1869 __ movq(RSP, CallingConventions::kArg2Reg); 1869 __ movq(RSP, CallingConventions::kArg2Reg);
1870 __ movq(kStackTraceObjectReg, stacktrace_reg); 1870 __ movq(kStackTraceObjectReg, stacktrace_reg);
1871 __ movq(kExceptionObjectReg, CallingConventions::kArg4Reg); 1871 __ movq(kExceptionObjectReg, CallingConventions::kArg4Reg);
1872 // Set the tag. 1872 // Set the tag.
1873 __ movq(Assembler::VMTagAddress(), Immediate(VMTag::kDartTagId)); 1873 __ movq(Assembler::VMTagAddress(), Immediate(VMTag::kDartTagId));
1874 // Clear top exit frame. 1874 // Clear top exit frame.
1875 __ movq(Address(THR, Thread::top_exit_frame_info_offset()), 1875 __ movq(Address(THR, Thread::top_exit_frame_info_offset()),
1876 Immediate(0)); 1876 Immediate(0));
1877 // Restore the pool pointer.
1878 __ RestoreCodePointer();
1879 __ LoadPoolPointer(PP);
1877 __ jmp(CallingConventions::kArg1Reg); // Jump to the exception handler code. 1880 __ jmp(CallingConventions::kArg1Reg); // Jump to the exception handler code.
1878 } 1881 }
1879 1882
1880 1883
1881 // Calls to the runtime to optimize the given function. 1884 // Calls to the runtime to optimize the given function.
1882 // RDI: function to be reoptimized. 1885 // RDI: function to be reoptimized.
1883 // R10: argument descriptor (preserved). 1886 // R10: argument descriptor (preserved).
1884 void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) { 1887 void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) {
1885 __ EnterStubFrame(); 1888 __ EnterStubFrame();
1886 __ LoadObject(R12, Object::null_object()); 1889 __ LoadObject(R12, Object::null_object());
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
2227 } 2230 }
2228 2231
2229 2232
2230 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { 2233 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) {
2231 __ int3(); 2234 __ int3();
2232 } 2235 }
2233 2236
2234 } // namespace dart 2237 } // namespace dart
2235 2238
2236 #endif // defined TARGET_ARCH_X64 2239 #endif // defined TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698