diff options
author | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2012-09-10 12:25:18 +0200 |
---|---|---|
committer | Amit Pundir <amit.pundir@linaro.org> | 2013-07-25 14:17:20 +0530 |
commit | dca6dcf6f0996eb96e0742ff73c57adfba901769 (patch) | |
tree | f95fb3585e652c9d33408a43460cc4a32ecc2fbd | |
parent | 8c7c06b5cdac575f2288290cbad8c757ca078635 (diff) | |
download | v8-linaro_android_4.3.tar.gz |
v8: Fix build in ISO C++ 11 modelinaro_android_4.3.1linaro_android_4.3
Fixes building with -std=gnu++11 - this is useful for compatibility
with future compilers (where gnu++11 will be the default mode) and
to make additional language features/optimizations (e.g. constexpr)
available.
Change-Id: Ica4a220675f700c1f63d36f46460ca12168bdeb3
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r-- | src/profile-generator.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/profile-generator.cc b/src/profile-generator.cc index 2d0984ec..0dc162da 100644 --- a/src/profile-generator.cc +++ b/src/profile-generator.cc @@ -3559,9 +3559,9 @@ void HeapSnapshotJSONSerializer::SerializeNodes() { // The first (zero) item of nodes array is an object describing node // serialization layout. We use a set of macros to improve // readability. -#define JSON_A(s) "["s"]" -#define JSON_O(s) "{"s"}" -#define JSON_S(s) "\""s"\"" +#define JSON_A(s) "[" s "]" +#define JSON_O(s) "{" s "}" +#define JSON_S(s) "\"" s "\"" writer_->AddString(JSON_O( JSON_S("fields") ":" JSON_A( JSON_S("type") |