OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1661 } else { | 1661 } else { |
1662 context()->Plug(x0); | 1662 context()->Plug(x0); |
1663 } | 1663 } |
1664 } | 1664 } |
1665 | 1665 |
1666 | 1666 |
1667 void FullCodeGenerator::VisitAssignment(Assignment* expr) { | 1667 void FullCodeGenerator::VisitAssignment(Assignment* expr) { |
1668 DCHECK(expr->target()->IsValidReferenceExpressionOrThis()); | 1668 DCHECK(expr->target()->IsValidReferenceExpressionOrThis()); |
1669 | 1669 |
1670 Comment cmnt(masm_, "[ Assignment"); | 1670 Comment cmnt(masm_, "[ Assignment"); |
1671 SetExpressionPosition(expr, INSERT_BREAK); | |
1672 | 1671 |
1673 Property* property = expr->target()->AsProperty(); | 1672 Property* property = expr->target()->AsProperty(); |
1674 LhsKind assign_type = Property::GetAssignType(property); | 1673 LhsKind assign_type = Property::GetAssignType(property); |
1675 | 1674 |
1676 // Evaluate LHS expression. | 1675 // Evaluate LHS expression. |
1677 switch (assign_type) { | 1676 switch (assign_type) { |
1678 case VARIABLE: | 1677 case VARIABLE: |
1679 // Nothing to do here. | 1678 // Nothing to do here. |
1680 break; | 1679 break; |
1681 case NAMED_PROPERTY: | 1680 case NAMED_PROPERTY: |
(...skipping 2349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4031 } | 4030 } |
4032 | 4031 |
4033 return INTERRUPT; | 4032 return INTERRUPT; |
4034 } | 4033 } |
4035 | 4034 |
4036 | 4035 |
4037 } // namespace internal | 4036 } // namespace internal |
4038 } // namespace v8 | 4037 } // namespace v8 |
4039 | 4038 |
4040 #endif // V8_TARGET_ARCH_ARM64 | 4039 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |