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 #if V8_TARGET_ARCH_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/debug/debug.h" | 10 #include "src/debug/debug.h" |
(...skipping 1716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1727 | 1727 |
1728 if (result_saved) { | 1728 if (result_saved) { |
1729 context()->PlugTOS(); | 1729 context()->PlugTOS(); |
1730 } else { | 1730 } else { |
1731 context()->Plug(eax); | 1731 context()->Plug(eax); |
1732 } | 1732 } |
1733 } | 1733 } |
1734 | 1734 |
1735 | 1735 |
1736 void FullCodeGenerator::VisitAssignment(Assignment* expr) { | 1736 void FullCodeGenerator::VisitAssignment(Assignment* expr) { |
| 1737 RETURN_IF_VISIT_NODE(expr->destructuring_assignment()); |
1737 DCHECK(expr->target()->IsValidReferenceExpressionOrThis()); | 1738 DCHECK(expr->target()->IsValidReferenceExpressionOrThis()); |
1738 | 1739 |
1739 Comment cmnt(masm_, "[ Assignment"); | 1740 Comment cmnt(masm_, "[ Assignment"); |
1740 SetExpressionPosition(expr, INSERT_BREAK); | 1741 SetExpressionPosition(expr, INSERT_BREAK); |
1741 | 1742 |
1742 Property* property = expr->target()->AsProperty(); | 1743 Property* property = expr->target()->AsProperty(); |
1743 LhsKind assign_type = Property::GetAssignType(property); | 1744 LhsKind assign_type = Property::GetAssignType(property); |
1744 | 1745 |
1745 // Evaluate LHS expression. | 1746 // Evaluate LHS expression. |
1746 switch (assign_type) { | 1747 switch (assign_type) { |
(...skipping 3165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4912 Assembler::target_address_at(call_target_address, | 4913 Assembler::target_address_at(call_target_address, |
4913 unoptimized_code)); | 4914 unoptimized_code)); |
4914 return OSR_AFTER_STACK_CHECK; | 4915 return OSR_AFTER_STACK_CHECK; |
4915 } | 4916 } |
4916 | 4917 |
4917 | 4918 |
4918 } // namespace internal | 4919 } // namespace internal |
4919 } // namespace v8 | 4920 } // namespace v8 |
4920 | 4921 |
4921 #endif // V8_TARGET_ARCH_IA32 | 4922 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |