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

Side by Side Diff: test/cctest/test-ast-expression-visitor.cc

Issue 1858943002: Remove runtime flags for sloppy mode block scoping features (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/cctest/test-asm-validator.cc ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/ast/ast-expression-visitor.h" 10 #include "src/ast/ast-expression-visitor.h"
(...skipping 13 matching lines...) Expand all
24 i::Isolate* isolate = CcTest::i_isolate(); 24 i::Isolate* isolate = CcTest::i_isolate();
25 i::Factory* factory = isolate->factory(); 25 i::Factory* factory = isolate->factory();
26 26
27 i::Handle<i::String> source_code = 27 i::Handle<i::String> source_code =
28 factory->NewStringFromUtf8(i::CStrVector(source)).ToHandleChecked(); 28 factory->NewStringFromUtf8(i::CStrVector(source)).ToHandleChecked();
29 29
30 i::Handle<i::Script> script = factory->NewScript(source_code); 30 i::Handle<i::Script> script = factory->NewScript(source_code);
31 31
32 i::ParseInfo info(handles->main_zone(), script); 32 i::ParseInfo info(handles->main_zone(), script);
33 i::Parser parser(&info); 33 i::Parser parser(&info);
34 parser.set_allow_harmony_sloppy(true);
35 info.set_global(); 34 info.set_global();
36 info.set_lazy(false); 35 info.set_lazy(false);
37 info.set_allow_lazy_parsing(false); 36 info.set_allow_lazy_parsing(false);
38 info.set_toplevel(true); 37 info.set_toplevel(true);
39 38
40 CHECK(i::Compiler::ParseAndAnalyze(&info)); 39 CHECK(i::Compiler::ParseAndAnalyze(&info));
41 40
42 ExpressionTypeCollector( 41 ExpressionTypeCollector(
43 isolate, 42 isolate,
44 info.scope()->declarations()->at(0)->AsFunctionDeclaration()->fun(), dst) 43 info.scope()->declarations()->at(0)->AsFunctionDeclaration()->fun(), dst)
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 CHECK_EXPR(FunctionLiteral, Bounds::Unbounded()) { 413 CHECK_EXPR(FunctionLiteral, Bounds::Unbounded()) {
415 CHECK_EXPR(BinaryOperation, Bounds::Unbounded()) { 414 CHECK_EXPR(BinaryOperation, Bounds::Unbounded()) {
416 // Skip x + x 415 // Skip x + x
417 CHECK_SKIP(); 416 CHECK_SKIP();
418 CHECK_EXPR(Literal, Bounds::Unbounded()); 417 CHECK_EXPR(Literal, Bounds::Unbounded());
419 } 418 }
420 } 419 }
421 } 420 }
422 CHECK_TYPES_END 421 CHECK_TYPES_END
423 } 422 }
OLDNEW
« no previous file with comments | « test/cctest/test-asm-validator.cc ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698