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

Side by Side Diff: test/cctest/asmjs/test-asm-typer.cc

Issue 2406803003: Get rid of ParseInfo::lazy (Closed)
Patch Set: restore dcheck Created 4 years, 2 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 | « src/parsing/parser.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 <cstring> 5 #include <cstring>
6 #include <functional> 6 #include <functional>
7 #include <iostream> 7 #include <iostream>
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/asmjs/asm-typer.h" 10 #include "src/asmjs/asm-typer.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 validation_type_(type), 45 validation_type_(type),
46 handles_(), 46 handles_(),
47 zone_(handles_.main_zone()), 47 zone_(handles_.main_zone()),
48 isolate_(CcTest::i_isolate()), 48 isolate_(CcTest::i_isolate()),
49 ast_value_factory_(zone_, isolate_->heap()->HashSeed()), 49 ast_value_factory_(zone_, isolate_->heap()->HashSeed()),
50 factory_(isolate_->factory()), 50 factory_(isolate_->factory()),
51 source_code_( 51 source_code_(
52 factory_->NewStringFromUtf8(CStrVector(source)).ToHandleChecked()), 52 factory_->NewStringFromUtf8(CStrVector(source)).ToHandleChecked()),
53 script_(factory_->NewScript(source_code_)) { 53 script_(factory_->NewScript(source_code_)) {
54 ParseInfo info(zone_, script_); 54 ParseInfo info(zone_, script_);
55 info.set_lazy(false);
56 info.set_allow_lazy_parsing(false); 55 info.set_allow_lazy_parsing(false);
57 info.set_toplevel(true); 56 info.set_toplevel(true);
58 info.set_ast_value_factory(&ast_value_factory_); 57 info.set_ast_value_factory(&ast_value_factory_);
59 info.set_ast_value_factory_owned(false); 58 info.set_ast_value_factory_owned(false);
60 Parser parser(&info); 59 Parser parser(&info);
61 60
62 if (!Compiler::ParseAndAnalyze(&info)) { 61 if (!Compiler::ParseAndAnalyze(&info)) {
63 std::cerr << "Failed to parse:\n" << source_ << "\n"; 62 std::cerr << "Failed to parse:\n" << source_ << "\n";
64 CHECK(false); 63 CHECK(false);
65 } 64 }
(...skipping 1927 matching lines...) Expand 10 before | Expand all | Expand 10 after
1993 for (size_t ii = 0; ii < arraysize(kTests); ++ii) { 1992 for (size_t ii = 0; ii < arraysize(kTests); ++ii) {
1994 if (!ValidationOf(Module(kTests[ii])) 1993 if (!ValidationOf(Module(kTests[ii]))
1995 ->FailsWithMessage("Can't assign to immutable symbol")) { 1994 ->FailsWithMessage("Can't assign to immutable symbol")) {
1996 std::cerr << "Test:\n" << kTests[ii]; 1995 std::cerr << "Test:\n" << kTests[ii];
1997 CHECK(false); 1996 CHECK(false);
1998 } 1997 }
1999 } 1998 }
2000 } 1999 }
2001 2000
2002 } // namespace 2001 } // namespace
OLDNEW
« no previous file with comments | « src/parsing/parser.cc ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698