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

Side by Side Diff: runtime/vm/simulator_arm64.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_arm.cc ('k') | runtime/vm/simulator_mips.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) 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 <setjmp.h> // NOLINT 5 #include <setjmp.h> // NOLINT
6 #include <stdlib.h> 6 #include <stdlib.h>
7 7
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 #if defined(TARGET_ARCH_ARM64) 9 #if defined(TARGET_ARCH_ARM64)
10 10
(...skipping 3586 matching lines...) Expand 10 before | Expand all | Expand 10 after
3597 set_register(NULL, FP, static_cast<int64_t>(fp)); 3597 set_register(NULL, FP, static_cast<int64_t>(fp));
3598 set_register(NULL, THR, reinterpret_cast<int64_t>(thread)); 3598 set_register(NULL, THR, reinterpret_cast<int64_t>(thread));
3599 // Set the tag. 3599 // Set the tag.
3600 thread->set_vm_tag(VMTag::kDartTagId); 3600 thread->set_vm_tag(VMTag::kDartTagId);
3601 // Clear top exit frame. 3601 // Clear top exit frame.
3602 thread->set_top_exit_frame_info(0); 3602 thread->set_top_exit_frame_info(0);
3603 3603
3604 ASSERT(raw_exception != Object::null()); 3604 ASSERT(raw_exception != Object::null());
3605 set_register(NULL, kExceptionObjectReg, bit_cast<int64_t>(raw_exception)); 3605 set_register(NULL, kExceptionObjectReg, bit_cast<int64_t>(raw_exception));
3606 set_register(NULL, kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace)); 3606 set_register(NULL, kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace));
3607 // Restore pool pointer.
3608 int64_t code = *reinterpret_cast<int64_t*>(
3609 fp + kPcMarkerSlotFromFp * kWordSize);
3610 int64_t pp = *reinterpret_cast<int64_t*>(
3611 code + Code::object_pool_offset() - kHeapObjectTag);
3612 pp -= kHeapObjectTag; // In the PP register, the pool pointer is untagged.
3613 set_register(NULL, CODE_REG, code);
3614 set_register(NULL, PP, pp);
3607 buf->Longjmp(); 3615 buf->Longjmp();
3608 } 3616 }
3609 3617
3610 } // namespace dart 3618 } // namespace dart
3611 3619
3612 #endif // !defined(USING_SIMULATOR) 3620 #endif // !defined(USING_SIMULATOR)
3613 3621
3614 #endif // defined TARGET_ARCH_ARM64 3622 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/simulator_arm.cc ('k') | runtime/vm/simulator_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698