Fix GCC 4.7 (C++11) compilation.
Original patch by Olivier Goffart <ogoffart@kde.org>. BUG=v8:2136 TEST= Review URL: https://chromiumcodereview.appspot.com/10387210 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11600 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
9dedc37b09
commit
ee17b195a4
@ -3606,9 +3606,9 @@ void HeapSnapshotJSONSerializer::SerializeSnapshot() {
|
|||||||
writer_->AddString(",\"meta\":");
|
writer_->AddString(",\"meta\":");
|
||||||
// The object describing node serialization layout.
|
// The object describing node serialization layout.
|
||||||
// We use a set of macros to improve readability.
|
// We use a set of macros to improve readability.
|
||||||
#define JSON_A(s) "["s"]"
|
#define JSON_A(s) "[" s "]"
|
||||||
#define JSON_O(s) "{"s"}"
|
#define JSON_O(s) "{" s "}"
|
||||||
#define JSON_S(s) "\""s"\""
|
#define JSON_S(s) "\"" s "\""
|
||||||
writer_->AddString(JSON_O(
|
writer_->AddString(JSON_O(
|
||||||
JSON_S("node_fields") ":" JSON_A(
|
JSON_S("node_fields") ":" JSON_A(
|
||||||
JSON_S("type") ","
|
JSON_S("type") ","
|
||||||
|
@ -1684,7 +1684,7 @@ int DisassemblerX64::InstructionDecode(v8::internal::Vector<char> out_buffer,
|
|||||||
default:
|
default:
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
}
|
}
|
||||||
AppendToBuffer("test%c rax,0x%"V8_PTR_PREFIX"x",
|
AppendToBuffer("test%c rax,0x%" V8_PTR_PREFIX "x",
|
||||||
operand_size_code(),
|
operand_size_code(),
|
||||||
value);
|
value);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user