diff --git a/src/jump-target.cc b/src/jump-target.cc index 54ce57a834..643de93253 100644 --- a/src/jump-target.cc +++ b/src/jump-target.cc @@ -104,7 +104,7 @@ void JumpTarget::ComputeEntryFrame(int mergable_elements) { // A list of pointers to frame elements in the entry frame. NULL // indicates that the element has not yet been determined. int length = initial_frame->elements_.length(); - ZoneList elements(length); + List elements(length); // Convert the number of mergable elements (counted from the top // down) to a frame high-water mark (counted from the bottom up). diff --git a/src/parser.cc b/src/parser.cc index 96b3085847..2ad1109dc0 100644 --- a/src/parser.cc +++ b/src/parser.cc @@ -42,50 +42,9 @@ namespace v8 { namespace internal { class ParserFactory; class ParserLog; class TemporaryScope; -class Target; - template class ZoneListWrapper; -// PositionStack is used for on-stack allocation of token positions for -// new expressions. Please look at ParseNewExpression. - -class PositionStack { - public: - PositionStack() : top_(NULL) {} - ~PositionStack() { ASSERT(is_empty()); } - - class Element { - public: - Element(PositionStack* stack, int value) { - previous_ = stack->top(); - value_ = value; - stack->set_top(this); - } - - private: - Element* previous() { return previous_; } - int value() { return value_; } - friend class PositionStack; - Element* previous_; - int value_; - }; - - bool is_empty() { return top_ == NULL; } - int pop() { - ASSERT(!is_empty()); - int result = top_->value(); - top_ = top_->previous(); - return result; - } - - private: - Element* top() { return top_; } - void set_top(Element* value) { top_ = value; } - Element* top_; -}; - - class Parser { public: Parser(Handle