Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(819)

Issue 1686963002: [Interpreter] Print constant pool in generate-bytecode-expectations (Closed)

Created:
4 years, 10 months ago by Stefano Sanfilippo
Modified:
4 years, 10 months ago
Reviewers:
oth, rmcilroy
CC:
v8-reviews_googlegroups.com, oth, rmcilroy
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Interpreter] Print constant pool in generate-bytecode-expectations This is a follow-up to https://crrev.com/1671863002, adding the capability to print the contents of the constant pool. The expected type of the pool is taken from command line, and it's either: * string/int/double: assume all constants have the specified type. This way, we can emit a meaningful representation, e.g. a quoted string for type string and so on. All the constants in the pool must have the same type, otherwise one or more CHECK() will fail and the program will eventually crash. * mixed: print the InstanceType tag instead of the actual value. This is the choice for those tests where the type of the constants in the pool is not uniform, however only a type tag is printed, not the actual value of the entries. SMIs are an exception, since they do not have an InstanceType tag, so kInstanceTypeDontCare is printed instead. In addition to that, functions Print{ExpectedSnippet,BytecodeSequence} have been extracted with no functional change. It's just for improving readability, since the code is becoming quite long. BUG=v8:4280 LOG=N Committed: https://crrev.com/db52dbbbfe10cbabfd74e1882ddf3c0b3c0ecf03 Cr-Commit-Position: refs/heads/master@{#33888}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Use AsEscapedUC16ForJSON for escaping UC16 strings. #

Patch Set 3 : Address reviewers' comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -59 lines) Patch
M test/cctest/interpreter/generate-bytecode-expectations.cc View 1 2 8 chunks +171 lines, -59 lines 0 comments Download

Messages

Total messages: 18 (10 generated)
Stefano Sanfilippo
Now we can print the contents of the constant pool. PTAL.
4 years, 10 months ago (2016-02-10 12:23:27 UTC) #7
rmcilroy
lgtm with some comments, thanks. https://codereview.chromium.org/1686963002/diff/40001/test/cctest/interpreter/generate-bytecode-expectations.cc File test/cctest/interpreter/generate-bytecode-expectations.cc (right): https://codereview.chromium.org/1686963002/diff/40001/test/cctest/interpreter/generate-bytecode-expectations.cc#newcode193 test/cctest/interpreter/generate-bytecode-expectations.cc:193: } nit - move ...
4 years, 10 months ago (2016-02-10 15:20:33 UTC) #8
Stefano Sanfilippo
https://codereview.chromium.org/1686963002/diff/40001/test/cctest/interpreter/generate-bytecode-expectations.cc File test/cctest/interpreter/generate-bytecode-expectations.cc (right): https://codereview.chromium.org/1686963002/diff/40001/test/cctest/interpreter/generate-bytecode-expectations.cc#newcode193 test/cctest/interpreter/generate-bytecode-expectations.cc:193: } On 2016/02/10 15:20:32, rmcilroy wrote: > nit - ...
4 years, 10 months ago (2016-02-10 15:40:16 UTC) #9
oth
This is looking good. Is there anything that prevents deriving the constant pool type from ...
4 years, 10 months ago (2016-02-11 10:38:10 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686963002/70001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686963002/70001
4 years, 10 months ago (2016-02-11 11:00:18 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:70001)
4 years, 10 months ago (2016-02-11 11:26:50 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:70001)
4 years, 10 months ago (2016-02-11 11:26:51 UTC) #16
commit-bot: I haz the power
4 years, 10 months ago (2016-02-11 11:27:21 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/db52dbbbfe10cbabfd74e1882ddf3c0b3c0ecf03
Cr-Commit-Position: refs/heads/master@{#33888}

Powered by Google App Engine
This is Rietveld 408576698