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

Issue 6390003: Introduce a hydrogen value for contexts, support context slot assignment. (Closed)

Created:
9 years, 11 months ago by Kevin Millikin (Chromium)
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Introduce a hydrogen value for contexts, support context slot assignment. Each context in the context chain has a corresponding hydrogen value. The context values are used for global object lookup and context slot lookup. Add simple (non-compound) assignment to context slots. Committed: http://code.google.com/p/v8/source/detail?r=6615

Patch Set 1 #

Total comments: 9

Patch Set 2 : Rebased to HEAD, cleaned up, and ported. #

Patch Set 3 : Sorted Lithium instructions names. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+475 lines, -332 lines) Patch
M src/arm/lithium-arm.h View 1 2 9 chunks +68 lines, -124 lines 0 comments Download
M src/arm/lithium-arm.cc View 1 3 chunks +40 lines, -4 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 2 chunks +34 lines, -4 lines 0 comments Download
M src/hydrogen.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/hydrogen.cc View 1 7 chunks +60 lines, -32 lines 1 comment Download
M src/hydrogen-instructions.h View 1 11 chunks +85 lines, -29 lines 0 comments Download
M src/hydrogen-instructions.cc View 1 1 chunk +9 lines, -1 line 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 2 chunks +35 lines, -5 lines 0 comments Download
M src/ia32/lithium-ia32.h View 1 8 chunks +69 lines, -124 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 4 chunks +45 lines, -5 lines 2 comments Download
M src/x64/lithium-x64.h View 1 1 chunk +6 lines, -2 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 4 chunks +22 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Kevin Millikin (Chromium)
Request for comment. The code needs some refactoring and needs to be ported.
9 years, 11 months ago (2011-01-27 13:36:25 UTC) #1
antonm
Nice and thanks. http://codereview.chromium.org/6390003/diff/1/src/hydrogen.cc File src/hydrogen.cc (right): http://codereview.chromium.org/6390003/diff/1/src/hydrogen.cc#newcode3524 src/hydrogen.cc:3524: int context_chain_length = should we refactor ...
9 years, 11 months ago (2011-01-27 14:00:07 UTC) #2
Vitaly Repeshko
Drive by suggestion. http://codereview.chromium.org/6390003/diff/1/src/ia32/lithium-ia32.cc File src/ia32/lithium-ia32.cc (right): http://codereview.chromium.org/6390003/diff/1/src/ia32/lithium-ia32.cc#newcode1682 src/ia32/lithium-ia32.cc:1682: bool skip_write_barrier = stored_value->type().IsSmi() || Add ...
9 years, 11 months ago (2011-01-27 14:05:21 UTC) #3
fschneider
LGTM. http://codereview.chromium.org/6390003/diff/1/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): http://codereview.chromium.org/6390003/diff/1/src/hydrogen-instructions.h#newcode2645 src/hydrogen-instructions.h:2645: virtual Representation RequiredInputRepresentation(int index) const { I think ...
9 years, 11 months ago (2011-01-28 11:54:50 UTC) #4
Kevin Millikin (Chromium)
http://codereview.chromium.org/6390003/diff/1/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): http://codereview.chromium.org/6390003/diff/1/src/hydrogen-instructions.h#newcode2645 src/hydrogen-instructions.h:2645: virtual Representation RequiredInputRepresentation(int index) const { On 2011/01/28 11:54:50, ...
9 years, 10 months ago (2011-02-03 08:37:23 UTC) #5
Kevin Millikin (Chromium)
Comments addressed and ported to the other architectures (implemented on ARM, unimplemented on x64).
9 years, 10 months ago (2011-02-03 11:25:40 UTC) #6
fschneider
LGTM. http://codereview.chromium.org/6390003/diff/14001/src/ia32/lithium-ia32.cc File src/ia32/lithium-ia32.cc (right): http://codereview.chromium.org/6390003/diff/14001/src/ia32/lithium-ia32.cc#newcode1696 src/ia32/lithium-ia32.cc:1696: context = UseRegisterAtStart(instr->context()); UseTempRegister if it is overwritten.
9 years, 10 months ago (2011-02-03 13:08:02 UTC) #7
fschneider
LGTM. http://codereview.chromium.org/6390003/diff/14001/src/ia32/lithium-ia32.cc File src/ia32/lithium-ia32.cc (right): http://codereview.chromium.org/6390003/diff/14001/src/ia32/lithium-ia32.cc#newcode1696 src/ia32/lithium-ia32.cc:1696: context = UseRegisterAtStart(instr->context()); UseTempRegister if it is overwritten.
9 years, 10 months ago (2011-02-03 13:08:02 UTC) #8
antonm
LGTM http://codereview.chromium.org/6390003/diff/14001/src/hydrogen.cc File src/hydrogen.cc (left): http://codereview.chromium.org/6390003/diff/14001/src/hydrogen.cc#oldcode2976 src/hydrogen.cc:2976: // TODO(antonm): if slot's value is not modified ...
9 years, 10 months ago (2011-02-03 13:14:29 UTC) #9
Kevin Millikin (Chromium)
9 years, 10 months ago (2011-02-04 11:49:09 UTC) #10
http://codereview.chromium.org/6390003/diff/14001/src/ia32/lithium-ia32.cc
File src/ia32/lithium-ia32.cc (right):

http://codereview.chromium.org/6390003/diff/14001/src/ia32/lithium-ia32.cc#ne...
src/ia32/lithium-ia32.cc:1696: context = UseRegisterAtStart(instr->context());
On 2011/02/03 13:08:02, fschneider wrote:
> UseTempRegister if it is overwritten.

Thanks, very good catch.

Powered by Google App Engine
This is Rietveld 408576698