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

Issue 12385014: Hydrogen stubs for array constructors (Closed)

Created:
7 years, 9 months ago by mvstanton
Modified:
7 years, 8 months ago
CC:
v8-dev
Visibility:
Public.

Description

Constructed arrays can be created with Hydrogen code stubs. The feature is still off by default (--optimize-constructed-arrays). BUG= Committed: https://code.google.com/p/v8/source/detail?r=14441

Patch Set 1 #

Patch Set 2 : More efficient code when number of arguments is known #

Total comments: 11

Patch Set 3 : Made return statement more efficient, avoid dispatch table in crankshaft #

Patch Set 4 : Rebase #

Patch Set 5 : Code review response for Hannes #

Patch Set 6 : TEMPORARY SET to aid in porting #

Patch Set 7 : With all ports done #

Total comments: 42

Patch Set 8 : More review response, hived off as many features as possible #

Patch Set 9 : REBASE #

Total comments: 9

Patch Set 10 : Address most feedback from Danno #

Patch Set 11 : REBASE #

Patch Set 12 : REBASE #

Total comments: 11

Patch Set 13 : Addressed comments, turned feature flag off #

Patch Set 14 : REBASE #

Patch Set 15 : We still generated the arrays with feature flag off. Fixed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1406 lines, -329 lines) Patch
M src/arm/builtins-arm.cc View 1 2 3 4 5 6 7 8 9 3 chunks +12 lines, -47 lines 0 comments Download
M src/arm/code-stubs-arm.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M src/arm/code-stubs-arm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +209 lines, -12 lines 0 comments Download
M src/arm/lithium-arm.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +24 lines, -15 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 4 5 6 7 8 9 4 chunks +16 lines, -8 lines 0 comments Download
M src/builtins.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M src/builtins.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -5 lines 0 comments Download
M src/code-stubs.h View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +81 lines, -11 lines 0 comments Download
M src/code-stubs.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +42 lines, -0 lines 0 comments Download
M src/code-stubs-hydrogen.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +109 lines, -18 lines 0 comments Download
M src/compiler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -5 lines 0 comments Download
M src/heap.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M src/hydrogen.h View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +59 lines, -4 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +261 lines, -38 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +13 lines, -0 lines 0 comments Download
M src/ia32/builtins-ia32.cc View 1 2 3 4 5 6 7 8 9 3 chunks +14 lines, -46 lines 0 comments Download
M src/ia32/code-stubs-ia32.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +210 lines, -11 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +15 lines, -4 lines 0 comments Download
M src/ia32/lithium-ia32.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +4 lines, -2 lines 0 comments Download
M src/isolate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +9 lines, -3 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -27 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +39 lines, -1 line 0 comments Download
M src/x64/builtins-x64.cc View 1 2 3 4 5 6 7 8 9 3 chunks +12 lines, -45 lines 0 comments Download
M src/x64/code-stubs-x64.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +211 lines, -12 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +14 lines, -3 lines 0 comments Download
M src/x64/lithium-x64.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M test/mjsunit/allocation-site-info.js View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +20 lines, -8 lines 0 comments Download
M test/mjsunit/elements-transition-hoisting.js View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
mvstanton
This isn't ready for review, but it could be useful for discussion points.
7 years, 9 months ago (2013-03-07 10:21:46 UTC) #1
mvstanton
Hi Danno, I'm going on vacation next week, and as discussed there are pieces of ...
7 years, 9 months ago (2013-03-22 16:44:59 UTC) #2
mvstanton
Hi guys, I'll ask Hannes to have a good look at this one, with Danno ...
7 years, 8 months ago (2013-04-10 09:03:43 UTC) #3
mvstanton
Adding Toon.
7 years, 8 months ago (2013-04-15 07:45:36 UTC) #4
mvstanton
Some comments after review with Hannes. https://codereview.chromium.org/12385014/diff/55001/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/12385014/diff/55001/src/hydrogen.cc#newcode1690 src/hydrogen.cc:1690: Isolate* isolate = ...
7 years, 8 months ago (2013-04-15 15:14:49 UTC) #5
mvstanton
Hi Hannes, here is the review response. Let me know how it goes. Best, --Michael ...
7 years, 8 months ago (2013-04-16 11:48:52 UTC) #6
Hannes Payer (out of office)
Looks pretty good already, another round of comments. I am waiting for your update which ...
7 years, 8 months ago (2013-04-18 11:14:39 UTC) #7
mvstanton
Hi Hannes, I pulled many things out and responded to comments. However, I couldn't easily ...
7 years, 8 months ago (2013-04-18 13:39:26 UTC) #8
mvstanton
Comments from review with Danno. https://codereview.chromium.org/12385014/diff/91001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/12385014/diff/91001/src/bootstrapper.cc#newcode904 src/bootstrapper.cc:904: isolate->builtins()->builtin(Builtins::kInternalArrayConstructCode)); wrong builtin. https://codereview.chromium.org/12385014/diff/91001/src/code-stubs-hydrogen.cc ...
7 years, 8 months ago (2013-04-18 14:43:01 UTC) #9
Hannes Payer (out of office)
lgtm with a few nits, coordinate with danno after addressing his comments https://codereview.chromium.org/12385014/diff/63028/src/hydrogen.cc File src/hydrogen.cc ...
7 years, 8 months ago (2013-04-23 11:42:50 UTC) #10
mvstanton
Thanks guys, Here is the update. The most serious change is in hydrogen-instructions.h, HChange::HChange(), responding ...
7 years, 8 months ago (2013-04-23 14:19:57 UTC) #11
danno
lgtm lgtm
7 years, 8 months ago (2013-04-25 14:49:27 UTC) #12
mvstanton
7 years, 8 months ago (2013-04-25 16:00:55 UTC) #13
Message was sent while issue was closed.
Committed patchset #15 manually as r14441 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698