Commit 46f98c71 authored by jochen's avatar jochen Committed by Commit bot

Rename internal ParseLazy to DoParseLazy to match DoParseProgram

R=verwaest@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2201093004
Cr-Commit-Position: refs/heads/master@{#38310}
parent 437cf794
...@@ -1080,7 +1080,7 @@ FunctionLiteral* Parser::ParseLazy(Isolate* isolate, ParseInfo* info) { ...@@ -1080,7 +1080,7 @@ FunctionLiteral* Parser::ParseLazy(Isolate* isolate, ParseInfo* info) {
stream.reset(new GenericStringUtf16CharacterStream( stream.reset(new GenericStringUtf16CharacterStream(
source, shared_info->start_position(), shared_info->end_position())); source, shared_info->start_position(), shared_info->end_position()));
} }
result = ParseLazy(isolate, info, stream.get()); result = DoParseLazy(isolate, info, stream.get());
} }
if (FLAG_trace_parse && result != NULL) { if (FLAG_trace_parse && result != NULL) {
...@@ -1104,8 +1104,8 @@ static FunctionLiteral::FunctionType ComputeFunctionType( ...@@ -1104,8 +1104,8 @@ static FunctionLiteral::FunctionType ComputeFunctionType(
return FunctionLiteral::kAnonymousExpression; return FunctionLiteral::kAnonymousExpression;
} }
FunctionLiteral* Parser::ParseLazy(Isolate* isolate, ParseInfo* info, FunctionLiteral* Parser::DoParseLazy(Isolate* isolate, ParseInfo* info,
Utf16CharacterStream* source) { Utf16CharacterStream* source) {
Handle<SharedFunctionInfo> shared_info = info->shared_info(); Handle<SharedFunctionInfo> shared_info = info->shared_info();
scanner_.Initialize(source); scanner_.Initialize(source);
DCHECK_NULL(scope_state_); DCHECK_NULL(scope_state_);
......
...@@ -749,8 +749,8 @@ class Parser : public ParserBase<ParserTraits> { ...@@ -749,8 +749,8 @@ class Parser : public ParserBase<ParserTraits> {
FunctionLiteral* ParseProgram(Isolate* isolate, ParseInfo* info); FunctionLiteral* ParseProgram(Isolate* isolate, ParseInfo* info);
FunctionLiteral* ParseLazy(Isolate* isolate, ParseInfo* info); FunctionLiteral* ParseLazy(Isolate* isolate, ParseInfo* info);
FunctionLiteral* ParseLazy(Isolate* isolate, ParseInfo* info, FunctionLiteral* DoParseLazy(Isolate* isolate, ParseInfo* info,
Utf16CharacterStream* source); Utf16CharacterStream* source);
// Called by ParseProgram after setting up the scanner. // Called by ParseProgram after setting up the scanner.
FunctionLiteral* DoParseProgram(ParseInfo* info); FunctionLiteral* DoParseProgram(ParseInfo* info);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment