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

Issue 1300813005: [Interpreter] Add implementations of arithmetic binary op bytecodes. (Closed)

Created:
5 years, 4 months ago by rmcilroy
Modified:
5 years, 4 months ago
Reviewers:
oth, Michael Starzinger
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@mstar_v8h
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Interpreter] Add implementations of arithmetic binary op bytecodes. Adds implementations and tests for the following bytecodes: - Add - Sub - Mul - Div - Mod Also adds the Mod bytecode and adds support to BytecodeGenerator and BytecodeArrayBuilder to enable it's use. The current bytecodes always call through to the JS builtins. This also adds LoadObjectField and CallJSBuiltin operators to the InterpreterAssembler. BUG=v8:4280 LOG=N Committed: https://crrev.com/b5502099b7ff9d1f77d28c3ec26f2b40383d1492 Cr-Commit-Position: refs/heads/master@{#30352}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Review comments #

Patch Set 3 : Rebased #

Patch Set 4 : Fix passing wrong context to JS builtin #

Patch Set 5 : Fix unittest too... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+358 lines, -53 lines) Patch
M src/compiler/interpreter-assembler.h View 1 4 chunks +12 lines, -0 lines 0 comments Download
M src/compiler/interpreter-assembler.cc View 1 2 3 4 chunks +60 lines, -9 lines 0 comments Download
M src/compiler/raw-machine-assembler.h View 1 2 chunks +5 lines, -8 lines 0 comments Download
M src/compiler/raw-machine-assembler.cc View 1 4 chunks +45 lines, -25 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/interpreter/interpreter.h View 2 chunks +5 lines, -0 lines 0 comments Download
M src/interpreter/interpreter.cc View 5 chunks +27 lines, -9 lines 0 comments Download
M test/cctest/interpreter/test-interpreter.cc View 2 chunks +102 lines, -0 lines 0 comments Download
M test/unittests/compiler/instruction-selector-unittest.cc View 1 2 chunks +6 lines, -1 line 0 comments Download
M test/unittests/compiler/interpreter-assembler-unittest.cc View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
M test/unittests/compiler/node-test-utils.h View 1 chunk +13 lines, -0 lines 0 comments Download
M test/unittests/compiler/node-test-utils.cc View 1 chunk +32 lines, -0 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 28 (13 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1300813005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1300813005/1
5 years, 4 months ago (2015-08-19 14:32:24 UTC) #2
rmcilroy
Michael / Orion, could you please take a look, thanks.
5 years, 4 months ago (2015-08-19 14:33:21 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_avx2_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel/builds/3423) v8_linux_arm64_rel on ...
5 years, 4 months ago (2015-08-19 14:33:46 UTC) #6
Michael Starzinger
Looking good, just comments about the new RawMachineAssembler::CallJS ... https://codereview.chromium.org/1300813005/diff/1/src/compiler/interpreter-assembler.cc File src/compiler/interpreter-assembler.cc (right): https://codereview.chromium.org/1300813005/diff/1/src/compiler/interpreter-assembler.cc#newcode225 src/compiler/interpreter-assembler.cc:225: ...
5 years, 4 months ago (2015-08-19 17:18:57 UTC) #7
rmcilroy
Comments addressed, PTAL. https://codereview.chromium.org/1300813005/diff/1/src/compiler/interpreter-assembler.cc File src/compiler/interpreter-assembler.cc (right): https://codereview.chromium.org/1300813005/diff/1/src/compiler/interpreter-assembler.cc#newcode225 src/compiler/interpreter-assembler.cc:225: return CallJSBuiltin(builtin, receiver, args, 1); On ...
5 years, 4 months ago (2015-08-24 11:49:07 UTC) #8
Michael Starzinger
LGTM. Thanks.
5 years, 4 months ago (2015-08-24 14:06:06 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1300813005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1300813005/20001
5 years, 4 months ago (2015-08-24 14:16:21 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: v8_win_compile_dbg on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win_compile_dbg/builds/6916) v8_win_nosnap_shared_compile_rel on tryserver.v8 (JOB_FAILED, ...
5 years, 4 months ago (2015-08-24 14:17:41 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1300813005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1300813005/40001
5 years, 4 months ago (2015-08-25 07:40:17 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_dbg on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_dbg/builds/7956)
5 years, 4 months ago (2015-08-25 08:22:51 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1300813005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1300813005/60001
5 years, 4 months ago (2015-08-25 10:47:09 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_avx2_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel/builds/3627)
5 years, 4 months ago (2015-08-25 10:56:50 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1300813005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1300813005/80001
5 years, 4 months ago (2015-08-25 11:07:14 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 4 months ago (2015-08-25 11:31:14 UTC) #27
commit-bot: I haz the power
5 years, 4 months ago (2015-08-25 11:31:26 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b5502099b7ff9d1f77d28c3ec26f2b40383d1492
Cr-Commit-Position: refs/heads/master@{#30352}

Powered by Google App Engine
This is Rietveld 408576698