Commit 20ad29fd authored by Simon Zünd's avatar Simon Zünd Committed by Commit Bot

Allow printing of embedded builtin code objects

R=jgruber@chromium.org

Change-Id: I399dadfdd515bdb1e0f16e8f167f102773399d30
Reviewed-on: https://chromium-review.googlesource.com/1101685
Commit-Queue: Simon Zünd <szuend@google.com>
Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53752}
parent 4936efb0
......@@ -10,6 +10,7 @@
#include "src/bootstrapper.h"
#include "src/disasm.h"
#include "src/disassembler.h"
#include "src/instruction-stream.h"
#include "src/interpreter/bytecodes.h"
#include "src/objects-inl.h"
#include "src/objects/debug-objects-inl.h"
......@@ -2399,9 +2400,11 @@ extern void _v8_internal_Print_Code(void* object) {
}
if (!isolate->heap()->InSpaceSlow(address, i::CODE_SPACE) &&
!isolate->heap()->InSpaceSlow(address, i::LO_SPACE)) {
!isolate->heap()->InSpaceSlow(address, i::LO_SPACE) &&
!i::InstructionStream::PcIsOffHeap(isolate, address)) {
i::PrintF(
"%p is not within the current isolate's large object or code spaces\n",
"%p is not within the current isolate's large object, code or embedded "
"spaces\n",
object);
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment