diff options
Diffstat (limited to 'chromium/v8/tools/gen-postmortem-metadata.py')
-rw-r--r-- | chromium/v8/tools/gen-postmortem-metadata.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/chromium/v8/tools/gen-postmortem-metadata.py b/chromium/v8/tools/gen-postmortem-metadata.py index 28377273bad..fff2e34b7c6 100644 --- a/chromium/v8/tools/gen-postmortem-metadata.py +++ b/chromium/v8/tools/gen-postmortem-metadata.py @@ -100,6 +100,8 @@ consts_misc = [ { 'name': 'off_fp_context', 'value': 'StandardFrameConstants::kContextOffset' }, + { 'name': 'off_fp_constant_pool', + 'value': 'StandardFrameConstants::kConstantPoolOffset' }, { 'name': 'off_fp_marker', 'value': 'StandardFrameConstants::kMarkerOffset' }, { 'name': 'off_fp_function', @@ -432,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'); # |