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

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

Issue 2376843002: Pass new pool pointer to the JumpToException stub instead of reloading in through the frame's Code … (Closed)
Patch Set: . 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_dbc.h ('k') | runtime/vm/simulator_mips.h » ('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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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_DBC) 9 #if defined(TARGET_ARCH_DBC)
10 10
(...skipping 3416 matching lines...) Expand 10 before | Expand all | Expand 10 after
3427 } 3427 }
3428 3428
3429 UNREACHABLE(); 3429 UNREACHABLE();
3430 return 0; 3430 return 0;
3431 } 3431 }
3432 3432
3433 3433
3434 void Simulator::Longjmp(uword pc, 3434 void Simulator::Longjmp(uword pc,
3435 uword sp, 3435 uword sp,
3436 uword fp, 3436 uword fp,
3437 uword ignored_pp,
3437 RawObject* raw_exception, 3438 RawObject* raw_exception,
3438 RawObject* raw_stacktrace, 3439 RawObject* raw_stacktrace,
3439 Thread* thread) { 3440 Thread* thread) {
3440 // Walk over all setjmp buffers (simulated --> C++ transitions) 3441 // Walk over all setjmp buffers (simulated --> C++ transitions)
3441 // and try to find the setjmp associated with the simulated stack pointer. 3442 // and try to find the setjmp associated with the simulated stack pointer.
3442 SimulatorSetjmpBuffer* buf = last_setjmp_buffer(); 3443 SimulatorSetjmpBuffer* buf = last_setjmp_buffer();
3443 while ((buf->link() != NULL) && (buf->link()->fp() > fp)) { 3444 while ((buf->link() != NULL) && (buf->link()->fp() > fp)) {
3444 buf = buf->link(); 3445 buf = buf->link();
3445 } 3446 }
3446 ASSERT(buf != NULL); 3447 ASSERT(buf != NULL);
(...skipping 15 matching lines...) Expand all
3462 pc_ = pc; 3463 pc_ = pc;
3463 special_[kExceptionSpecialIndex] = raw_exception; 3464 special_[kExceptionSpecialIndex] = raw_exception;
3464 special_[kStacktraceSpecialIndex] = raw_stacktrace; 3465 special_[kStacktraceSpecialIndex] = raw_stacktrace;
3465 buf->Longjmp(); 3466 buf->Longjmp();
3466 UNREACHABLE(); 3467 UNREACHABLE();
3467 } 3468 }
3468 3469
3469 } // namespace dart 3470 } // namespace dart
3470 3471
3471 #endif // defined TARGET_ARCH_DBC 3472 #endif // defined TARGET_ARCH_DBC
OLDNEW
« no previous file with comments | « runtime/vm/simulator_dbc.h ('k') | runtime/vm/simulator_mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698