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

Unified Diff: src/parser.cc

Issue 760863003: Parser: Removing debug code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/parser.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index 22c0f5c142c918cc45043fc1b11efb6f4a46488d..83fb594bb021395d593cbde5a9d36cbb6ec3f925 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -835,7 +835,6 @@ FunctionLiteral* Parser::ParseProgram() {
// Initialize parser state.
CompleteParserRecorder recorder;
- debug_saved_compile_options_ = compile_options();
if (produce_cached_parse_data()) {
log_ = &recorder;
} else if (consume_cached_parse_data()) {
@@ -3828,13 +3827,6 @@ void Parser::SkipLazyFunctionBody(const AstRawString* function_name,
int* materialized_literal_count,
int* expected_property_count,
bool* ok) {
- // Temporary debugging code for tracking down a mystery crash which should
- // never happen. The crash happens on the line where we log the function in
- // the preparse data: log_->LogFunction(...). TODO(marja): remove this once
- // done.
- CHECK(materialized_literal_count);
- CHECK(expected_property_count);
- CHECK(debug_saved_compile_options_ == compile_options());
if (produce_cached_parse_data()) CHECK(log_);
int function_block_pos = position();
@@ -5148,7 +5140,6 @@ void Parser::ParseOnBackground() {
fni_ = new (zone()) FuncNameInferrer(ast_value_factory(), zone());
CompleteParserRecorder recorder;
- debug_saved_compile_options_ = compile_options();
if (produce_cached_parse_data()) log_ = &recorder;
DCHECK(info()->source_stream() != NULL);
« no previous file with comments | « src/parser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698