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

Unified Diff: src/compiler.cc

Issue 1002673002: Remove funky 2-stage initialization of ParserInfo and an adventurous memset. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Removed TODOs Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »
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 2aceedbd95de7822011d2444e3f9af6b9c995c24..212c4efbf2d39a86f278b7c0d76de25f0acc7778 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -1570,18 +1570,16 @@ bool CompilationPhase::ShouldProduceTraceOutput() const {
CompilationInfoWithZone::CompilationInfoWithZone(Handle<Script> script)
- : CompilationInfo((new ParseInfo(&zone_))->InitializeFromScript(script)) {}
+ : CompilationInfo(new ParseInfo(&zone_, script)) {}
CompilationInfoWithZone::CompilationInfoWithZone(Handle<JSFunction> function)
- : CompilationInfo(
- (new ParseInfo(&zone_))->InitializeFromJSFunction(function)) {}
+ : CompilationInfo(new ParseInfo(&zone_, function)) {}
CompilationInfoWithZone::CompilationInfoWithZone(
Handle<SharedFunctionInfo> shared_info)
- : CompilationInfo((new ParseInfo(&zone_))
- ->InitializeFromSharedFunctionInfo(shared_info)) {}
+ : CompilationInfo(new ParseInfo(&zone_, shared_info)) {}
CompilationInfoWithZone::~CompilationInfoWithZone() {
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698