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

Issue 2409513003: [regexp] Port remaining JS functions in regexp.js (Closed)

Created:
4 years, 2 months ago by jgruber
Modified:
4 years, 2 months ago
Reviewers:
Yang
CC:
v8-reviews_googlegroups.com, rmcilroy
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[regexp] Port remaining JS functions in regexp.js This ports RegExpInitialize, IsRegExp, InternalMatch and InternalReplace to C++ / TurboFan. InternalMatch is in TurboFan because it calls RegExpExecStub and needs to construct a RegExpResult (which are, respectively, a PlatformStub and a CodeStubAssembler function). Except for LastMatchInfo (and GetSubstitution, which could be moved to string.js anytime), regexp.js is now completely empty. BUG=v8:5339 Committed: https://crrev.com/a10b4712c636b85715df812117d51440282cf67c Cr-Commit-Position: refs/heads/master@{#40277}

Patch Set 1 #

Patch Set 2 : Format and Rebaseline #

Total comments: 4

Patch Set 3 : Rebase #

Patch Set 4 : Fix allocation of internal match info #

Patch Set 5 : Move Initialize, InternalReplace and IsRegExp to runtime #

Patch Set 6 : Initialize array elements #

Patch Set 7 : Rebaseline bytecode expectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -131 lines) Patch
M src/bootstrapper.cc View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M src/builtins/builtins.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M src/builtins/builtins-regexp.cc View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M src/contexts.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M src/js/i18n.js View 1 2 3 4 16 chunks +26 lines, -30 lines 0 comments Download
M src/js/regexp.js View 3 chunks +0 lines, -83 lines 0 comments Download
M src/js/string.js View 1 2 3 4 4 chunks +2 lines, -8 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M src/runtime/runtime-regexp.cc View 1 2 3 4 5 4 chunks +60 lines, -9 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CallRuntime.golden View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 39 (31 generated)
jgruber
4 years, 2 months ago (2016-10-13 07:49:54 UTC) #8
Yang
lgtm https://codereview.chromium.org/2409513003/diff/20001/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2409513003/diff/20001/src/builtins/builtins-regexp.cc#newcode1683 src/builtins/builtins-regexp.cc:1683: compiler::Node* GetInternalMatchInfo(CodeStubAssembler* a, This allocates a new array ...
4 years, 2 months ago (2016-10-13 11:51:11 UTC) #18
jgruber
https://codereview.chromium.org/2409513003/diff/20001/src/builtins/builtins-regexp.cc File src/builtins/builtins-regexp.cc (right): https://codereview.chromium.org/2409513003/diff/20001/src/builtins/builtins-regexp.cc#newcode1683 src/builtins/builtins-regexp.cc:1683: compiler::Node* GetInternalMatchInfo(CodeStubAssembler* a, On 2016/10/13 11:51:11, Yang wrote: > ...
4 years, 2 months ago (2016-10-13 12:02:38 UTC) #19
jgruber
Moved all except InternalMatch to runtime, PTAL
4 years, 2 months ago (2016-10-13 13:21:59 UTC) #26
Yang
lgtm
4 years, 2 months ago (2016-10-13 13:55:21 UTC) #29
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/2409513003/120001
4 years, 2 months ago (2016-10-13 14:17:22 UTC) #35
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 2 months ago (2016-10-13 15:02:53 UTC) #37
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 15:03:33 UTC) #39
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/a10b4712c636b85715df812117d51440282cf67c
Cr-Commit-Position: refs/heads/master@{#40277}

Powered by Google App Engine
This is Rietveld 408576698