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

Issue 2684043002: [turbofan] Use fast stub for ForInPrepare and ForInNext (Closed)

Created:
3 years, 10 months ago by Camillo Bruni
Modified:
3 years, 10 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Use fast stub for ForInPrepare and ForInNext Review-Url: https://codereview.chromium.org/2684043002 Cr-Commit-Position: refs/heads/master@{#43040} Committed: https://chromium.googlesource.com/v8/v8/+/d21ed46d01a4bbe3812184279bf0ba86137103a0

Patch Set 1 #

Total comments: 1

Patch Set 2 : add missing SmiUntag and remove ForInNext RT function #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -139 lines) Patch
M src/builtins/builtins.h View 12 chunks +112 lines, -109 lines 0 comments Download
M src/builtins/builtins.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M src/builtins/builtins-object.cc View 1 1 chunk +45 lines, -0 lines 2 comments Download
M src/code-factory.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/code-factory.cc View 2 chunks +13 lines, -1 line 0 comments Download
M src/compiler/code-assembler.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/code-assembler.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M src/compiler/js-generic-lowering.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/compiler/js-generic-lowering.cc View 2 chunks +9 lines, -5 lines 0 comments Download
M src/interface-descriptors.h View 2 chunks +16 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/runtime/runtime-forin.cc View 1 1 chunk +0 lines, -17 lines 0 comments Download

Messages

Total messages: 23 (15 generated)
Camillo Bruni
3 years, 10 months ago (2017-02-08 12:08:18 UTC) #4
danno
lgtm with comment https://codereview.chromium.org/2684043002/diff/1/src/builtins/builtins-object.cc File src/builtins/builtins-object.cc (right): https://codereview.chromium.org/2684043002/diff/1/src/builtins/builtins-object.cc#newcode928 src/builtins/builtins-object.cc:928: Return(ForInFilter(key, object, context)); Can't you remove ...
3 years, 10 months ago (2017-02-08 12:19:10 UTC) #7
Benedikt Meurer
LGTM, thanks.
3 years, 10 months ago (2017-02-08 13:27:56 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/2684043002/20001
3 years, 10 months ago (2017-02-08 14:25:18 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/v8/v8/+/d21ed46d01a4bbe3812184279bf0ba86137103a0
3 years, 10 months ago (2017-02-08 14:27:02 UTC) #19
rmcilroy
https://codereview.chromium.org/2684043002/diff/20001/src/builtins/builtins-object.cc File src/builtins/builtins-object.cc (right): https://codereview.chromium.org/2684043002/diff/20001/src/builtins/builtins-object.cc#newcode955 src/builtins/builtins-object.cc:955: TailCallRuntime(Runtime::kForInPrepare, context, object); Could we use this same code ...
3 years, 10 months ago (2017-02-08 23:37:22 UTC) #21
Camillo Bruni
https://codereview.chromium.org/2684043002/diff/20001/src/builtins/builtins-object.cc File src/builtins/builtins-object.cc (right): https://codereview.chromium.org/2684043002/diff/20001/src/builtins/builtins-object.cc#newcode955 src/builtins/builtins-object.cc:955: TailCallRuntime(Runtime::kForInPrepare, context, object); On 2017/02/08 at 23:37:22, rmcilroy wrote: ...
3 years, 10 months ago (2017-02-09 10:25:05 UTC) #22
rmcilroy
3 years, 10 months ago (2017-02-09 10:41:11 UTC) #23
Message was sent while issue was closed.
On 2017/02/09 10:25:05, Camillo Bruni wrote:
>
https://codereview.chromium.org/2684043002/diff/20001/src/builtins/builtins-o...
> File src/builtins/builtins-object.cc (right):
> 
>
https://codereview.chromium.org/2684043002/diff/20001/src/builtins/builtins-o...
> src/builtins/builtins-object.cc:955: TailCallRuntime(Runtime::kForInPrepare,
> context, object);
> On 2017/02/08 at 23:37:22, rmcilroy wrote:
> > Could we use this same code (inlined) in Interpreter::DoForInPrepare and /
or
> move some of the logic there in here, and then share it between the
interpreter
> and the builtin ?  (ditto with ForInNext).
> 
> I spent too much time chatting with people yesterday, but I planned to do that
> cleanup as well for ignition :P

Cool, thanks!

Powered by Google App Engine
This is Rietveld 408576698