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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
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 1700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1711 __ Push(Smi::FromInt(SLOPPY)); // Strict mode | 1711 __ Push(Smi::FromInt(SLOPPY)); // Strict mode |
1712 __ CallRuntime(Runtime::kSetProperty, 4); | 1712 __ CallRuntime(Runtime::kSetProperty, 4); |
1713 } else { | 1713 } else { |
1714 __ Drop(3); | 1714 __ Drop(3); |
1715 } | 1715 } |
1716 break; | 1716 break; |
1717 case ObjectLiteral::Property::PROTOTYPE: | 1717 case ObjectLiteral::Property::PROTOTYPE: |
1718 __ Push(Operand(rsp, 0)); // Duplicate receiver. | 1718 __ Push(Operand(rsp, 0)); // Duplicate receiver. |
1719 VisitForStackValue(value); | 1719 VisitForStackValue(value); |
1720 if (property->emit_store()) { | 1720 if (property->emit_store()) { |
1721 __ CallRuntime(Runtime::kSetPrototype, 2); | 1721 __ CallRuntime(Runtime::kInternalSetPrototype, 2); |
1722 } else { | 1722 } else { |
1723 __ Drop(2); | 1723 __ Drop(2); |
1724 } | 1724 } |
1725 break; | 1725 break; |
1726 case ObjectLiteral::Property::GETTER: | 1726 case ObjectLiteral::Property::GETTER: |
1727 accessor_table.lookup(key)->second->getter = value; | 1727 accessor_table.lookup(key)->second->getter = value; |
1728 break; | 1728 break; |
1729 case ObjectLiteral::Property::SETTER: | 1729 case ObjectLiteral::Property::SETTER: |
1730 accessor_table.lookup(key)->second->setter = value; | 1730 accessor_table.lookup(key)->second->setter = value; |
1731 break; | 1731 break; |
(...skipping 3427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5159 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5159 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
5160 Assembler::target_address_at(call_target_address, | 5160 Assembler::target_address_at(call_target_address, |
5161 unoptimized_code)); | 5161 unoptimized_code)); |
5162 return OSR_AFTER_STACK_CHECK; | 5162 return OSR_AFTER_STACK_CHECK; |
5163 } | 5163 } |
5164 | 5164 |
5165 | 5165 |
5166 } } // namespace v8::internal | 5166 } } // namespace v8::internal |
5167 | 5167 |
5168 #endif // V8_TARGET_ARCH_X64 | 5168 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |