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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1732 VisitForEffect(key); | 1732 VisitForEffect(key); |
1733 VisitForEffect(value); | 1733 VisitForEffect(value); |
1734 } | 1734 } |
1735 break; | 1735 break; |
1736 case ObjectLiteral::Property::PROTOTYPE: | 1736 case ObjectLiteral::Property::PROTOTYPE: |
1737 if (property->emit_store()) { | 1737 if (property->emit_store()) { |
1738 // Duplicate receiver on stack. | 1738 // Duplicate receiver on stack. |
1739 __ Peek(x0, 0); | 1739 __ Peek(x0, 0); |
1740 __ Push(x0); | 1740 __ Push(x0); |
1741 VisitForStackValue(value); | 1741 VisitForStackValue(value); |
1742 __ CallRuntime(Runtime::kSetPrototype, 2); | 1742 __ CallRuntime(Runtime::kInternalSetPrototype, 2); |
1743 } else { | 1743 } else { |
1744 VisitForEffect(value); | 1744 VisitForEffect(value); |
1745 } | 1745 } |
1746 break; | 1746 break; |
1747 case ObjectLiteral::Property::GETTER: | 1747 case ObjectLiteral::Property::GETTER: |
1748 accessor_table.lookup(key)->second->getter = value; | 1748 accessor_table.lookup(key)->second->getter = value; |
1749 break; | 1749 break; |
1750 case ObjectLiteral::Property::SETTER: | 1750 case ObjectLiteral::Property::SETTER: |
1751 accessor_table.lookup(key)->second->setter = value; | 1751 accessor_table.lookup(key)->second->setter = value; |
1752 break; | 1752 break; |
(...skipping 3492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5245 return previous_; | 5245 return previous_; |
5246 } | 5246 } |
5247 | 5247 |
5248 | 5248 |
5249 #undef __ | 5249 #undef __ |
5250 | 5250 |
5251 | 5251 |
5252 } } // namespace v8::internal | 5252 } } // namespace v8::internal |
5253 | 5253 |
5254 #endif // V8_TARGET_ARCH_ARM64 | 5254 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |