| OLD | NEW |
| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 return token_pos; | 280 return token_pos; |
| 281 } | 281 } |
| 282 | 282 |
| 283 | 283 |
| 284 void SimulatorDebugger::PrintDartFrame(uword pc, uword fp, uword sp, | 284 void SimulatorDebugger::PrintDartFrame(uword pc, uword fp, uword sp, |
| 285 const Function& function, | 285 const Function& function, |
| 286 TokenPosition token_pos, | 286 TokenPosition token_pos, |
| 287 bool is_optimized, | 287 bool is_optimized, |
| 288 bool is_inlined) { | 288 bool is_inlined) { |
| 289 const Script& script = Script::Handle(function.script()); | 289 const Script& script = Script::Handle(function.script()); |
| 290 const String& func_name = String::Handle(function.QualifiedUserVisibleName()); | 290 const String& func_name = String::Handle(function.QualifiedScrubbedName()); |
| 291 const String& url = String::Handle(script.url()); | 291 const String& url = String::Handle(script.url()); |
| 292 intptr_t line = -1; | 292 intptr_t line = -1; |
| 293 intptr_t column = -1; | 293 intptr_t column = -1; |
| 294 if (token_pos.IsReal()) { | 294 if (token_pos.IsReal()) { |
| 295 script.GetTokenLocation(token_pos, &line, &column); | 295 script.GetTokenLocation(token_pos, &line, &column); |
| 296 } | 296 } |
| 297 OS::Print("pc=0x%" Px " fp=0x%" Px " sp=0x%" Px " %s%s (%s:%" Pd | 297 OS::Print("pc=0x%" Px " fp=0x%" Px " sp=0x%" Px " %s%s (%s:%" Pd |
| 298 ":%" Pd ")\n", | 298 ":%" Pd ")\n", |
| 299 pc, fp, sp, | 299 pc, fp, sp, |
| 300 is_optimized ? (is_inlined ? "inlined " : "optimized ") : "", | 300 is_optimized ? (is_inlined ? "inlined " : "optimized ") : "", |
| (...skipping 3267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3568 set_register(NULL, kExceptionObjectReg, bit_cast<int64_t>(raw_exception)); | 3568 set_register(NULL, kExceptionObjectReg, bit_cast<int64_t>(raw_exception)); |
| 3569 set_register(NULL, kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace)); | 3569 set_register(NULL, kStackTraceObjectReg, bit_cast<int64_t>(raw_stacktrace)); |
| 3570 buf->Longjmp(); | 3570 buf->Longjmp(); |
| 3571 } | 3571 } |
| 3572 | 3572 |
| 3573 } // namespace dart | 3573 } // namespace dart |
| 3574 | 3574 |
| 3575 #endif // !defined(USING_SIMULATOR) | 3575 #endif // !defined(USING_SIMULATOR) |
| 3576 | 3576 |
| 3577 #endif // defined TARGET_ARCH_ARM64 | 3577 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |