| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/runtime/runtime-utils.h" | 5 #include "src/runtime/runtime-utils.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "src/arguments.h" | 9 #include "src/arguments.h" |
| 10 #include "src/compiler-dispatcher/optimizing-compile-dispatcher.h" | 10 #include "src/compiler-dispatcher/optimizing-compile-dispatcher.h" |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 JavaScriptFrameIterator it(isolate); | 450 JavaScriptFrameIterator it(isolate); |
| 451 JavaScriptFrame* frame = it.frame(); | 451 JavaScriptFrame* frame = it.frame(); |
| 452 os << "fp = " << static_cast<void*>(frame->fp()) | 452 os << "fp = " << static_cast<void*>(frame->fp()) |
| 453 << ", sp = " << static_cast<void*>(frame->sp()) | 453 << ", sp = " << static_cast<void*>(frame->sp()) |
| 454 << ", caller_sp = " << static_cast<void*>(frame->caller_sp()) << ": "; | 454 << ", caller_sp = " << static_cast<void*>(frame->caller_sp()) << ": "; |
| 455 } else { | 455 } else { |
| 456 os << "DebugPrint: "; | 456 os << "DebugPrint: "; |
| 457 } | 457 } |
| 458 args[0]->Print(os); | 458 args[0]->Print(os); |
| 459 if (args[0]->IsHeapObject()) { | 459 if (args[0]->IsHeapObject()) { |
| 460 os << "\n"; | |
| 461 HeapObject::cast(args[0])->map()->Print(os); | 460 HeapObject::cast(args[0])->map()->Print(os); |
| 462 } | 461 } |
| 463 #else | 462 #else |
| 464 // ShortPrint is available in release mode. Print is not. | 463 // ShortPrint is available in release mode. Print is not. |
| 465 os << Brief(args[0]); | 464 os << Brief(args[0]); |
| 466 #endif | 465 #endif |
| 467 os << std::endl; | 466 os << std::endl; |
| 468 | 467 |
| 469 return args[0]; // return TOS | 468 return args[0]; // return TOS |
| 470 } | 469 } |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 RUNTIME_FUNCTION(Runtime_ValidateWasmOrphanedInstance) { | 793 RUNTIME_FUNCTION(Runtime_ValidateWasmOrphanedInstance) { |
| 795 HandleScope shs(isolate); | 794 HandleScope shs(isolate); |
| 796 DCHECK(args.length() == 1); | 795 DCHECK(args.length() == 1); |
| 797 CONVERT_ARG_HANDLE_CHECKED(JSObject, instance_obj, 0); | 796 CONVERT_ARG_HANDLE_CHECKED(JSObject, instance_obj, 0); |
| 798 wasm::testing::ValidateOrphanedInstance(isolate, instance_obj); | 797 wasm::testing::ValidateOrphanedInstance(isolate, instance_obj); |
| 799 return isolate->heap()->ToBoolean(true); | 798 return isolate->heap()->ToBoolean(true); |
| 800 } | 799 } |
| 801 | 800 |
| 802 } // namespace internal | 801 } // namespace internal |
| 803 } // namespace v8 | 802 } // namespace v8 |
| OLD | NEW |