|
Introduce LanguageMode, drop StrictMode.
This enables adding more language modes in the future.
For maximum flexibility, LanguageMode is a bitmask, so we're not restricted to
use a sequence of language modes which are progressively stricter, but we can
express the language mode as combination of features.
For now, LanguageMode can only be "sloppy" or "strict", and there are
STATIC_ASSERTS in places which need to change when more modes are added.
LanguageMode is a bit like the old LanguageMode when "extended" mode was still
around (see https://codereview.chromium.org/8417035 and
https://codereview.chromium.org/181543002 ) except that it's transmitted through
all the layers (there's no StrictModeFlag).
BUG=
Committed: https://crrev.com/c7851da4aefb644ab198ead1fa284932fd424797
Cr-Commit-Position: refs/heads/master@{#26419}
Total comments: 15
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+823 lines, -830 lines) |
Patch |
|
M |
src/accessors.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/api.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/arm/full-codegen-arm.cc
|
View
|
1
2
3
4
5
|
13 chunks |
+20 lines, -18 lines |
0 comments
|
Download
|
|
M |
src/arm/lithium-arm.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/arm/lithium-codegen-arm.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/arm/lithium-codegen-arm.cc
|
View
|
1
2
3
4
|
4 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/arm64/full-codegen-arm64.cc
|
View
|
1
2
3
4
5
|
14 chunks |
+19 lines, -17 lines |
0 comments
|
Download
|
|
M |
src/arm64/lithium-arm64.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/arm64/lithium-codegen-arm64.cc
|
View
|
1
2
3
4
|
4 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/ast.h
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/ast.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/code-factory.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/code-factory.cc
|
View
|
1
|
1 chunk |
+7 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/code-stubs.h
|
View
|
1
2
3
4
5
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/code-stubs-hydrogen.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/compilation-cache.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/compilation-cache.cc
|
View
|
1
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/compiler.h
|
View
|
1
2
3
4
5
|
3 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/compiler.cc
|
View
|
1
2
3
4
5
|
10 chunks |
+18 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/compiler/ast-graph-builder.h
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/compiler/ast-graph-builder.cc
|
View
|
1
2
3
4
5
|
21 chunks |
+33 lines, -32 lines |
0 comments
|
Download
|
|
M |
src/compiler/js-generic-lowering.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/compiler/js-inlining.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/compiler/js-operator.h
|
View
|
1
|
2 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
|
M |
src/compiler/js-operator.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+18 lines, -19 lines |
0 comments
|
Download
|
|
M |
src/contexts.h
|
View
|
1
|
1 chunk |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/elements.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/elements.cc
|
View
|
1
|
9 chunks |
+14 lines, -12 lines |
0 comments
|
Download
|
|
M |
src/execution.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
src/factory.cc
|
View
|
1
2
3
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/full-codegen.h
|
View
|
1
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/full-codegen.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/globals.h
|
View
|
1
2
3
4
5
|
1 chunk |
+19 lines, -1 line |
0 comments
|
Download
|
|
M |
src/hydrogen.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/hydrogen.cc
|
View
|
1
2
3
4
5
|
8 chunks |
+14 lines, -12 lines |
0 comments
|
Download
|
|
M |
src/hydrogen-instructions.h
|
View
|
1
2
3
4
5
|
9 chunks |
+18 lines, -22 lines |
0 comments
|
Download
|
|
M |
src/ia32/full-codegen-ia32.cc
|
View
|
1
2
3
4
5
|
13 chunks |
+19 lines, -17 lines |
0 comments
|
Download
|
|
M |
src/ia32/lithium-codegen-ia32.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/ia32/lithium-codegen-ia32.cc
|
View
|
1
2
3
4
|
4 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/ia32/lithium-ia32.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/ic/arm/ic-arm.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/ic/arm/ic-compiler-arm.cc
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/ic/arm64/ic-arm64.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/ic/arm64/ic-compiler-arm64.cc
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/ic/ia32/ic-compiler-ia32.cc
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/ic/ia32/ic-ia32.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/ic/ic.h
|
View
|
1
|
5 chunks |
+22 lines, -18 lines |
0 comments
|
Download
|
|
M |
src/ic/ic.cc
|
View
|
1
2
3
4
5
|
21 chunks |
+25 lines, -25 lines |
0 comments
|
Download
|
|
M |
src/ic/ic-compiler.h
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/ic/ic-compiler.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/ic/ic-inl.h
|
View
|
|
2 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/ic/x64/ic-compiler-x64.cc
|
View
|
1
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/ic/x64/ic-x64.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/isolate.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/objects.h
|
View
|
1
2
3
4
5
|
18 chunks |
+52 lines, -81 lines |
0 comments
|
Download
|
|
M |
src/objects.cc
|
View
|
1
2
3
4
5
|
66 chunks |
+153 lines, -175 lines |
0 comments
|
Download
|
|
M |
src/objects-inl.h
|
View
|
1
2
3
|
2 chunks |
+10 lines, -7 lines |
0 comments
|
Download
|
|
M |
src/parser.h
|
View
|
1
2
3
4
5
|
3 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/parser.cc
|
View
|
1
2
3
4
5
|
31 chunks |
+63 lines, -60 lines |
0 comments
|
Download
|
|
M |
src/preparse-data.h
|
View
|
1
|
5 chunks |
+11 lines, -20 lines |
0 comments
|
Download
|
|
M |
src/preparser.h
|
View
|
1
2
3
4
5
|
12 chunks |
+22 lines, -19 lines |
0 comments
|
Download
|
|
M |
src/preparser.cc
|
View
|
1
2
3
4
5
|
18 chunks |
+24 lines, -23 lines |
0 comments
|
Download
|
|
M |
src/runtime.js
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime.h
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime-classes.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+10 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime-compiler.cc
|
View
|
1
2
3
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime-debug.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/runtime/runtime-function.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime-object.cc
|
View
|
1
|
7 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime-scopes.cc
|
View
|
1
|
7 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime-utils.h
|
View
|
1
2
3
|
1 chunk |
+6 lines, -7 lines |
0 comments
|
Download
|
|
M |
src/scopeinfo.cc
|
View
|
1
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/scopes.h
|
View
|
1
2
3
4
5
|
4 chunks |
+9 lines, -7 lines |
0 comments
|
Download
|
|
M |
src/scopes.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/token.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/x64/full-codegen-x64.cc
|
View
|
1
2
3
4
5
|
13 chunks |
+19 lines, -17 lines |
0 comments
|
Download
|
|
M |
src/x64/lithium-codegen-x64.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/x64/lithium-codegen-x64.cc
|
View
|
1
2
3
|
4 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/x64/lithium-x64.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-parsing.cc
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
test/unittests/compiler/js-operator-unittest.cc
|
View
|
1
|
4 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
test/unittests/compiler/js-typed-lowering-unittest.cc
|
View
|
1
2
3
|
7 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
Total messages: 17 (5 generated)
|