OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/ast.h" | 5 #include "src/ast.h" |
6 #include "src/ast-numbering.h" | 6 #include "src/ast-numbering.h" |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
9 #include "src/compiler.h" | 9 #include "src/compiler.h" |
10 #include "src/debug/debug.h" | 10 #include "src/debug/debug.h" |
(...skipping 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1392 entry->range_end = masm()->pc_offset(); | 1392 entry->range_end = masm()->pc_offset(); |
1393 | 1393 |
1394 // Drop context from operand stack. | 1394 // Drop context from operand stack. |
1395 __ Drop(TryBlockConstant::kElementCount); | 1395 __ Drop(TryBlockConstant::kElementCount); |
1396 } | 1396 } |
1397 | 1397 |
1398 | 1398 |
1399 void FullCodeGenerator::VisitSpread(Spread* expr) { UNREACHABLE(); } | 1399 void FullCodeGenerator::VisitSpread(Spread* expr) { UNREACHABLE(); } |
1400 | 1400 |
1401 | 1401 |
| 1402 void FullCodeGenerator::VisitEmptyParentheses(EmptyParentheses* expr) { |
| 1403 UNREACHABLE(); |
| 1404 } |
| 1405 |
| 1406 |
1402 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit( | 1407 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit( |
1403 int* stack_depth, int* context_length) { | 1408 int* stack_depth, int* context_length) { |
1404 // The macros used here must preserve the result register. | 1409 // The macros used here must preserve the result register. |
1405 | 1410 |
1406 // Because the handler block contains the context of the finally | 1411 // Because the handler block contains the context of the finally |
1407 // code, we can restore it directly from there for the finally code | 1412 // code, we can restore it directly from there for the finally code |
1408 // rather than iteratively unwinding contexts via their previous | 1413 // rather than iteratively unwinding contexts via their previous |
1409 // links. | 1414 // links. |
1410 if (*context_length > 0) { | 1415 if (*context_length > 0) { |
1411 __ Drop(*stack_depth); // Down to the handler block. | 1416 __ Drop(*stack_depth); // Down to the handler block. |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1583 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); | 1588 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); |
1584 codegen_->scope_ = saved_scope_; | 1589 codegen_->scope_ = saved_scope_; |
1585 } | 1590 } |
1586 | 1591 |
1587 | 1592 |
1588 #undef __ | 1593 #undef __ |
1589 | 1594 |
1590 | 1595 |
1591 } // namespace internal | 1596 } // namespace internal |
1592 } // namespace v8 | 1597 } // namespace v8 |
OLD | NEW |