Pass zone explicitly to zone-allocation on x64 and ARM.

This is a very mechanical change to reduce the number of calls to
Isolate::Current that come with every plain new-allocation.

BUG=v8:1802
Review URL: https://chromiumcodereview.appspot.com/9491004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10857 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 3df99e7e
This diff is collapsed.
...@@ -2200,6 +2200,7 @@ class LChunkBuilder BASE_EMBEDDED { ...@@ -2200,6 +2200,7 @@ class LChunkBuilder BASE_EMBEDDED {
: chunk_(NULL), : chunk_(NULL),
info_(info), info_(info),
graph_(graph), graph_(graph),
zone_(graph->isolate()->zone()),
status_(UNUSED), status_(UNUSED),
current_instruction_(NULL), current_instruction_(NULL),
current_block_(NULL), current_block_(NULL),
...@@ -2229,6 +2230,7 @@ class LChunkBuilder BASE_EMBEDDED { ...@@ -2229,6 +2230,7 @@ class LChunkBuilder BASE_EMBEDDED {
LChunk* chunk() const { return chunk_; } LChunk* chunk() const { return chunk_; }
CompilationInfo* info() const { return info_; } CompilationInfo* info() const { return info_; }
HGraph* graph() const { return graph_; } HGraph* graph() const { return graph_; }
Zone* zone() const { return zone_; }
bool is_unused() const { return status_ == UNUSED; } bool is_unused() const { return status_ == UNUSED; }
bool is_building() const { return status_ == BUILDING; } bool is_building() const { return status_ == BUILDING; }
...@@ -2333,6 +2335,7 @@ class LChunkBuilder BASE_EMBEDDED { ...@@ -2333,6 +2335,7 @@ class LChunkBuilder BASE_EMBEDDED {
LChunk* chunk_; LChunk* chunk_;
CompilationInfo* info_; CompilationInfo* info_;
HGraph* const graph_; HGraph* const graph_;
Zone* zone_;
Status status_; Status status_;
HInstruction* current_instruction_; HInstruction* current_instruction_;
HBasicBlock* current_block_; HBasicBlock* current_block_;
......
...@@ -2321,7 +2321,7 @@ class LChunkBuilder BASE_EMBEDDED { ...@@ -2321,7 +2321,7 @@ class LChunkBuilder BASE_EMBEDDED {
: chunk_(NULL), : chunk_(NULL),
info_(info), info_(info),
graph_(graph), graph_(graph),
isolate_(graph->isolate()), zone_(graph->isolate()->zone()),
status_(UNUSED), status_(UNUSED),
current_instruction_(NULL), current_instruction_(NULL),
current_block_(NULL), current_block_(NULL),
...@@ -2351,7 +2351,7 @@ class LChunkBuilder BASE_EMBEDDED { ...@@ -2351,7 +2351,7 @@ class LChunkBuilder BASE_EMBEDDED {
LChunk* chunk() const { return chunk_; } LChunk* chunk() const { return chunk_; }
CompilationInfo* info() const { return info_; } CompilationInfo* info() const { return info_; }
HGraph* graph() const { return graph_; } HGraph* graph() const { return graph_; }
Zone* zone() { return isolate_->zone(); } Zone* zone() { return zone_; }
bool is_unused() const { return status_ == UNUSED; } bool is_unused() const { return status_ == UNUSED; }
bool is_building() const { return status_ == BUILDING; } bool is_building() const { return status_ == BUILDING; }
...@@ -2460,7 +2460,7 @@ class LChunkBuilder BASE_EMBEDDED { ...@@ -2460,7 +2460,7 @@ class LChunkBuilder BASE_EMBEDDED {
LChunk* chunk_; LChunk* chunk_;
CompilationInfo* info_; CompilationInfo* info_;
HGraph* const graph_; HGraph* const graph_;
Isolate* isolate_; Zone* zone_;
Status status_; Status status_;
HInstruction* current_instruction_; HInstruction* current_instruction_;
HBasicBlock* current_block_; HBasicBlock* current_block_;
......
This diff is collapsed.
...@@ -2181,6 +2181,7 @@ class LChunkBuilder BASE_EMBEDDED { ...@@ -2181,6 +2181,7 @@ class LChunkBuilder BASE_EMBEDDED {
: chunk_(NULL), : chunk_(NULL),
info_(info), info_(info),
graph_(graph), graph_(graph),
zone_(graph->isolate()->zone()),
status_(UNUSED), status_(UNUSED),
current_instruction_(NULL), current_instruction_(NULL),
current_block_(NULL), current_block_(NULL),
...@@ -2210,6 +2211,7 @@ class LChunkBuilder BASE_EMBEDDED { ...@@ -2210,6 +2211,7 @@ class LChunkBuilder BASE_EMBEDDED {
LChunk* chunk() const { return chunk_; } LChunk* chunk() const { return chunk_; }
CompilationInfo* info() const { return info_; } CompilationInfo* info() const { return info_; }
HGraph* graph() const { return graph_; } HGraph* graph() const { return graph_; }
Zone* zone() const { return zone_; }
bool is_unused() const { return status_ == UNUSED; } bool is_unused() const { return status_ == UNUSED; }
bool is_building() const { return status_ == BUILDING; } bool is_building() const { return status_ == BUILDING; }
...@@ -2318,6 +2320,7 @@ class LChunkBuilder BASE_EMBEDDED { ...@@ -2318,6 +2320,7 @@ class LChunkBuilder BASE_EMBEDDED {
LChunk* chunk_; LChunk* chunk_;
CompilationInfo* info_; CompilationInfo* info_;
HGraph* const graph_; HGraph* const graph_;
Zone* zone_;
Status status_; Status status_;
HInstruction* current_instruction_; HInstruction* current_instruction_;
HBasicBlock* current_block_; HBasicBlock* current_block_;
......
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