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

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

Issue 17587015: Allows exception object to be null in simarm and simmips. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/simulator_arm.cc ('k') | tests/co19/co19-runtime.status » ('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 <math.h> // for isnan. 5 #include <math.h> // for isnan.
6 #include <setjmp.h> 6 #include <setjmp.h>
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #if defined(TARGET_ARCH_MIPS) 10 #if defined(TARGET_ARCH_MIPS)
(...skipping 2175 matching lines...) Expand 10 before | Expand all | Expand 10 after
2186 Isolate* isolate = Isolate::Current(); 2186 Isolate* isolate = Isolate::Current();
2187 while (isolate->top_resource() != NULL && 2187 while (isolate->top_resource() != NULL &&
2188 (reinterpret_cast<uword>(isolate->top_resource()) < native_sp)) { 2188 (reinterpret_cast<uword>(isolate->top_resource()) < native_sp)) {
2189 isolate->top_resource()->~StackResource(); 2189 isolate->top_resource()->~StackResource();
2190 } 2190 }
2191 2191
2192 // Unwind the C++ stack and continue simulation in the target frame. 2192 // Unwind the C++ stack and continue simulation in the target frame.
2193 set_pc(static_cast<int32_t>(pc)); 2193 set_pc(static_cast<int32_t>(pc));
2194 set_register(SP, static_cast<int32_t>(sp)); 2194 set_register(SP, static_cast<int32_t>(sp));
2195 set_register(FP, static_cast<int32_t>(fp)); 2195 set_register(FP, static_cast<int32_t>(fp));
2196 ASSERT(raw_exception != NULL); 2196
2197 ASSERT(raw_exception != Object::null());
2197 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); 2198 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception));
2198 if (raw_stacktrace != NULL) { 2199 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace));
2199 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace));
2200 }
2201 buf->Longjmp(); 2200 buf->Longjmp();
2202 } 2201 }
2203 2202
2204 } // namespace dart 2203 } // namespace dart
2205 2204
2206 #endif // !defined(HOST_ARCH_MIPS) 2205 #endif // !defined(HOST_ARCH_MIPS)
2207 2206
2208 #endif // defined TARGET_ARCH_MIPS 2207 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/simulator_arm.cc ('k') | tests/co19/co19-runtime.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698