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

Side by Side Diff: runtime/vm/simulator_mips.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_arm64.cc ('k') | runtime/vm/stub_code_arm.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 <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_MIPS) 9 #if defined(TARGET_ARCH_MIPS)
10 10
(...skipping 2512 matching lines...) Expand 10 before | Expand all | Expand 10 after
2523 set_register(FP, static_cast<int32_t>(fp)); 2523 set_register(FP, static_cast<int32_t>(fp));
2524 set_register(THR, reinterpret_cast<int32_t>(thread)); 2524 set_register(THR, reinterpret_cast<int32_t>(thread));
2525 // Set the tag. 2525 // Set the tag.
2526 thread->set_vm_tag(VMTag::kDartTagId); 2526 thread->set_vm_tag(VMTag::kDartTagId);
2527 // Clear top exit frame. 2527 // Clear top exit frame.
2528 thread->set_top_exit_frame_info(0); 2528 thread->set_top_exit_frame_info(0);
2529 2529
2530 ASSERT(raw_exception != Object::null()); 2530 ASSERT(raw_exception != Object::null());
2531 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); 2531 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception));
2532 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); 2532 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace));
2533 // Restore pool pointer.
2534 int32_t code = *reinterpret_cast<int32_t*>(
2535 fp + kPcMarkerSlotFromFp * kWordSize);
2536 int32_t pp = *reinterpret_cast<int32_t*>(
2537 code + Code::object_pool_offset() - kHeapObjectTag);
2538 set_register(CODE_REG, code);
2539 set_register(PP, pp);
2533 buf->Longjmp(); 2540 buf->Longjmp();
2534 } 2541 }
2535 2542
2536 } // namespace dart 2543 } // namespace dart
2537 2544
2538 #endif // defined(USING_SIMULATOR) 2545 #endif // defined(USING_SIMULATOR)
2539 2546
2540 #endif // defined TARGET_ARCH_MIPS 2547 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/simulator_arm64.cc ('k') | runtime/vm/stub_code_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698