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

Issue 1684073002: [Interpreter] Save and restore dispatch table pointer during calls. (Closed)

Created:
4 years, 10 months ago by rmcilroy
Modified:
4 years, 10 months ago
Reviewers:
oth, balazs.kilvady, Yang
CC:
v8-reviews_googlegroups.com, v8-mips-ports_googlegroups.com, v8-x87-ports_googlegroups.com, rmcilroy, v8-ppc-ports_googlegroups.com, oth
Base URL:
https://chromium.googlesource.com/v8/v8.git@int_assm
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Interpreter] Save and restore dispatch table pointer during calls. Saves and restores the dispatch pointer during calls to enable the debugger to switch the dispatch table used by a function during it's execution. Also moves the accumulator and context nodes to be Variables so that they will be properly merged across branches. BUG=v8:4280, v8:4690 LOG=N Committed: https://crrev.com/a2935d63dfc943fbf38602c5ce966e8dcb02307a Cr-Commit-Position: refs/heads/master@{#33894}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Update for off-heap dispatch table and address review comments #

Total comments: 6

Patch Set 3 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -57 lines) Patch
M src/arm/builtins-arm.cc View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M src/arm64/builtins-arm64.cc View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M src/deoptimizer.cc View 1 2 chunks +10 lines, -1 line 0 comments Download
M src/frames.h View 1 2 3 chunks +25 lines, -10 lines 0 comments Download
M src/frames.cc View 1 4 chunks +27 lines, -2 lines 0 comments Download
M src/ia32/builtins-ia32.cc View 1 2 chunks +5 lines, -2 lines 0 comments Download
M src/interpreter/interpreter-assembler.h View 1 chunk +3 lines, -2 lines 0 comments Download
M src/interpreter/interpreter-assembler.cc View 1 5 chunks +22 lines, -8 lines 0 comments Download
M src/mips/builtins-mips.cc View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M src/mips64/builtins-mips64.cc View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M src/ppc/builtins-ppc.cc View 1 2 chunks +6 lines, -3 lines 0 comments Download
M src/x64/builtins-x64.cc View 1 2 chunks +6 lines, -3 lines 0 comments Download
M src/x87/builtins-x87.cc View 1 2 chunks +5 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 21 (7 generated)
rmcilroy
Yang / Orion, PTAL, thanks.
4 years, 10 months ago (2016-02-10 12:33:40 UTC) #2
Yang
lgtm. Thanks! https://codereview.chromium.org/1684073002/diff/1/src/frames.h File src/frames.h (right): https://codereview.chromium.org/1684073002/diff/1/src/frames.h#newcode203 src/frames.h:203: static const int kContextFromRegisterPointer = 5 * ...
4 years, 10 months ago (2016-02-10 12:37:46 UTC) #3
Yang
https://codereview.chromium.org/1684073002/diff/1/src/ia32/builtins-ia32.cc File src/ia32/builtins-ia32.cc (right): https://codereview.chromium.org/1684073002/diff/1/src/ia32/builtins-ia32.cc#newcode614 src/ia32/builtins-ia32.cc:614: __ mov(ebx, Immediate(ExternalReference::interpreter_dispatch_table_address( Can we load this from the ...
4 years, 10 months ago (2016-02-10 13:59:25 UTC) #4
rmcilroy
https://codereview.chromium.org/1684073002/diff/1/src/ia32/builtins-ia32.cc File src/ia32/builtins-ia32.cc (right): https://codereview.chromium.org/1684073002/diff/1/src/ia32/builtins-ia32.cc#newcode614 src/ia32/builtins-ia32.cc:614: __ mov(ebx, Immediate(ExternalReference::interpreter_dispatch_table_address( On 2016/02/10 13:59:25, Yang wrote: > ...
4 years, 10 months ago (2016-02-10 16:41:48 UTC) #5
Yang
On 2016/02/10 16:41:48, rmcilroy wrote: > https://codereview.chromium.org/1684073002/diff/1/src/ia32/builtins-ia32.cc > File src/ia32/builtins-ia32.cc (right): > > https://codereview.chromium.org/1684073002/diff/1/src/ia32/builtins-ia32.cc#newcode614 > ...
4 years, 10 months ago (2016-02-10 16:44:39 UTC) #6
rmcilroy
I realised I hadn't updated this to take into account your change to make the ...
4 years, 10 months ago (2016-02-11 09:00:50 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1684073002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1684073002/20001
4 years, 10 months ago (2016-02-11 09:01:06 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-11 09:34:42 UTC) #11
balazs.kilvady
https://codereview.chromium.org/1684073002/diff/20001/src/mips/builtins-mips.cc File src/mips/builtins-mips.cc (right): https://codereview.chromium.org/1684073002/diff/20001/src/mips/builtins-mips.cc#newcode985 src/mips/builtins-mips.cc:985: __ Push(zero_reg); You could use __ Push(a0, zero_reg); to ...
4 years, 10 months ago (2016-02-11 10:44:01 UTC) #13
oth
lgtm once the tweaks in flight are done. Like the approach. Thanks. https://codereview.chromium.org/1684073002/diff/20001/src/frames.h File src/frames.h ...
4 years, 10 months ago (2016-02-11 11:13:06 UTC) #14
rmcilroy
https://codereview.chromium.org/1684073002/diff/20001/src/frames.h File src/frames.h (right): https://codereview.chromium.org/1684073002/diff/20001/src/frames.h#newcode748 src/frames.h:748: // Updates the current dispatch table pointer wiht |dispatch_table|. ...
4 years, 10 months ago (2016-02-11 12:30:12 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1684073002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1684073002/40001
4 years, 10 months ago (2016-02-11 12:39:22 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-11 13:10:51 UTC) #19
commit-bot: I haz the power
4 years, 10 months ago (2016-02-11 13:11:18 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a2935d63dfc943fbf38602c5ce966e8dcb02307a
Cr-Commit-Position: refs/heads/master@{#33894}

Powered by Google App Engine
This is Rietveld 408576698