aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2012-09-10 12:25:18 +0200
committerBernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>2013-11-01 04:21:34 +0100
commit8b5aad405810aa50e0085329cc1b6d143035ae50 (patch)
tree895f0cb053ecd13192e04cbf04cb29fbfe0cd573
parentf53dc205fc8ac4f3e92cb554eb15ef0588667a4b (diff)
downloadv8-linaro_android_4.4.2.tar.gz
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.cc6
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")