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

Side by Side Diff: runtime/vm/stub_code_x64.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_mips.cc ('k') | tests/language/vm/lazy_deopt_with_exception_test.dart » ('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_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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
2252 } 2255 }
2253 2256
2254 2257
2255 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) { 2258 void StubCode::GenerateFrameAwaitingMaterializationStub(Assembler* assembler) {
2256 __ int3(); 2259 __ int3();
2257 } 2260 }
2258 2261
2259 } // namespace dart 2262 } // namespace dart
2260 2263
2261 #endif // defined TARGET_ARCH_X64 2264 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_mips.cc ('k') | tests/language/vm/lazy_deopt_with_exception_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698