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

Issue 342058: Support for post-fix count operations (x++, x--) where x is a global... (Closed)

Created:
11 years, 1 month ago by fschneider
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Support for post-fix count operations (x++, x--) where x is a global variable for the top-level compiler. Committed: http://code.google.com/p/v8/source/detail?r=3194

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -7 lines) Patch
M src/arm/fast-codegen-arm.cc View 1 2 chunks +76 lines, -1 line 0 comments Download
M src/compiler.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M src/fast-codegen.cc View 1 1 chunk +0 lines, -5 lines 0 comments Download
M src/ia32/fast-codegen-ia32.cc View 1 1 chunk +73 lines, -0 lines 0 comments Download
M src/x64/fast-codegen-x64.cc View 1 1 chunk +72 lines, -0 lines 0 comments Download
M test/mjsunit/compiler/globals.js View 1 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
fschneider
11 years, 1 month ago (2009-10-30 16:19:39 UTC) #1
Kevin Millikin (Chromium)
LGTM.
11 years, 1 month ago (2009-10-31 20:19:05 UTC) #2
Kevin Millikin (Chromium)
http://codereview.chromium.org/342058/diff/1/3 File src/ia32/fast-codegen-ia32.cc (right): http://codereview.chromium.org/342058/diff/1/3#newcode937 Line 937: ASSERT(v->AsVariable() != NULL && v->AsVariable() != NULL); I'm ...
11 years, 1 month ago (2009-10-31 20:20:42 UTC) #3
William Hesse
LGTM. http://codereview.chromium.org/342058/diff/1/4 File src/compiler.cc (right): http://codereview.chromium.org/342058/diff/1/4#newcode844 Line 844: if (expr->is_prefix()) BAILOUT("Prefix CountOperation"); Putting an assert ...
11 years, 1 month ago (2009-11-01 15:33:28 UTC) #4
Kevin Millikin (Chromium)
11 years, 1 month ago (2009-11-01 17:45:50 UTC) #5
http://codereview.chromium.org/342058/diff/1/5
File src/x64/fast-codegen-x64.cc (right):

http://codereview.chromium.org/342058/diff/1/5#newcode963
Line 963: case Expression::kTest:
On 2009/11/01 15:33:28, William Hesse wrote:
> Could all the test contexts be implemented by a simple 
> pop(rax)
> Move(context, rax)?
> 

The code would be simpler, at the cost of popping then pushing for the two
hybrid test contexts.

I'd leave it like this for now.  We'll clearly have to revisit value contexts
and break them out by where the value already is (or where it wants to be).

Powered by Google App Engine
This is Rietveld 408576698