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

Issue 536029: Fix a problem with const initialization in the top-level code generator.... (Closed)

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

Description

Fix a problem with const initialization in the top-level code generator. When initializing the special local variable containing the reference to the enclosing function in named functions we now (correctly) emit an INIT_CONST instead of INIT_VAR, and we correctly bail out in the top-level code generator. Also part of this change is adding missing statement position information for some statements in the top-level code generator. Committed: http://code.google.com/p/v8/source/detail?r=3587

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -79 lines) Patch
M src/arm/codegen-arm.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/arm/codegen-arm.cc View 3 chunks +89 lines, -77 lines 0 comments Download
M src/compiler.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/fast-codegen.cc View 6 chunks +6 lines, -0 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M src/ia32/fast-codegen-ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/parser.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/x64/codegen-x64.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
fschneider
10 years, 11 months ago (2010-01-12 16:23:25 UTC) #1
Kevin Millikin (Chromium)
LGTM once it passes all tests on the ARM simulator too. http://codereview.chromium.org/536029/diff/1/3 File src/codegen.cc (right): ...
10 years, 11 months ago (2010-01-12 16:32:25 UTC) #2
fschneider
10 years, 11 months ago (2010-01-12 17:16:03 UTC) #3
http://codereview.chromium.org/536029/diff/1/3
File src/codegen.cc (right):

http://codereview.chromium.org/536029/diff/1/3#newcode290
src/codegen.cc:290: StoreToSlot(scope_->function()->slot(), NOT_CONST_INIT);
On 2010/01/12 16:32:25, Kevin Millikin wrote:
> As we discussed, this won't work on ARM.  There is no StoreToSlot there.
> 
> I'd move it into the platform specific CodeGenerator::GenCode functions (just
> before calling CodeGenerator::ProcessDeclarations).

Done.

Powered by Google App Engine
This is Rietveld 408576698