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

Issue 1524803003: [Interpreter] Add support for Load / Store to Lookup slots. (Closed)

Created:
5 years ago by mythria
Modified:
5 years ago
CC:
v8-reviews_googlegroups.com, oth, rmcilroy
Base URL:
https://chromium.googlesource.com/v8/v8.git@init_eval_impl
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Interpreter] Add support for Load / Store to Lookup slots. Adds support for loading and storing lookup variables. BUG=v8:4280 LOG=N Committed: https://crrev.com/a4162898d8d3570e656f981ad82a47035668bb07 Cr-Commit-Position: refs/heads/master@{#32913}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removes the interpreter runtime function to deal with multiple outputs. Uses projection instead. Re… #

Patch Set 3 : rebased the patch and fixed tests. #

Total comments: 13

Patch Set 4 : Addressed review comments. #

Total comments: 4

Patch Set 5 : Fixed nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+301 lines, -11 lines) Patch
M src/compiler/bytecode-graph-builder.cc View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M src/compiler/interpreter-assembler.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/compiler/interpreter-assembler.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 2 chunks +9 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 2 chunks +45 lines, -0 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 2 chunks +9 lines, -4 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M src/interpreter/interpreter.h View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 4 1 chunk +65 lines, -0 lines 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 1 2 3 3 chunks +83 lines, -6 lines 0 comments Download
M test/cctest/interpreter/test-interpreter.cc View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 1 chunk +8 lines, -1 line 0 comments Download

Messages

Total messages: 21 (7 generated)
mythria
Could you please review my changes. Thanks, Mythri
5 years ago (2015-12-14 15:59:08 UTC) #2
Michael Starzinger
https://codereview.chromium.org/1524803003/diff/1/src/runtime/runtime-interpreter.cc File src/runtime/runtime-interpreter.cc (right): https://codereview.chromium.org/1524803003/diff/1/src/runtime/runtime-interpreter.cc#newcode232 src/runtime/runtime-interpreter.cc:232: RUNTIME_FUNCTION(Runtime_InterpreterLoadLookupSlotNoReferenceErrorValue) { The first projection should actually be usable ...
5 years ago (2015-12-14 21:25:04 UTC) #3
Michael Starzinger
Also please don't base this CL on Ross' CL adding support to calling eval. I ...
5 years ago (2015-12-14 21:50:55 UTC) #4
mythria
I removed the interpreter runtime functions to handle multiple return values. I use projection instead. ...
5 years ago (2015-12-15 11:34:16 UTC) #6
Michael Starzinger
As discussed offline: Yes, approach looks good now. Thanks!
5 years ago (2015-12-15 11:52:16 UTC) #8
mythria
I rebased the patch, so there is no dependency on Ross's eval cl now. I ...
5 years ago (2015-12-15 15:25:40 UTC) #9
Michael Starzinger
LGTM.
5 years ago (2015-12-15 16:01:49 UTC) #10
rmcilroy
LGTM with comments addressed. https://codereview.chromium.org/1524803003/diff/40001/src/interpreter/bytecode-array-builder.cc File src/interpreter/bytecode-array-builder.cc (right): https://codereview.chromium.org/1524803003/diff/40001/src/interpreter/bytecode-array-builder.cc#newcode446 src/interpreter/bytecode-array-builder.cc:446: size_t name_index = GetConstantPoolEntry(name); Nice, ...
5 years ago (2015-12-15 16:44:33 UTC) #11
mythria
Thanks for your reviews. I addressed review comments. Thanks, Mythri https://codereview.chromium.org/1524803003/diff/40001/src/interpreter/bytecode-array-builder.cc File src/interpreter/bytecode-array-builder.cc (right): https://codereview.chromium.org/1524803003/diff/40001/src/interpreter/bytecode-array-builder.cc#newcode447 ...
5 years ago (2015-12-16 09:54:21 UTC) #12
rmcilroy
LGTM with two final nits, thanks! https://codereview.chromium.org/1524803003/diff/60001/src/interpreter/interpreter.h File src/interpreter/interpreter.h (right): https://codereview.chromium.org/1524803003/diff/60001/src/interpreter/interpreter.h#newcode99 src/interpreter/interpreter.h:99: void LdaLookupSlotHelper(Runtime::FunctionId function_id, ...
5 years ago (2015-12-16 12:07:25 UTC) #13
mythria
Thanks https://codereview.chromium.org/1524803003/diff/60001/src/interpreter/interpreter.h File src/interpreter/interpreter.h (right): https://codereview.chromium.org/1524803003/diff/60001/src/interpreter/interpreter.h#newcode99 src/interpreter/interpreter.h:99: void LdaLookupSlotHelper(Runtime::FunctionId function_id, On 2015/12/16 12:07:25, rmcilroy wrote: ...
5 years ago (2015-12-16 16:44:01 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1524803003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1524803003/80001
5 years ago (2015-12-16 17:23:04 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-12-16 17:24:24 UTC) #19
commit-bot: I haz the power
5 years ago (2015-12-16 17:25:07 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a4162898d8d3570e656f981ad82a47035668bb07
Cr-Commit-Position: refs/heads/master@{#32913}

Powered by Google App Engine
This is Rietveld 408576698