OLD | NEW |
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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 return token_pos; | 273 return token_pos; |
274 } | 274 } |
275 | 275 |
276 | 276 |
277 void SimulatorDebugger::PrintDartFrame(uword pc, uword fp, uword sp, | 277 void SimulatorDebugger::PrintDartFrame(uword pc, uword fp, uword sp, |
278 const Function& function, | 278 const Function& function, |
279 TokenPosition token_pos, | 279 TokenPosition token_pos, |
280 bool is_optimized, | 280 bool is_optimized, |
281 bool is_inlined) { | 281 bool is_inlined) { |
282 const Script& script = Script::Handle(function.script()); | 282 const Script& script = Script::Handle(function.script()); |
283 const String& func_name = String::Handle(function.QualifiedUserVisibleName()); | 283 const String& func_name = String::Handle(function.QualifiedScrubbedName()); |
284 const String& url = String::Handle(script.url()); | 284 const String& url = String::Handle(script.url()); |
285 intptr_t line = -1; | 285 intptr_t line = -1; |
286 intptr_t column = -1; | 286 intptr_t column = -1; |
287 if (token_pos.IsReal()) { | 287 if (token_pos.IsReal()) { |
288 script.GetTokenLocation(token_pos, &line, &column); | 288 script.GetTokenLocation(token_pos, &line, &column); |
289 } | 289 } |
290 OS::Print("pc=0x%" Px " fp=0x%" Px " sp=0x%" Px " %s%s (%s:%" Pd | 290 OS::Print("pc=0x%" Px " fp=0x%" Px " sp=0x%" Px " %s%s (%s:%" Pd |
291 ":%" Pd ")\n", | 291 ":%" Pd ")\n", |
292 pc, fp, sp, | 292 pc, fp, sp, |
293 is_optimized ? (is_inlined ? "inlined " : "optimized ") : "", | 293 is_optimized ? (is_inlined ? "inlined " : "optimized ") : "", |
(...skipping 2217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2511 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); | 2511 set_register(kExceptionObjectReg, bit_cast<int32_t>(raw_exception)); |
2512 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); | 2512 set_register(kStackTraceObjectReg, bit_cast<int32_t>(raw_stacktrace)); |
2513 buf->Longjmp(); | 2513 buf->Longjmp(); |
2514 } | 2514 } |
2515 | 2515 |
2516 } // namespace dart | 2516 } // namespace dart |
2517 | 2517 |
2518 #endif // defined(USING_SIMULATOR) | 2518 #endif // defined(USING_SIMULATOR) |
2519 | 2519 |
2520 #endif // defined TARGET_ARCH_MIPS | 2520 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |