 Chromium Code Reviews
 Chromium Code Reviews Issue 11661008:
  Sync laziness between BuildFunctionInfo and MakeFunctionInfo.  (Closed) 
  Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
    
  
    Issue 11661008:
  Sync laziness between BuildFunctionInfo and MakeFunctionInfo.  (Closed) 
  Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge| 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)) { |