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

Issue 2438683005: [regexp] Move RegExp.prototype[@@search] to TF (Closed)

Created:
4 years, 2 months ago by jgruber
Modified:
4 years, 1 month ago
CC:
v8-reviews_googlegroups.com, Benedikt Meurer
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[regexp] Move RegExp.prototype[@@search] to TF Implements upcoming changes to @@search according to https://github.com/tc39/ecma262/pull/627. This also adds SameValue to CodeStubAssembler and extracts a part of CSA::TruncateTaggedToFloat64. BUG=v8:5339 Committed: https://crrev.com/e29fcbee9cebada7423eee79a77bc91a320588be Cr-Commit-Position: refs/heads/master@{#41000}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Fix typo in lastindex restoration #

Total comments: 6

Patch Set 4 : SameValue, separate slow and fast paths #

Patch Set 5 : Remove unused variables #

Patch Set 6 : Refactor SameValue #

Patch Set 7 : [regexp] Move RegExp.prototype[@@search] to TF #

Total comments: 4

Patch Set 8 : Rename to TryTaggedToFloat64 #

Total comments: 35

Patch Set 9 : Address comments #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -112 lines) Patch
M src/bootstrapper.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/builtins/builtins.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/builtins/builtins-regexp.cc View 1 2 3 4 5 6 7 8 4 chunks +149 lines, -61 lines 0 comments Download
M src/code-stub-assembler.h View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -0 lines 0 comments Download
M src/code-stub-assembler.cc View 1 2 3 4 5 6 7 8 9 4 chunks +136 lines, -49 lines 0 comments Download
M test/mjsunit/regexp.js View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 76 (56 generated)
jgruber
4 years, 1 month ago (2016-10-24 13:03:25 UTC) #12
Yang
https://codereview.chromium.org/2438683005/diff/40001/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (left): https://codereview.chromium.org/2438683005/diff/40001/src/builtins/builtins-regexp.cc#oldcode1179 src/builtins/builtins-regexp.cc:1179: if (is_last_index_unchanged.IsNothing()) return isolate->pending_exception(); This does not seem correct. ...
4 years, 1 month ago (2016-10-25 07:30:13 UTC) #15
jgruber
https://codereview.chromium.org/2438683005/diff/40001/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (left): https://codereview.chromium.org/2438683005/diff/40001/src/builtins/builtins-regexp.cc#oldcode1179 src/builtins/builtins-regexp.cc:1179: if (is_last_index_unchanged.IsNothing()) return isolate->pending_exception(); On 2016/10/25 07:30:13, Yang wrote: ...
4 years, 1 month ago (2016-10-25 08:40:57 UTC) #16
jgruber
Rewrote this to use SameValue (as specced) and to have separate fast/slow paths. +ishell for ...
4 years, 1 month ago (2016-11-11 09:46:24 UTC) #32
Benedikt Meurer
https://codereview.chromium.org/2438683005/diff/120001/src/code-stub-assembler.cc File src/code-stub-assembler.cc (right): https://codereview.chromium.org/2438683005/diff/120001/src/code-stub-assembler.cc#newcode2279 src/code-stub-assembler.cc:2279: Node* CodeStubAssembler::TruncateNumberToFloat64(Node* value, This name is confusing as the ...
4 years, 1 month ago (2016-11-11 10:25:35 UTC) #37
jgruber
https://codereview.chromium.org/2438683005/diff/120001/src/code-stub-assembler.cc File src/code-stub-assembler.cc (right): https://codereview.chromium.org/2438683005/diff/120001/src/code-stub-assembler.cc#newcode2279 src/code-stub-assembler.cc:2279: Node* CodeStubAssembler::TruncateNumberToFloat64(Node* value, On 2016/11/11 10:25:35, Benedikt Meurer wrote: ...
4 years, 1 month ago (2016-11-11 10:57:40 UTC) #40
Igor Sheludko
https://codereview.chromium.org/2438683005/diff/140001/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2438683005/diff/140001/src/builtins/builtins-regexp.cc#newcode1192 src/builtins/builtins-regexp.cc:1192: Node* const previous_last_index = FastLoadLastIndex(a, context, receiver); Given that ...
4 years, 1 month ago (2016-11-11 16:13:21 UTC) #47
jgruber
Thanks for the thorough review Igor, some initial replies on your major points. Will fix ...
4 years, 1 month ago (2016-11-13 13:00:10 UTC) #48
jgruber
On 2016/11/13 13:00:10, jgruber wrote: > Thanks for the thorough review Igor, some initial replies ...
4 years, 1 month ago (2016-11-13 13:04:12 UTC) #50
Igor Sheludko
https://codereview.chromium.org/2438683005/diff/140001/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2438683005/diff/140001/src/builtins/builtins-regexp.cc#newcode1192 src/builtins/builtins-regexp.cc:1192: Node* const previous_last_index = FastLoadLastIndex(a, context, receiver); On 2016/11/13 ...
4 years, 1 month ago (2016-11-13 18:28:00 UTC) #51
jgruber
In this patchset: * A helper function to generate fast/slow paths * Unconditionally store on ...
4 years, 1 month ago (2016-11-15 10:02:29 UTC) #56
jgruber
Not rebasing for patch failures until comments are through (to preserve readability).
4 years, 1 month ago (2016-11-15 10:03:10 UTC) #57
Yang
https://codereview.chromium.org/2438683005/diff/140001/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2438683005/diff/140001/src/builtins/builtins-regexp.cc#newcode1197 src/builtins/builtins-regexp.cc:1197: a->GotoIf(a->SameValue(previous_last_index, smi_zero, context), &next); On 2016/11/13 18:27:59, Igor Sheludko ...
4 years, 1 month ago (2016-11-15 13:03:43 UTC) #59
Yang
On 2016/11/15 13:03:43, Yang wrote: > https://codereview.chromium.org/2438683005/diff/140001/src/builtins/builtins-regexp.cc > File src/builtins/builtins-regexp.cc (right): > > https://codereview.chromium.org/2438683005/diff/140001/src/builtins/builtins-regexp.cc#newcode1197 > ...
4 years, 1 month ago (2016-11-15 13:09:22 UTC) #60
Igor Sheludko
lgtm
4 years, 1 month ago (2016-11-15 13:21:59 UTC) #61
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/2438683005/180001
4 years, 1 month ago (2016-11-15 15:34:47 UTC) #68
commit-bot: I haz the power
Try jobs failed on following builders: v8_mac_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_mac_rel_ng/builds/12557)
4 years, 1 month ago (2016-11-15 15:37:38 UTC) #70
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/2438683005/180001
4 years, 1 month ago (2016-11-15 15:47:07 UTC) #72
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 1 month ago (2016-11-15 16:05:57 UTC) #74
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:34:31 UTC) #76
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/e29fcbee9cebada7423eee79a77bc91a320588be
Cr-Commit-Position: refs/heads/master@{#41000}

Powered by Google App Engine
This is Rietveld 408576698