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

Issue 8344082: Replace boolean indications of strict mode by an enum value. (Closed)

Created:
9 years, 2 months ago by Steven
Modified:
9 years, 1 month ago
Reviewers:
Yang
CC:
v8-dev
Visibility:
Public.

Description

Replace boolean indications of strict mode by an enum value. Committed: http://code.google.com/p/v8/source/detail?r=9746

Patch Set 1 #

Total comments: 6

Patch Set 2 : Some fixes and adapted the preparser. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -103 lines) Patch
M src/arm/full-codegen-arm.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/arm/lithium-arm.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/lithium-codegen-arm.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 chunk +1 line, -2 lines 0 comments Download
M src/ast.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/ast-inl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/compiler.h View 1 4 chunks +12 lines, -9 lines 0 comments Download
M src/compiler.cc View 1 5 chunks +15 lines, -6 lines 1 comment Download
M src/full-codegen.h View 1 chunk +4 lines, -2 lines 0 comments Download
M src/full-codegen.cc View 1 1 chunk +4 lines, -5 lines 0 comments Download
M src/hydrogen.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/hydrogen.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M src/hydrogen-instructions.h View 3 chunks +4 lines, -4 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/lithium-codegen-ia32.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 chunk +1 line, -2 lines 0 comments Download
M src/ia32/lithium-ia32.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/objects.h View 1 chunk +5 lines, -1 line 0 comments Download
M src/objects.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/objects-inl.h View 1 chunk +17 lines, -2 lines 0 comments Download
M src/parser.cc View 1 11 chunks +12 lines, -23 lines 0 comments Download
M src/preparser.h View 1 6 chunks +23 lines, -7 lines 0 comments Download
M src/runtime.h View 1 chunk +3 lines, -5 lines 0 comments Download
M src/runtime.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M src/scopes.h View 4 chunks +7 lines, -5 lines 0 comments Download
M src/scopes.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/x64/full-codegen-x64.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/x64/lithium-codegen-x64.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 chunk +1 line, -2 lines 0 comments Download
M src/x64/lithium-x64.h View 1 chunk +2 lines, -1 line 0 comments Download
A test/mjsunit/compiler/strict-recompile.js View 1 1 chunk +51 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Steven
PTAL.
9 years, 2 months ago (2011-10-20 13:35:06 UTC) #1
Yang
LGTM if comments address non-issues. http://codereview.chromium.org/8344082/diff/1/src/compiler.cc File src/compiler.cc (right): http://codereview.chromium.org/8344082/diff/1/src/compiler.cc#newcode602 src/compiler.cc:602: shared->set_strict_mode_flag(strict_mode); This is not ...
9 years, 2 months ago (2011-10-20 14:18:59 UTC) #2
Steven
Can you please take a look again. http://codereview.chromium.org/8344082/diff/1/src/compiler.cc File src/compiler.cc (right): http://codereview.chromium.org/8344082/diff/1/src/compiler.cc#newcode602 src/compiler.cc:602: shared->set_strict_mode_flag(strict_mode); Testing ...
9 years, 2 months ago (2011-10-21 13:59:00 UTC) #3
Yang
On 2011/10/21 13:59:00, Steven wrote: > Can you please take a look again. > > ...
9 years, 2 months ago (2011-10-21 15:25:45 UTC) #4
Yang
9 years, 2 months ago (2011-10-21 15:25:59 UTC) #5
forgot to send comment.

http://codereview.chromium.org/8344082/diff/8003/src/compiler.cc
File src/compiler.cc (right):

http://codereview.chromium.org/8344082/diff/8003/src/compiler.cc#newcode602
src/compiler.cc:602: if (strict_mode != kNonStrictMode) {
With the assertions in place, the if clause can actually be omitted now.

Powered by Google App Engine
This is Rietveld 408576698