Revision f230a1cf deps/v8/src/rewriter.cc
deps/v8/src/rewriter.cc | ||
---|---|---|
207 | 207 |
} |
208 | 208 |
|
209 | 209 |
|
210 |
void Processor::VisitCaseClause(CaseClause* clause) { |
|
211 |
UNREACHABLE(); |
|
212 |
} |
|
213 |
|
|
214 |
|
|
210 | 215 |
void Processor::VisitContinueStatement(ContinueStatement* node) { |
211 | 216 |
is_set_ = false; |
212 | 217 |
} |
... | ... | |
271 | 276 |
// eval('with ({x:1}) x = 1'); |
272 | 277 |
// the end position of the function generated for executing the eval code |
273 | 278 |
// coincides with the end of the with scope which is the position of '1'. |
274 |
int position = function->end_position();
|
|
279 |
int pos = function->end_position(); |
|
275 | 280 |
VariableProxy* result_proxy = processor.factory()->NewVariableProxy( |
276 |
result->name(), false, result->interface(), position);
|
|
281 |
result->name(), false, result->interface(), pos); |
|
277 | 282 |
result_proxy->BindTo(result); |
278 | 283 |
Statement* result_statement = |
279 |
processor.factory()->NewReturnStatement(result_proxy); |
|
280 |
result_statement->set_statement_pos(position); |
|
284 |
processor.factory()->NewReturnStatement(result_proxy, pos); |
|
281 | 285 |
body->Add(result_statement, info->zone()); |
282 | 286 |
} |
283 | 287 |
} |
Also available in: Unified diff