| Index: src/rewriter.cc
|
| diff --git a/src/rewriter.cc b/src/rewriter.cc
|
| index 06335a80c7b38e658d78414f76a8a3c0a6a6d726..70b362fd7d8656b9fd8a137cfcb3cf5139190aa0 100644
|
| --- a/src/rewriter.cc
|
| +++ b/src/rewriter.cc
|
| @@ -207,6 +207,11 @@ void Processor::VisitSwitchStatement(SwitchStatement* node) {
|
| }
|
|
|
|
|
| +void Processor::VisitCaseClause(CaseClause* clause) {
|
| + UNREACHABLE();
|
| +}
|
| +
|
| +
|
| void Processor::VisitContinueStatement(ContinueStatement* node) {
|
| is_set_ = false;
|
| }
|
| @@ -271,13 +276,12 @@ bool Rewriter::Rewrite(CompilationInfo* info) {
|
| // eval('with ({x:1}) x = 1');
|
| // the end position of the function generated for executing the eval code
|
| // coincides with the end of the with scope which is the position of '1'.
|
| - int position = function->end_position();
|
| + int pos = function->end_position();
|
| VariableProxy* result_proxy = processor.factory()->NewVariableProxy(
|
| - result->name(), false, result->interface(), position);
|
| + result->name(), false, result->interface(), pos);
|
| result_proxy->BindTo(result);
|
| Statement* result_statement =
|
| - processor.factory()->NewReturnStatement(result_proxy);
|
| - result_statement->set_statement_pos(position);
|
| + processor.factory()->NewReturnStatement(result_proxy, pos);
|
| body->Add(result_statement, info->zone());
|
| }
|
| }
|
|
|