Index: src/x64/disasm-x64.cc |
=================================================================== |
--- src/x64/disasm-x64.cc (revision 3427) |
+++ src/x64/disasm-x64.cc (working copy) |
@@ -176,7 +176,7 @@ |
InstructionDesc instructions_[256]; |
void Clear(); |
void Init(); |
- void CopyTable(ByteMnemonic bm[], InstructionType type); |
+ void CopyTable(const ByteMnemonic bm[], InstructionType type); |
void SetTableRange(InstructionType type, byte start, byte end, bool byte_size, |
const char* mnem); |
void AddJumpConditionalShort(); |
@@ -211,7 +211,8 @@ |
} |
-void InstructionTable::CopyTable(ByteMnemonic bm[], InstructionType type) { |
+void InstructionTable::CopyTable(const ByteMnemonic bm[], |
+ InstructionType type) { |
for (int i = 0; bm[i].b >= 0; i++) { |
InstructionDesc* id = &instructions_[bm[i].b]; |
id->mnem = bm[i].mnem; |
@@ -1513,7 +1514,8 @@ |
const char* NameConverter::NameOfAddress(byte* addr) const { |
- static v8::internal::EmbeddedVector<char, 32> tmp_buffer; |
+ v8::internal::EmbeddedVector<char, 32>& tmp_buffer = |
+ v8::v8_context()->disassembler_data_->tmp_buffer_; |
v8::internal::OS::SNPrintF(tmp_buffer, "%p", addr); |
return tmp_buffer.start(); |
} |