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

Issue 1963663002: [interpreter] Add checks for source position to test-bytecode-generator. (Closed)

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

Description

[interpreter] Add checks for source position to test-bytecode-generator. Prints source position information alongside bytecode. BUG=v8:4280 LOG=N Committed: https://crrev.com/52600c6b1cc84c87d6f92f4b05e6f97af9143e60 Cr-Commit-Position: refs/heads/master@{#36171}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase. #

Patch Set 3 : Better diagnostics when tests fail and clean-up line ending issue. #

Patch Set 4 : Rebase. #

Patch Set 5 : Fix bad implicit cast. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17077 lines, -16972 lines) Patch
M test/cctest/interpreter/bytecode-expectations-printer.h View 1 2 3 4 3 chunks +7 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode-expectations-printer.cc View 1 2 3 4 11 chunks +45 lines, -18 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ArrayLiterals.golden View 1 2 3 4 4 chunks +54 lines, -54 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ArrayLiteralsWide.golden View 1 2 3 4 1 chunk +515 lines, -515 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/AssignmentsInBinaryExpression.golden View 1 2 3 4 8 chunks +143 lines, -143 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/BasicBlockToBoolean.golden View 1 2 3 4 3 chunks +41 lines, -41 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/BasicLoops.golden View 1 2 3 4 19 chunks +473 lines, -473 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/BreakableBlocks.golden View 1 2 3 4 4 chunks +128 lines, -128 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CallGlobal.golden View 1 2 3 4 2 chunks +20 lines, -20 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CallLookupSlot.golden View 1 2 3 4 1 chunk +33 lines, -33 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CallNew.golden View 1 2 3 4 3 chunks +25 lines, -25 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CallRuntime.golden View 1 2 3 4 4 chunks +23 lines, -23 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ClassAndSuperClass.golden View 1 2 3 4 4 chunks +142 lines, -142 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ClassDeclarations.golden View 1 2 3 4 4 chunks +147 lines, -147 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CompoundExpressions.golden View 1 2 3 4 5 chunks +57 lines, -57 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Conditional.golden View 1 2 3 4 2 chunks +18 lines, -18 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ConstVariable.golden View 1 2 3 4 4 chunks +49 lines, -49 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ConstVariableContextSlot.golden View 1 2 3 4 4 chunks +67 lines, -67 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ContextParameters.golden View 1 2 3 4 4 chunks +32 lines, -32 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ContextVariables.golden View 1 2 3 4 6 chunks +567 lines, -567 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CountOperators.golden View 1 2 3 4 11 chunks +119 lines, -119 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CreateArguments.golden View 1 2 3 4 6 chunks +48 lines, -48 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CreateRestParameter.golden View 1 2 3 4 4 chunks +46 lines, -46 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/DeadCodeRemoval.golden View 1 2 3 4 4 chunks +19 lines, -19 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/DeclareGlobals.golden View 1 2 3 4 4 chunks +53 lines, -53 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Delete.golden View 1 2 3 4 6 chunks +44 lines, -44 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/DeleteLookupSlotInEval.golden View 1 2 3 4 3 chunks +14 lines, -14 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/DoDebugger.golden View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/DoExpression.golden View 1 2 3 4 3 chunks +26 lines, -26 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Eval.golden View 1 2 3 4 1 chunk +27 lines, -27 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForIn.golden View 1 2 3 4 7 chunks +138 lines, -138 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForOf.golden View 1 2 3 4 4 chunks +637 lines, -637 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/FunctionLiterals.golden View 1 2 3 4 3 chunks +19 lines, -19 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Generators.golden View 1 2 3 4 3 chunks +564 lines, -564 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/GlobalCompoundExpressions.golden View 1 2 3 4 2 chunks +14 lines, -14 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/GlobalCountOperators.golden View 1 2 3 4 4 chunks +26 lines, -26 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/GlobalDelete.golden View 1 2 3 4 4 chunks +28 lines, -28 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/HeapNumberConstants.golden View 1 2 3 4 4 chunks +530 lines, -530 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/IfConditions.golden View 1 2 3 4 11 chunks +457 lines, -457 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/IntegerConstants.golden View 1 2 3 4 3 chunks +13 lines, -13 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/JumpsRequiringConstantWideOperands.golden View 1 2 3 4 1 chunk +653 lines, -653 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LetVariable.golden View 1 2 3 4 4 chunks +47 lines, -47 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LetVariableContextSlot.golden View 1 2 3 4 4 chunks +65 lines, -65 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LoadGlobal.golden View 1 2 3 4 4 chunks +396 lines, -396 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LogicalExpressions.golden View 1 2 3 4 13 chunks +630 lines, -630 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LookupSlot.golden View 1 2 3 4 3 chunks +86 lines, -86 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LookupSlotInEval.golden View 1 2 3 4 4 chunks +17 lines, -17 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LookupSlotWideInEval.golden View 1 2 3 4 4 chunks +2065 lines, -2065 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/NewTarget.golden View 1 2 3 4 2 chunks +19 lines, -19 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ObjectLiterals.golden View 1 2 3 4 15 chunks +207 lines, -207 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ObjectLiteralsWide.golden View 1 2 3 4 1 chunk +516 lines, -516 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/OuterContextVariables.golden View 1 2 3 4 2 chunks +21 lines, -21 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Parameters.golden View 1 2 3 4 7 chunks +25 lines, -25 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/PrimitiveExpressions.golden View 1 2 3 4 13 chunks +86 lines, -86 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/PrimitiveReturnStatements.golden View 1 2 3 4 10 chunks +30 lines, -30 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/PropertyCall.golden View 1 2 3 4 4 chunks +423 lines, -423 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/PropertyLoads.golden View 1 2 3 4 7 chunks +1195 lines, -1195 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/PropertyStores.golden View 1 2 3 4 11 chunks +2650 lines, -2650 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/RegExpLiterals.golden View 1 2 3 4 3 chunks +15 lines, -15 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/RegExpLiteralsWide.golden View 1 2 3 4 1 chunk +515 lines, -515 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/RemoveRedundantLdar.golden View 1 2 3 4 3 chunks +41 lines, -41 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/StoreGlobal.golden View 1 2 3 4 6 chunks +798 lines, -798 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/StringConstants.golden View 1 2 3 4 3 chunks +13 lines, -13 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Switch.golden View 1 2 3 4 8 chunks +296 lines, -296 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ThisFunction.golden View 1 2 3 4 2 chunks +9 lines, -9 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Throw.golden View 1 2 3 4 3 chunks +14 lines, -14 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/TopLevelObjectLiterals.golden View 1 2 3 4 1 chunk +19 lines, -19 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/TryCatch.golden View 1 2 3 4 2 chunks +54 lines, -54 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/TryFinally.golden View 1 2 3 4 3 chunks +118 lines, -118 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Typeof.golden View 1 2 3 4 2 chunks +9 lines, -9 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/UnaryOperators.golden View 1 2 3 4 7 chunks +73 lines, -73 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/WideRegisters.golden View 1 2 3 4 7 chunks +108 lines, -108 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/WithStatement.golden View 1 2 3 4 1 chunk +12 lines, -12 lines 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 1 2 3 4 97 chunks +440 lines, -367 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 30 (12 generated)
oth
Ross, PTAL. Stefano, FYI. Comments welcome. Thanks.
4 years, 7 months ago (2016-05-09 13:10:01 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1963663002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1963663002/1
4 years, 7 months ago (2016-05-09 13:12:11 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-09 13:38:04 UTC) #6
rmcilroy
LGTM, thanks. +Yang who was interested in adding source positions to the bytecode generator tests. ...
4 years, 7 months ago (2016-05-09 15:36:52 UTC) #7
Stefano Sanfilippo
Code looks good, I don't particularly fancy the output format with the surrounding /* */
4 years, 7 months ago (2016-05-09 15:45:46 UTC) #8
oth
On 2016/05/09 15:45:46, Stefano Sanfilippo wrote: > Code looks good, I don't particularly fancy the ...
4 years, 7 months ago (2016-05-09 16:14:44 UTC) #9
Stefano Sanfilippo
On 2016/05/09 16:14:44, oth wrote: > On 2016/05/09 15:45:46, Stefano Sanfilippo wrote: > > Code ...
4 years, 7 months ago (2016-05-09 16:25:39 UTC) #10
oth
On 2016/05/09 16:25:39, Stefano Sanfilippo wrote: > On 2016/05/09 16:14:44, oth wrote: > > On ...
4 years, 7 months ago (2016-05-10 06:03:24 UTC) #11
Yang
On 2016/05/10 06:03:24, oth wrote: > On 2016/05/09 16:25:39, Stefano Sanfilippo wrote: > > On ...
4 years, 7 months ago (2016-05-10 09:25:14 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1963663002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1963663002/20001
4 years, 7 months ago (2016-05-11 10:59:51 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_android_arm_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_android_arm_compile_rel/builds/17476) v8_linux64_rel_ng on ...
4 years, 7 months ago (2016-05-11 11:01:27 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1963663002/30001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1963663002/30001
4 years, 7 months ago (2016-05-11 11:09:03 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_android_arm_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_android_arm_compile_rel/builds/17477)
4 years, 7 months ago (2016-05-11 11:11:53 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1963663002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1963663002/40001
4 years, 7 months ago (2016-05-11 11:45:32 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-11 12:14:46 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1963663002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1963663002/40001
4 years, 7 months ago (2016-05-11 12:19:13 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:40001)
4 years, 7 months ago (2016-05-11 12:22:06 UTC) #28
commit-bot: I haz the power
4 years, 7 months ago (2016-05-11 12:22:24 UTC) #30
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/52600c6b1cc84c87d6f92f4b05e6f97af9143e60
Cr-Commit-Position: refs/heads/master@{#36171}

Powered by Google App Engine
This is Rietveld 408576698