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

Issue 2587393006: [runtime] Collect IC feedback in DefineDataPropertyInLiteral. (Closed)

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

Description

[runtime] Collect IC feedback in DefineDataPropertyInLiteral. Add a feedback vector slot for computed property names in object and class literals. Introduce new slot kind for storing computed property names. Change StaDataPropertyInLiteral to use the accumulator (again), so we don't exceed Bytecodes::kMaxOperands. We assume that most computed property names are symbols. Therefore we should see performance improvements, even if we deal with monomorphic ICs only. This CL only collects feedback but does not use it in Reduce() yet. BUG=v8:5624 Review-Url: https://codereview.chromium.org/2587393006 Cr-Commit-Position: refs/heads/master@{#42082} Committed: https://chromium.googlesource.com/v8/v8/+/81736c7161cf07d6baa2573d6bf5c9a1603a4dab

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Fix rebaseline #

Patch Set 4 : Use feedback in operator. #

Patch Set 5 : Collect feedback in runtime. #

Patch Set 6 : Work on ConfigureMonomorphic. #

Patch Set 7 : ConfigureMegamorphic() if map and name are different. #

Patch Set 8 : Use first available slot. #

Patch Set 9 : Minor clean ups, implement print and clear methods. #

Total comments: 2

Patch Set 10 : Add Get/SetSlot function for StoreDataProp. #

Patch Set 11 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -53 lines) Patch
M src/ast/ast.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M src/ast/ast.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +14 lines, -0 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -4 lines 0 comments Download
M src/compiler/code-assembler.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M src/compiler/js-generic-lowering.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M src/compiler/js-native-context-specialization.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/js-native-context-specialization.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -0 lines 0 comments Download
M src/compiler/js-operator.h View 1 2 3 4 5 6 7 8 2 chunks +24 lines, -1 line 0 comments Download
M src/compiler/js-operator.cc View 1 2 3 4 5 6 7 8 3 chunks +35 lines, -2 lines 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +15 lines, -3 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -12 lines 0 comments Download
M src/objects-printer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-object.cc View 1 2 3 4 5 6 7 8 1 chunk +17 lines, -1 line 0 comments Download
M src/type-feedback-vector.h View 1 2 3 4 5 6 7 8 3 chunks +27 lines, -0 lines 0 comments Download
M src/type-feedback-vector.cc View 1 2 3 4 5 6 7 8 3 chunks +29 lines, -0 lines 0 comments Download
M src/type-feedback-vector-inl.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ClassDeclarations.golden View 1 2 3 4 5 6 7 8 9 10 9 chunks +19 lines, -12 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ObjectLiterals.golden View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 61 (51 generated)
Franzi
Hi Michael, Please take a look. Thanks, Franzi
3 years, 11 months ago (2017-01-04 13:12:39 UTC) #36
mvstanton
LGTM, thanks! https://codereview.chromium.org/2587393006/diff/160001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/2587393006/diff/160001/src/interpreter/bytecode-generator.cc#newcode1759 src/interpreter/bytecode-generator.cc:1759: FunctionLiteral::NeedsHomeObject(property->value()) ? 1 : 0); nit: It ...
3 years, 11 months ago (2017-01-04 14:21:47 UTC) #39
Franzi
https://codereview.chromium.org/2587393006/diff/160001/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/2587393006/diff/160001/src/interpreter/bytecode-generator.cc#newcode1759 src/interpreter/bytecode-generator.cc:1759: FunctionLiteral::NeedsHomeObject(property->value()) ? 1 : 0); On 2017/01/04 14:21:47, mvstanton ...
3 years, 11 months ago (2017-01-04 14:51:09 UTC) #42
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/2587393006/180001
3 years, 11 months ago (2017-01-04 22:51:54 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/31682)
3 years, 11 months ago (2017-01-04 22:55:06 UTC) #49
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/2587393006/200001
3 years, 11 months ago (2017-01-05 06:42:28 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/31701)
3 years, 11 months ago (2017-01-05 06:46:20 UTC) #54
Benedikt Meurer
LGTM.
3 years, 11 months ago (2017-01-05 06:52:20 UTC) #56
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/2587393006/200001
3 years, 11 months ago (2017-01-05 06:52:49 UTC) #58
commit-bot: I haz the power
3 years, 11 months ago (2017-01-05 07:30:13 UTC) #61
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/v8/v8/+/81736c7161cf07d6baa2573d6bf5c9a1603...

Powered by Google App Engine
This is Rietveld 408576698