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

Unified Diff: src/compiler.cc

Issue 11661008: Sync laziness between BuildFunctionInfo and MakeFunctionInfo. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | « no previous file | test/mjsunit/regress/regress-147497.js » ('j') | test/mjsunit/regress/regress-147497.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index ceac829cf80351d1a8d483b020047cd10a0df706..4d8cb9f7ebd428fbb8b50b93968c65ec3305d3cf 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -511,8 +511,9 @@ static Handle<SharedFunctionInfo> MakeFunctionInfo(CompilationInfo* info) {
// Only allow non-global compiles for eval.
ASSERT(info->is_eval() || info->is_global());
ParsingFlags flags = kNoParsingFlags;
- if (info->pre_parse_data() != NULL ||
- String::cast(script->source())->length() > FLAG_min_preparse_length) {
+ if ((info->pre_parse_data() != NULL ||
+ String::cast(script->source())->length() > FLAG_min_preparse_length) &&
+ !isolate->DebuggerHasBreakPoints()) {
Michael Starzinger 2013/01/14 15:16:03 To make this completely consistent with the predic
flags = kAllowLazy;
}
if (!ParserApi::Parse(info, flags)) {
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-147497.js » ('j') | test/mjsunit/regress/regress-147497.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698