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

Issue 1824993002: [builtins] Add support for JS builtins written in TurboFan. (Closed)

Created:
4 years, 9 months ago by Benedikt Meurer
Modified:
4 years, 9 months ago
Reviewers:
Michael Starzinger
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[builtins] Add support for JS builtins written in TurboFan. This CL adds support for builtins with JavaScript linkage written using the TurboFan CodeStubAssembler, but with a JSCall descriptor (which was already supported thanks to a previous patch by Ben Smith). As a first example, we convert the Math.sqrt builtin and thereby get rid of the %_MathSqrt intrinsic, which causes trouble for the representation selection pass in the JavaScript pipeline. R=mstarzinger@chromium.org Committed: https://crrev.com/43fe7d6854ef4a831cdaaf83d2897ac1ca54c066 Cr-Commit-Position: refs/heads/master@{#34989}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+252 lines, -122 lines) Patch
M src/bootstrapper.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/builtins.h View 1 5 chunks +23 lines, -5 lines 0 comments Download
M src/builtins.cc View 8 chunks +168 lines, -36 lines 0 comments Download
M src/compiler/code-stub-assembler.h View 3 chunks +5 lines, -0 lines 0 comments Download
M src/compiler/code-stub-assembler.cc View 2 chunks +12 lines, -0 lines 0 comments Download
M src/compiler/js-builtin-reducer.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/js-builtin-reducer.cc View 1 2 chunks +14 lines, -0 lines 0 comments Download
M src/compiler/js-intrinsic-lowering.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler/js-intrinsic-lowering.cc View 2 chunks +0 lines, -11 lines 0 comments Download
M src/compiler/typer.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/contexts.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/crankshaft/hydrogen.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/crankshaft/hydrogen.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M src/frames.cc View 1 3 chunks +10 lines, -3 lines 0 comments Download
M src/js/math.js View 6 chunks +4 lines, -11 lines 0 comments Download
M src/objects.h View 2 chunks +3 lines, -2 lines 0 comments Download
M src/objects-inl.h View 1 chunk +2 lines, -6 lines 0 comments Download
M src/runtime/runtime.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/runtime/runtime-maths.cc View 1 chunk +0 lines, -11 lines 0 comments Download
M test/cctest/compiler/test-code-stub-assembler.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M test/mjsunit/compiler/deopt-materialize-accumulator.js View 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/compiler/js-intrinsic-lowering-unittest.cc View 1 chunk +0 lines, -18 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Benedikt Meurer
4 years, 9 months ago (2016-03-22 12:00:49 UTC) #1
Benedikt Meurer
Hey Michi, Here's the CL we talked about. Mostly straight-forward. Please take a look. Thanks, ...
4 years, 9 months ago (2016-03-22 12:01:26 UTC) #2
Michael Starzinger
LGTM. https://codereview.chromium.org/1824993002/diff/1/src/builtins.cc File src/builtins.cc (right): https://codereview.chromium.org/1824993002/diff/1/src/builtins.cc#newcode2059 src/builtins.cc:2059: assembler->WordEqual(x_map, assembler->HeapNumberMapConstant()), Note that checking like this will ...
4 years, 9 months ago (2016-03-22 12:54:32 UTC) #3
Benedikt Meurer
Thanks. https://codereview.chromium.org/1824993002/diff/1/src/builtins.cc File src/builtins.cc (right): https://codereview.chromium.org/1824993002/diff/1/src/builtins.cc#newcode2059 src/builtins.cc:2059: assembler->WordEqual(x_map, assembler->HeapNumberMapConstant()), As discussed offline, this is in ...
4 years, 9 months ago (2016-03-22 13:01:18 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1824993002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1824993002/20001
4 years, 9 months ago (2016-03-22 13:02:12 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-22 13:25:16 UTC) #8
commit-bot: I haz the power
4 years, 9 months ago (2016-03-22 13:26:00 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/43fe7d6854ef4a831cdaaf83d2897ac1ca54c066
Cr-Commit-Position: refs/heads/master@{#34989}

Powered by Google App Engine
This is Rietveld 408576698