Commit 9b96a9d5 authored by vegorov@chromium.org's avatar vegorov@chromium.org

Fix presubmit errors introduced by r5768.

Review URL: http://codereview.chromium.org/4409003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5770 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 861a66fb
...@@ -1290,7 +1290,7 @@ class Assembler : public Malloced { ...@@ -1290,7 +1290,7 @@ class Assembler : public Malloced {
class EnsureSpace BASE_EMBEDDED { class EnsureSpace BASE_EMBEDDED {
public: public:
EnsureSpace(Assembler* assembler) { explicit EnsureSpace(Assembler* assembler) {
assembler->CheckBuffer(); assembler->CheckBuffer();
} }
}; };
......
...@@ -1766,7 +1766,6 @@ void FullCodeGenerator::VisitCall(Call* expr) { ...@@ -1766,7 +1766,6 @@ void FullCodeGenerator::VisitCall(Call* expr) {
int arg_count = args->length(); int arg_count = args->length();
{ PreserveStatementPositionScope pos_scope(masm()->positions_recorder()); { PreserveStatementPositionScope pos_scope(masm()->positions_recorder());
VisitForStackValue(fun); VisitForStackValue(fun);
__ LoadRoot(r2, Heap::kUndefinedValueRootIndex); __ LoadRoot(r2, Heap::kUndefinedValueRootIndex);
__ push(r2); // Reserved receiver slot. __ push(r2); // Reserved receiver slot.
......
...@@ -629,7 +629,7 @@ class PositionsRecorder BASE_EMBEDDED { ...@@ -629,7 +629,7 @@ class PositionsRecorder BASE_EMBEDDED {
class PreserveStatementPositionScope BASE_EMBEDDED { class PreserveStatementPositionScope BASE_EMBEDDED {
public: public:
PreserveStatementPositionScope(PositionsRecorder* positions_recorder) explicit PreserveStatementPositionScope(PositionsRecorder* positions_recorder)
: positions_recorder_(positions_recorder), : positions_recorder_(positions_recorder),
statement_position_(positions_recorder->current_statement_position()) {} statement_position_(positions_recorder->current_statement_position()) {}
......
...@@ -2072,7 +2072,8 @@ void FullCodeGenerator::VisitCall(Call* expr) { ...@@ -2072,7 +2072,8 @@ void FullCodeGenerator::VisitCall(Call* expr) {
int arg_count = args->length(); int arg_count = args->length();
{ PreserveStatementPositionScope pos_scope(masm()->positions_recorder()); { PreserveStatementPositionScope pos_scope(masm()->positions_recorder());
VisitForStackValue(fun); VisitForStackValue(fun);
__ push(Immediate(Factory::undefined_value())); // Reserved receiver slot. // Reserved receiver slot.
__ push(Immediate(Factory::undefined_value()));
// Push the arguments. // Push the arguments.
for (int i = 0; i < arg_count; i++) { for (int i = 0; i < arg_count; i++) {
......
...@@ -1796,7 +1796,6 @@ void FullCodeGenerator::VisitCall(Call* expr) { ...@@ -1796,7 +1796,6 @@ void FullCodeGenerator::VisitCall(Call* expr) {
ZoneList<Expression*>* args = expr->arguments(); ZoneList<Expression*>* args = expr->arguments();
int arg_count = args->length(); int arg_count = args->length();
{ PreserveStatementPositionScope pos_scope(masm()->positions_recorder()); { PreserveStatementPositionScope pos_scope(masm()->positions_recorder());
VisitForStackValue(fun); VisitForStackValue(fun);
__ PushRoot(Heap::kUndefinedValueRootIndex); // Reserved receiver slot. __ PushRoot(Heap::kUndefinedValueRootIndex); // Reserved receiver slot.
......
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