Reviewers: Yang,
Description:
Merged r20436 into 3.25 branch.
tools: strip whitespace in gen-postmortem-metadata.py
R=yang...@chromium.org
BUG=
Please review this at https://codereview.chromium.org/222133004/
SVN Base: https://v8.googlecode.com/svn/branches/3.25
Affected files (+8, -4 lines):
M src/version.cc
M tools/gen-postmortem-metadata.py
Index: src/version.cc
diff --git a/src/version.cc b/src/version.cc
index
d06bfed08b3e60626dfa902e43091477f5052b2b..d7324e34467f374429b06be42a3691aece933bd7
100644
--- a/src/version.cc
+++ b/src/version.cc
@@ -35,7 +35,7 @@
#define MAJOR_VERSION 3
#define MINOR_VERSION 25
#define BUILD_NUMBER 28
-#define PATCH_LEVEL 2
+#define PATCH_LEVEL 3
// Use 1 for candidates and 0 otherwise.
// (Boolean macro values are not supported by all preprocessors.)
#define IS_CANDIDATE_VERSION 0
Index: tools/gen-postmortem-metadata.py
diff --git a/tools/gen-postmortem-metadata.py
b/tools/gen-postmortem-metadata.py
index
2a42da53555895cbcc53c9c51cb5f71802be27f5..fff2e34b7c6b78cc74421633bbf982add465314f
100644
--- a/tools/gen-postmortem-metadata.py
+++ b/tools/gen-postmortem-metadata.py
@@ -434,9 +434,13 @@ def load_fields():
# Emit a block of constants.
#
def emit_set(out, consts):
- for ii in range(0, len(consts)):
- out.write('int v8dbg_%s = %s;\n' %
- (consts[ii]['name'], consts[ii]['value']));
+ # Fix up overzealous parses. This could be done inside the
+ # parsers but as there are several, it's easiest to do it here.
+ ws = re.compile('\s+')
+ for const in consts:
+ name = ws.sub('', const['name'])
+ value = ws.sub('', str(const['value'])) # Can be a number.
+ out.write('int v8dbg_%s = %s;\n' % (name, value))
out.write('\n');
#
--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.