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 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1393 entry->range_end = masm()->pc_offset(); | 1393 entry->range_end = masm()->pc_offset(); |
1394 | 1394 |
1395 // Drop context from operand stack. | 1395 // Drop context from operand stack. |
1396 __ Drop(TryBlockConstant::kElementCount); | 1396 __ Drop(TryBlockConstant::kElementCount); |
1397 } | 1397 } |
1398 | 1398 |
1399 | 1399 |
1400 void FullCodeGenerator::VisitSpread(Spread* expr) { UNREACHABLE(); } | 1400 void FullCodeGenerator::VisitSpread(Spread* expr) { UNREACHABLE(); } |
1401 | 1401 |
1402 | 1402 |
| 1403 void FullCodeGenerator::VisitEmptyParentheses(EmptyParentheses* expr) { |
| 1404 UNREACHABLE(); |
| 1405 } |
| 1406 |
| 1407 |
1403 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit( | 1408 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit( |
1404 int* stack_depth, int* context_length) { | 1409 int* stack_depth, int* context_length) { |
1405 // The macros used here must preserve the result register. | 1410 // The macros used here must preserve the result register. |
1406 | 1411 |
1407 // Because the handler block contains the context of the finally | 1412 // Because the handler block contains the context of the finally |
1408 // code, we can restore it directly from there for the finally code | 1413 // code, we can restore it directly from there for the finally code |
1409 // rather than iteratively unwinding contexts via their previous | 1414 // rather than iteratively unwinding contexts via their previous |
1410 // links. | 1415 // links. |
1411 if (*context_length > 0) { | 1416 if (*context_length > 0) { |
1412 __ Drop(*stack_depth); // Down to the handler block. | 1417 __ Drop(*stack_depth); // Down to the handler block. |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1584 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); | 1589 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); |
1585 codegen_->scope_ = saved_scope_; | 1590 codegen_->scope_ = saved_scope_; |
1586 } | 1591 } |
1587 | 1592 |
1588 | 1593 |
1589 #undef __ | 1594 #undef __ |
1590 | 1595 |
1591 | 1596 |
1592 } // namespace internal | 1597 } // namespace internal |
1593 } // namespace v8 | 1598 } // namespace v8 |
OLD | NEW |