2014-04-24 11:44:22 +00:00
|
|
|
// Copyright 2011 the V8 project authors. All rights reserved.
|
2014-04-29 06:42:26 +00:00
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
2014-04-24 11:44:22 +00:00
|
|
|
|
2015-08-14 09:41:32 +00:00
|
|
|
#include "src/disassembler.h"
|
2008-07-03 15:10:15 +00:00
|
|
|
|
2014-06-03 08:12:43 +00:00
|
|
|
#include "src/code-stubs.h"
|
|
|
|
#include "src/codegen.h"
|
2015-07-31 11:07:50 +00:00
|
|
|
#include "src/debug/debug.h"
|
2014-06-03 08:12:43 +00:00
|
|
|
#include "src/deoptimizer.h"
|
|
|
|
#include "src/disasm.h"
|
|
|
|
#include "src/macro-assembler.h"
|
2016-03-01 14:42:57 +00:00
|
|
|
#include "src/snapshot/serializer-common.h"
|
2014-06-03 08:12:43 +00:00
|
|
|
#include "src/string-stream.h"
|
2008-07-03 15:10:15 +00:00
|
|
|
|
2009-05-25 10:05:56 +00:00
|
|
|
namespace v8 {
|
|
|
|
namespace internal {
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
#ifdef ENABLE_DISASSEMBLER
|
|
|
|
|
|
|
|
class V8NameConverter: public disasm::NameConverter {
|
|
|
|
public:
|
|
|
|
explicit V8NameConverter(Code* code) : code_(code) {}
|
|
|
|
virtual const char* NameOfAddress(byte* pc) const;
|
2008-07-30 08:49:36 +00:00
|
|
|
virtual const char* NameInCode(byte* addr) const;
|
2008-07-03 15:10:15 +00:00
|
|
|
Code* code() const { return code_; }
|
|
|
|
private:
|
|
|
|
Code* code_;
|
2011-03-18 20:35:07 +00:00
|
|
|
|
|
|
|
EmbeddedVector<char, 128> v8_buffer_;
|
2008-07-03 15:10:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const char* V8NameConverter::NameOfAddress(byte* pc) const {
|
[assembler] Introduce proper AssemblerBase::Print() for improved debuggability.
While working on frame elision, I wanted to disassemble codegen in the
debugger, as the code generation is progressing. I discovered we had a
"Print" member on the x64 assembler, without any implementation. I
pulled it up to AssemblerBase and gave it an implementation that
should work for the other architectures.
Also checked that ia32, x87, arm and arm64 assemblers didn't have
such an implementation - free Print.
Arm64 has a naming conflict with the v8::internal::Disassembler. I
renamed the arm64 type with a more specific name.
Opportunistically fixed a bug in the name converter. This debug-time
printer doesn't provide a Code object, which should be OK with the
name converters, by the looks of other APIs there. All this means is that
when using the Print() API, we just get addresses dumped without any
context (like what this address may be - a stub maybe, etc). This seems
fine for the scenario.
There may be other places that assume a Code object. Since this is
a diagnostics-only scenario, for codegen developers, I feel it is
reasonable to fix such other places as we find them.
Review URL: https://codereview.chromium.org/1431933003
Cr-Commit-Position: refs/heads/master@{#31869}
2015-11-09 05:39:20 +00:00
|
|
|
const char* name =
|
|
|
|
code_ == NULL ? NULL : code_->GetIsolate()->builtins()->Lookup(pc);
|
|
|
|
|
2008-07-03 15:10:15 +00:00
|
|
|
if (name != NULL) {
|
2014-06-13 16:43:27 +00:00
|
|
|
SNPrintF(v8_buffer_, "%s (%p)", name, pc);
|
2011-03-18 20:35:07 +00:00
|
|
|
return v8_buffer_.start();
|
2008-07-03 15:10:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (code_ != NULL) {
|
2009-11-11 09:50:06 +00:00
|
|
|
int offs = static_cast<int>(pc - code_->instruction_start());
|
2008-07-03 15:10:15 +00:00
|
|
|
// print as code offset, if it seems reasonable
|
|
|
|
if (0 <= offs && offs < code_->instruction_size()) {
|
Revert of Decompiler improvements. (patchset #2 id:20001 of https://codereview.chromium.org/1177123002/)
Reason for revert:
Code printout has become unreadable. Offsets are printed in decimal numbers everywhere else. This is inconsistent with the rest of the code-base. Some examples are tables for deoptimization data, safepoints and exception handlers. I would be fine with this change if _all_ tracing would be adapted. But there are _many_ places to touch.
Original issue's description:
> Decompiler improvements.
>
> The main motivation is simplifying profiling activities:
>
> 1) Use hex instead of decimal for offsets, just like perf does. This
> affects --print-opt-code
>
> 2) When printing block information, indicate loop information: if
> block is header, where the end is; if block is in a loop, where the
> loop starts. This affects --code-comments.
>
> Using --print-opt-code --code-comments, and cross-referencing with data
> obtained from perf, one may now find the block a hotspot belongs to
> without needing to do hex2dec/dec2hex conversions. Once found, loop info
> is available locally, on the block.
>
> BUG=
>
> Committed: https://crrev.com/32f4bd659d38eb5485eedb1d0dd236ff1bdc01d5
> Cr-Commit-Position: refs/heads/master@{#28964}
TBR=jarin@chromium.org,stichnot@chromium.org,jvoung@chromium.org,mtrofin@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=
Review URL: https://codereview.chromium.org/1188093002
Cr-Commit-Position: refs/heads/master@{#29046}
2015-06-16 10:38:47 +00:00
|
|
|
SNPrintF(v8_buffer_, "%d (%p)", offs, pc);
|
2011-03-18 20:35:07 +00:00
|
|
|
return v8_buffer_.start();
|
2008-07-03 15:10:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return disasm::NameConverter::NameOfAddress(pc);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2008-07-30 08:49:36 +00:00
|
|
|
const char* V8NameConverter::NameInCode(byte* addr) const {
|
|
|
|
// The V8NameConverter is used for well known code, so we can "safely"
|
|
|
|
// dereference pointers in generated code.
|
|
|
|
return (code_ != NULL) ? reinterpret_cast<const char*>(addr) : "";
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-09-30 10:29:32 +00:00
|
|
|
static void DumpBuffer(std::ostream* os, StringBuilder* out) {
|
|
|
|
(*os) << out->Finalize() << std::endl;
|
2011-08-11 12:52:37 +00:00
|
|
|
out->Reset();
|
2008-07-03 15:10:15 +00:00
|
|
|
}
|
|
|
|
|
2011-08-11 12:52:37 +00:00
|
|
|
|
2009-03-19 11:57:18 +00:00
|
|
|
static const int kOutBufferSize = 2048 + String::kMaxShortPrintLength;
|
2008-07-03 15:10:15 +00:00
|
|
|
static const int kRelocInfoPosition = 57;
|
|
|
|
|
2014-09-30 10:29:32 +00:00
|
|
|
static int DecodeIt(Isolate* isolate, std::ostream* os,
|
2014-09-25 08:33:24 +00:00
|
|
|
const V8NameConverter& converter, byte* begin, byte* end) {
|
2013-06-03 15:32:22 +00:00
|
|
|
SealHandleScope shs(isolate);
|
|
|
|
DisallowHeapAllocation no_alloc;
|
2013-09-03 11:54:08 +00:00
|
|
|
ExternalReferenceEncoder ref_encoder(isolate);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
2008-09-11 14:34:48 +00:00
|
|
|
v8::internal::EmbeddedVector<char, 128> decode_buffer;
|
|
|
|
v8::internal::EmbeddedVector<char, kOutBufferSize> out_buffer;
|
2011-08-11 13:59:29 +00:00
|
|
|
StringBuilder out(out_buffer.start(), out_buffer.length());
|
2008-07-03 15:10:15 +00:00
|
|
|
byte* pc = begin;
|
|
|
|
disasm::Disassembler d(converter);
|
|
|
|
RelocIterator* it = NULL;
|
|
|
|
if (converter.code() != NULL) {
|
|
|
|
it = new RelocIterator(converter.code());
|
|
|
|
} else {
|
|
|
|
// No relocation information when printing code stubs.
|
|
|
|
}
|
2008-07-30 08:49:36 +00:00
|
|
|
int constants = -1; // no constants being decoded at the start
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
while (pc < end) {
|
|
|
|
// First decode instruction so that we know its length.
|
|
|
|
byte* prev_pc = pc;
|
2008-07-30 08:49:36 +00:00
|
|
|
if (constants > 0) {
|
2014-06-13 16:43:27 +00:00
|
|
|
SNPrintF(decode_buffer,
|
|
|
|
"%08x constant",
|
|
|
|
*reinterpret_cast<int32_t*>(pc));
|
2008-07-30 08:49:36 +00:00
|
|
|
constants--;
|
|
|
|
pc += 4;
|
|
|
|
} else {
|
|
|
|
int num_const = d.ConstantPoolSizeAt(pc);
|
|
|
|
if (num_const >= 0) {
|
2014-06-13 16:43:27 +00:00
|
|
|
SNPrintF(decode_buffer,
|
2015-07-03 10:32:27 +00:00
|
|
|
"%08x constant pool begin (num_const = %d)",
|
|
|
|
*reinterpret_cast<int32_t*>(pc), num_const);
|
2008-07-30 08:49:36 +00:00
|
|
|
constants = num_const;
|
|
|
|
pc += 4;
|
2008-09-18 11:59:55 +00:00
|
|
|
} else if (it != NULL && !it->done() && it->rinfo()->pc() == pc &&
|
2008-09-22 13:57:03 +00:00
|
|
|
it->rinfo()->rmode() == RelocInfo::INTERNAL_REFERENCE) {
|
2008-09-18 11:59:55 +00:00
|
|
|
// raw pointer embedded in code stream, e.g., jump table
|
|
|
|
byte* ptr = *reinterpret_cast<byte**>(pc);
|
2014-06-13 16:43:27 +00:00
|
|
|
SNPrintF(decode_buffer,
|
|
|
|
"%08" V8PRIxPTR " jump table entry %4" V8PRIdPTR,
|
|
|
|
reinterpret_cast<intptr_t>(ptr),
|
|
|
|
ptr - begin);
|
2015-02-09 08:56:01 +00:00
|
|
|
pc += sizeof(ptr);
|
2008-07-30 08:49:36 +00:00
|
|
|
} else {
|
|
|
|
decode_buffer[0] = '\0';
|
2008-09-11 14:34:48 +00:00
|
|
|
pc += d.InstructionDecode(decode_buffer, pc);
|
2008-07-30 08:49:36 +00:00
|
|
|
}
|
|
|
|
}
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
// Collect RelocInfo for this instruction (prev_pc .. pc-1)
|
|
|
|
List<const char*> comments(4);
|
|
|
|
List<byte*> pcs(1);
|
2008-09-22 13:57:03 +00:00
|
|
|
List<RelocInfo::Mode> rmodes(1);
|
2008-07-03 15:10:15 +00:00
|
|
|
List<intptr_t> datas(1);
|
|
|
|
if (it != NULL) {
|
|
|
|
while (!it->done() && it->rinfo()->pc() < pc) {
|
2008-09-22 13:57:03 +00:00
|
|
|
if (RelocInfo::IsComment(it->rinfo()->rmode())) {
|
2008-07-03 15:10:15 +00:00
|
|
|
// For comments just collect the text.
|
|
|
|
comments.Add(reinterpret_cast<const char*>(it->rinfo()->data()));
|
|
|
|
} else {
|
|
|
|
// For other reloc info collect all data.
|
|
|
|
pcs.Add(it->rinfo()->pc());
|
|
|
|
rmodes.Add(it->rinfo()->rmode());
|
|
|
|
datas.Add(it->rinfo()->data());
|
|
|
|
}
|
|
|
|
it->next();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Comments.
|
|
|
|
for (int i = 0; i < comments.length(); i++) {
|
2011-08-11 12:52:37 +00:00
|
|
|
out.AddFormatted(" %s", comments[i]);
|
2014-09-25 08:33:24 +00:00
|
|
|
DumpBuffer(os, &out);
|
2008-07-03 15:10:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Instruction address and instruction offset.
|
Revert of Decompiler improvements. (patchset #2 id:20001 of https://codereview.chromium.org/1177123002/)
Reason for revert:
Code printout has become unreadable. Offsets are printed in decimal numbers everywhere else. This is inconsistent with the rest of the code-base. Some examples are tables for deoptimization data, safepoints and exception handlers. I would be fine with this change if _all_ tracing would be adapted. But there are _many_ places to touch.
Original issue's description:
> Decompiler improvements.
>
> The main motivation is simplifying profiling activities:
>
> 1) Use hex instead of decimal for offsets, just like perf does. This
> affects --print-opt-code
>
> 2) When printing block information, indicate loop information: if
> block is header, where the end is; if block is in a loop, where the
> loop starts. This affects --code-comments.
>
> Using --print-opt-code --code-comments, and cross-referencing with data
> obtained from perf, one may now find the block a hotspot belongs to
> without needing to do hex2dec/dec2hex conversions. Once found, loop info
> is available locally, on the block.
>
> BUG=
>
> Committed: https://crrev.com/32f4bd659d38eb5485eedb1d0dd236ff1bdc01d5
> Cr-Commit-Position: refs/heads/master@{#28964}
TBR=jarin@chromium.org,stichnot@chromium.org,jvoung@chromium.org,mtrofin@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=
Review URL: https://codereview.chromium.org/1188093002
Cr-Commit-Position: refs/heads/master@{#29046}
2015-06-16 10:38:47 +00:00
|
|
|
out.AddFormatted("%p %4d ", prev_pc, prev_pc - begin);
|
2008-07-03 15:10:15 +00:00
|
|
|
|
2008-07-30 08:49:36 +00:00
|
|
|
// Instruction.
|
2008-09-11 14:34:48 +00:00
|
|
|
out.AddFormatted("%s", decode_buffer.start());
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
// Print all the reloc info for this instruction which are not comments.
|
|
|
|
for (int i = 0; i < pcs.length(); i++) {
|
|
|
|
// Put together the reloc info
|
2015-11-27 12:18:38 +00:00
|
|
|
RelocInfo relocinfo(isolate, pcs[i], rmodes[i], datas[i],
|
|
|
|
converter.code());
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
// Indent the printing of the reloc info.
|
|
|
|
if (i == 0) {
|
|
|
|
// The first reloc info is printed after the disassembled instruction.
|
2008-07-30 08:49:36 +00:00
|
|
|
out.AddPadding(' ', kRelocInfoPosition - out.position());
|
2008-07-03 15:10:15 +00:00
|
|
|
} else {
|
|
|
|
// Additional reloc infos are printed on separate lines.
|
2014-09-25 08:33:24 +00:00
|
|
|
DumpBuffer(os, &out);
|
2008-07-30 08:49:36 +00:00
|
|
|
out.AddPadding(' ', kRelocInfoPosition);
|
2008-07-03 15:10:15 +00:00
|
|
|
}
|
|
|
|
|
2008-09-22 13:57:03 +00:00
|
|
|
RelocInfo::Mode rmode = relocinfo.rmode();
|
|
|
|
if (RelocInfo::IsPosition(rmode)) {
|
|
|
|
if (RelocInfo::IsStatementPosition(rmode)) {
|
2008-09-17 12:38:50 +00:00
|
|
|
out.AddFormatted(" ;; debug: statement %d", relocinfo.data());
|
|
|
|
} else {
|
|
|
|
out.AddFormatted(" ;; debug: position %d", relocinfo.data());
|
|
|
|
}
|
2015-02-05 14:51:45 +00:00
|
|
|
} else if (rmode == RelocInfo::DEOPT_REASON) {
|
|
|
|
Deoptimizer::DeoptReason reason =
|
|
|
|
static_cast<Deoptimizer::DeoptReason>(relocinfo.data());
|
|
|
|
out.AddFormatted(" ;; debug: deopt reason '%s'",
|
|
|
|
Deoptimizer::GetDeoptReason(reason));
|
2008-09-22 13:57:03 +00:00
|
|
|
} else if (rmode == RelocInfo::EMBEDDED_OBJECT) {
|
2008-07-03 15:10:15 +00:00
|
|
|
HeapStringAllocator allocator;
|
|
|
|
StringStream accumulator(&allocator);
|
|
|
|
relocinfo.target_object()->ShortPrint(&accumulator);
|
2015-07-13 12:38:06 +00:00
|
|
|
base::SmartArrayPointer<const char> obj_name = accumulator.ToCString();
|
2013-12-09 07:41:20 +00:00
|
|
|
out.AddFormatted(" ;; object: %s", obj_name.get());
|
2008-09-22 13:57:03 +00:00
|
|
|
} else if (rmode == RelocInfo::EXTERNAL_REFERENCE) {
|
2015-03-06 08:15:03 +00:00
|
|
|
const char* reference_name = ref_encoder.NameOfAddress(
|
|
|
|
isolate, relocinfo.target_external_reference());
|
2008-07-30 08:49:36 +00:00
|
|
|
out.AddFormatted(" ;; external reference (%s)", reference_name);
|
2008-09-22 13:57:03 +00:00
|
|
|
} else if (RelocInfo::IsCodeTarget(rmode)) {
|
2008-09-17 12:38:50 +00:00
|
|
|
out.AddFormatted(" ;; code:");
|
2008-12-09 12:53:59 +00:00
|
|
|
Code* code = Code::GetCodeFromTargetAddress(relocinfo.target_address());
|
2008-09-17 12:38:50 +00:00
|
|
|
Code::Kind kind = code->kind();
|
|
|
|
if (code->is_inline_cache_stub()) {
|
2014-01-17 11:08:24 +00:00
|
|
|
if (kind == Code::LOAD_IC &&
|
2015-07-13 13:39:26 +00:00
|
|
|
LoadICState::GetTypeofMode(code->extra_ic_state()) ==
|
|
|
|
NOT_INSIDE_TYPEOF) {
|
2008-09-17 12:38:50 +00:00
|
|
|
out.AddFormatted(" contextual,");
|
|
|
|
}
|
|
|
|
InlineCacheState ic_state = code->ic_state();
|
|
|
|
out.AddFormatted(" %s, %s", Code::Kind2String(kind),
|
|
|
|
Code::ICState2String(ic_state));
|
2009-06-30 10:05:36 +00:00
|
|
|
if (ic_state == MONOMORPHIC) {
|
2012-06-25 11:35:23 +00:00
|
|
|
Code::StubType type = code->type();
|
|
|
|
out.AddFormatted(", %s", Code::StubType2String(type));
|
2009-06-30 10:05:36 +00:00
|
|
|
}
|
2013-09-30 13:53:21 +00:00
|
|
|
} else if (kind == Code::STUB || kind == Code::HANDLER) {
|
2014-07-23 09:49:00 +00:00
|
|
|
// Get the STUB key and extract major and minor key.
|
|
|
|
uint32_t key = code->stub_key();
|
|
|
|
uint32_t minor_key = CodeStub::MinorKeyFromKey(key);
|
|
|
|
CodeStub::Major major_key = CodeStub::GetMajorKey(code);
|
2014-08-04 11:34:54 +00:00
|
|
|
DCHECK(major_key == CodeStub::MajorKeyFromKey(key));
|
2014-07-23 09:49:00 +00:00
|
|
|
out.AddFormatted(" %s, %s, ", Code::Kind2String(kind),
|
2015-08-24 10:23:39 +00:00
|
|
|
CodeStub::MajorName(major_key));
|
2015-07-10 08:49:14 +00:00
|
|
|
out.AddFormatted("minor: %d", minor_key);
|
2008-09-17 12:38:50 +00:00
|
|
|
} else {
|
|
|
|
out.AddFormatted(" %s", Code::Kind2String(kind));
|
2008-07-03 15:10:15 +00:00
|
|
|
}
|
2011-04-27 15:02:59 +00:00
|
|
|
if (rmode == RelocInfo::CODE_TARGET_WITH_ID) {
|
|
|
|
out.AddFormatted(" (id = %d)", static_cast<int>(relocinfo.data()));
|
|
|
|
}
|
2013-03-13 11:40:26 +00:00
|
|
|
} else if (RelocInfo::IsRuntimeEntry(rmode) &&
|
2013-02-25 14:46:09 +00:00
|
|
|
isolate->deoptimizer_data() != NULL) {
|
2010-12-07 11:31:57 +00:00
|
|
|
// A runtime entry reloinfo might be a deoptimization bailout.
|
|
|
|
Address addr = relocinfo.target_address();
|
2013-03-18 13:57:49 +00:00
|
|
|
int id = Deoptimizer::GetDeoptimizationId(isolate,
|
|
|
|
addr,
|
|
|
|
Deoptimizer::EAGER);
|
2010-12-07 11:31:57 +00:00
|
|
|
if (id == Deoptimizer::kNotDeoptimizationEntry) {
|
2013-03-18 13:57:49 +00:00
|
|
|
id = Deoptimizer::GetDeoptimizationId(isolate,
|
|
|
|
addr,
|
|
|
|
Deoptimizer::LAZY);
|
2012-12-18 16:25:45 +00:00
|
|
|
if (id == Deoptimizer::kNotDeoptimizationEntry) {
|
2013-05-14 11:45:33 +00:00
|
|
|
id = Deoptimizer::GetDeoptimizationId(isolate,
|
|
|
|
addr,
|
|
|
|
Deoptimizer::SOFT);
|
|
|
|
if (id == Deoptimizer::kNotDeoptimizationEntry) {
|
|
|
|
out.AddFormatted(" ;; %s", RelocInfo::RelocModeName(rmode));
|
|
|
|
} else {
|
|
|
|
out.AddFormatted(" ;; soft deoptimization bailout %d", id);
|
|
|
|
}
|
2012-12-18 16:25:45 +00:00
|
|
|
} else {
|
|
|
|
out.AddFormatted(" ;; lazy deoptimization bailout %d", id);
|
|
|
|
}
|
2010-12-07 11:31:57 +00:00
|
|
|
} else {
|
|
|
|
out.AddFormatted(" ;; deoptimization bailout %d", id);
|
|
|
|
}
|
2008-09-17 12:38:50 +00:00
|
|
|
} else {
|
|
|
|
out.AddFormatted(" ;; %s", RelocInfo::RelocModeName(rmode));
|
2008-07-03 15:10:15 +00:00
|
|
|
}
|
|
|
|
}
|
2014-09-25 08:33:24 +00:00
|
|
|
DumpBuffer(os, &out);
|
2008-07-03 15:10:15 +00:00
|
|
|
}
|
|
|
|
|
2011-08-11 13:59:29 +00:00
|
|
|
// Emit comments following the last instruction (if any).
|
|
|
|
if (it != NULL) {
|
|
|
|
for ( ; !it->done(); it->next()) {
|
|
|
|
if (RelocInfo::IsComment(it->rinfo()->rmode())) {
|
|
|
|
out.AddFormatted(" %s",
|
|
|
|
reinterpret_cast<const char*>(it->rinfo()->data()));
|
2014-09-25 08:33:24 +00:00
|
|
|
DumpBuffer(os, &out);
|
2011-08-11 13:59:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2008-07-03 15:10:15 +00:00
|
|
|
delete it;
|
2009-11-11 09:50:06 +00:00
|
|
|
return static_cast<int>(pc - begin);
|
2008-07-03 15:10:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-09-30 10:29:32 +00:00
|
|
|
int Disassembler::Decode(Isolate* isolate, std::ostream* os, byte* begin,
|
|
|
|
byte* end, Code* code) {
|
2008-07-03 15:10:15 +00:00
|
|
|
V8NameConverter v8NameConverter(code);
|
2014-09-25 08:33:24 +00:00
|
|
|
return DecodeIt(isolate, os, v8NameConverter, begin, end);
|
2008-07-03 15:10:15 +00:00
|
|
|
}
|
2008-07-30 08:49:36 +00:00
|
|
|
|
2008-07-03 15:10:15 +00:00
|
|
|
#else // ENABLE_DISASSEMBLER
|
|
|
|
|
2014-09-30 10:29:32 +00:00
|
|
|
int Disassembler::Decode(Isolate* isolate, std::ostream* os, byte* begin,
|
|
|
|
byte* end, Code* code) {
|
2013-02-25 14:46:09 +00:00
|
|
|
return 0;
|
|
|
|
}
|
2013-07-05 09:52:11 +00:00
|
|
|
|
2008-07-03 15:10:15 +00:00
|
|
|
#endif // ENABLE_DISASSEMBLER
|
|
|
|
|
2015-06-01 22:46:54 +00:00
|
|
|
} // namespace internal
|
|
|
|
} // namespace v8
|