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

Unified Diff: src/hydrogen.cc

Issue 10443114: Progress towards making Zones independent of Isolates and Threads. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix issues and nits. Created 8 years, 7 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
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index d880b02836df33384a97f3dd4cdaf53b0c2a92ae..ab9c8f43be8016402fb74f3537c0c6aef5874b45 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -687,7 +687,7 @@ HGraph::HGraph(CompilationInfo* info)
}
-Handle<Code> HGraph::Compile(CompilationInfo* info) {
+Handle<Code> HGraph::Compile(CompilationInfo* info, Zone* zone) {
int values = GetMaximumValueID();
if (values > LUnallocated::kMaxVirtualRegisters) {
if (FLAG_trace_bailout) {
@@ -696,7 +696,7 @@ Handle<Code> HGraph::Compile(CompilationInfo* info) {
return Handle<Code>::null();
}
LAllocator allocator(values, this);
- LChunkBuilder builder(info, this, &allocator);
+ LChunkBuilder builder(info, this, &allocator, info->isolate()->zone());
danno 2012/06/01 15:25:34 Please put the zone in the graph. It's a simple ch
sanjoy 2012/06/04 10:17:21 Done.
LChunk* chunk = builder.Build();
if (chunk == NULL) return Handle<Code>::null();
@@ -708,7 +708,7 @@ Handle<Code> HGraph::Compile(CompilationInfo* info) {
}
MacroAssembler assembler(info->isolate(), NULL, 0);
- LCodeGen generator(chunk, &assembler, info);
+ LCodeGen generator(chunk, &assembler, info, zone);
chunk->MarkEmptyBlocks();
« no previous file with comments | « src/hydrogen.h ('k') | src/ia32/lithium-codegen-ia32.h » ('j') | src/ia32/lithium-ia32.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698