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

Unified Diff: src/lithium.h

Issue 7374002: Refactor allocation policies. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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 | « src/list.h ('k') | src/lithium-allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/lithium.h
diff --git a/src/lithium.h b/src/lithium.h
index 6010b777ed130d5e23ae34e4b886c62e58d753dc..5d006c92e3d72f71b3708192b3b0c785e05afaf6 100644
--- a/src/lithium.h
+++ b/src/lithium.h
@@ -387,7 +387,7 @@ class LDoubleRegister: public LOperand {
class LParallelMove : public ZoneObject {
public:
- LParallelMove() : move_operands_(4) { }
+ explicit LParallelMove(Zone* zone) : move_operands_(zone, 4) { }
void AddMove(LOperand* from, LOperand* to) {
move_operands_.Add(LMoveOperands(from, to));
@@ -408,8 +408,10 @@ class LParallelMove : public ZoneObject {
class LPointerMap: public ZoneObject {
public:
- explicit LPointerMap(int position)
- : pointer_operands_(8), position_(position), lithium_position_(-1) { }
+ LPointerMap(Zone* zone, int position)
+ : pointer_operands_(zone, 8),
+ position_(position),
+ lithium_position_(-1) { }
const ZoneList<LOperand*>* operands() const { return &pointer_operands_; }
int position() const { return position_; }
@@ -444,8 +446,8 @@ class LEnvironment: public ZoneObject {
translation_index_(-1),
ast_id_(ast_id),
parameter_count_(parameter_count),
- values_(value_count),
- representations_(value_count),
+ values_(closure->GetIsolate()->zone(), value_count),
+ representations_(closure->GetIsolate()->zone(), value_count),
spilled_registers_(NULL),
spilled_double_registers_(NULL),
outer_(outer) {
« no previous file with comments | « src/list.h ('k') | src/lithium-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698