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

Issue 2310103002: [Interpreter] Remove constant pool type in tests (Closed)

Created:
4 years, 3 months ago by Leszek
Modified:
4 years, 3 months ago
Reviewers:
rmcilroy
CC:
v8-reviews_googlegroups.com, rmcilroy
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Interpreter] Remove constant pool type in tests For historical reasons, the interpreter's bytecode expectations tests required a type for the constant pool. This had two disadvantages: 1. Strings and numbers were not visible in mixed pools, and 2. Mismatches of pool types (e.g. when rebaselining) would cause parser errors This removes the pool types, making everything 'mixed', but appending the values to string and number valued constants. Specifying a pool type in the *.golden header now prints a warning (for backwards compatibility). BUG=v8:5350 Committed: https://crrev.com/b28b7e13285aac6ab1a8c5d977d08300152504d7 Cr-Commit-Position: refs/heads/master@{#39216}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Remove warning for pool type #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2773 lines, -2989 lines) Patch
M test/cctest/interpreter/bytecode-expectations-printer.h View 3 chunks +1 line, -16 lines 0 comments Download
M test/cctest/interpreter/bytecode-expectations-printer.cc View 1 chunk +14 lines, -25 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ArrayLiterals.golden View 5 chunks +6 lines, -7 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ArrayLiteralsWide.golden View 2 chunks +257 lines, -258 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/AssignmentsInBinaryExpression.golden View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/BasicBlockToBoolean.golden View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/BasicLoops.golden View 2 chunks +3 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/BreakableBlocks.golden View 3 chunks +6 lines, -7 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CallGlobal.golden View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CallLookupSlot.golden View 2 chunks +4 lines, -5 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CallNew.golden View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CallRuntime.golden View 2 chunks +1 line, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ClassAndSuperClass.golden View 5 chunks +8 lines, -9 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ClassDeclarations.golden View 5 chunks +17 lines, -18 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CompoundExpressions.golden View 4 chunks +4 lines, -5 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Conditional.golden View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ConstVariable.golden View 4 chunks +3 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ConstVariableContextSlot.golden View 5 chunks +7 lines, -8 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ContextParameters.golden View 5 chunks +4 lines, -5 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ContextVariables.golden View 6 chunks +6 lines, -7 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CountOperators.golden View 8 chunks +11 lines, -12 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CreateArguments.golden View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CreateRestParameter.golden View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/DeadCodeRemoval.golden View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/DeclareGlobals.golden View 5 chunks +6 lines, -7 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Delete.golden View 5 chunks +7 lines, -8 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/DeleteLookupSlotInEval.golden View 3 chunks +2 lines, -3 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/DoDebugger.golden View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/DoExpression.golden View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Eval.golden View 2 chunks +2 lines, -3 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForIn.golden View 5 chunks +7 lines, -8 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForOf.golden View 5 chunks +46 lines, -47 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/FunctionLiterals.golden View 4 chunks +3 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Generators.golden View 3 chunks +21 lines, -22 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/GlobalCompoundExpressions.golden View 3 chunks +2 lines, -3 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/GlobalCountOperators.golden View 5 chunks +4 lines, -5 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/GlobalDelete.golden View 4 chunks +3 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/HeapNumberConstants.golden View 5 chunks +262 lines, -263 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/IfConditions.golden View 3 chunks +3 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/IntegerConstants.golden View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/JumpsRequiringConstantWideOperands.golden View 2 chunks +312 lines, -313 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LetVariable.golden View 4 chunks +3 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden View 5 chunks +7 lines, -8 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LoadGlobal.golden View 2 chunks +1 line, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LogicalExpressions.golden View 5 chunks +4 lines, -5 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LookupSlot.golden View 4 chunks +9 lines, -10 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LookupSlotInEval.golden View 5 chunks +4 lines, -5 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LookupSlotWideInEval.golden View 5 chunks +1028 lines, -1029 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/NewTarget.golden View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ObjectLiterals.golden View 16 chunks +37 lines, -38 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ObjectLiteralsWide.golden View 2 chunks +257 lines, -258 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/OuterContextVariables.golden View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Parameters.golden View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/PrimitiveExpressions.golden View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/PrimitiveReturnStatements.golden View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/PropertyCall.golden View 5 chunks +4 lines, -5 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/PropertyLoads.golden View 5 chunks +4 lines, -5 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/PropertyStores.golden View 10 chunks +12 lines, -13 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/RegExpLiterals.golden View 4 chunks +5 lines, -6 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/RegExpLiteralsWide.golden View 2 chunks +257 lines, -258 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/RemoveRedundantLdar.golden View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/StoreGlobal.golden View 7 chunks +8 lines, -9 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/StringConstants.golden View 4 chunks +4 lines, -5 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Switch.golden View 2 chunks +2 lines, -3 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ThisFunction.golden View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Throw.golden View 3 chunks +2 lines, -3 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/TopLevelObjectLiterals.golden View 2 chunks +5 lines, -6 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/TryCatch.golden View 3 chunks +6 lines, -7 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/TryFinally.golden View 3 chunks +5 lines, -6 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Typeof.golden View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/WideRegisters.golden View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/WithStatement.golden View 2 chunks +3 lines, -4 lines 0 comments Download
M test/cctest/interpreter/generate-bytecode-expectations.cc View 1 9 chunks +3 lines, -49 lines 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 71 chunks +71 lines, -144 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
Leszek
4 years, 3 months ago (2016-09-06 15:11:43 UTC) #4
Leszek
4 years, 3 months ago (2016-09-06 15:11:45 UTC) #5
rmcilroy
One comment, but looks great, thanks. LGTM https://codereview.chromium.org/2310103002/diff/1/test/cctest/interpreter/generate-bytecode-expectations.cc File test/cctest/interpreter/generate-bytecode-expectations.cc (right): https://codereview.chromium.org/2310103002/diff/1/test/cctest/interpreter/generate-bytecode-expectations.cc#newcode258 test/cctest/interpreter/generate-bytecode-expectations.cc:258: REPORT_WARNING("Pool types ...
4 years, 3 months ago (2016-09-06 15:28:57 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2310103002/20001
4 years, 3 months ago (2016-09-06 15:46:14 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-06 16:10:31 UTC) #12
commit-bot: I haz the power
4 years, 3 months ago (2016-09-06 16:11:37 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b28b7e13285aac6ab1a8c5d977d08300152504d7
Cr-Commit-Position: refs/heads/master@{#39216}

Powered by Google App Engine
This is Rietveld 408576698