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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
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 1666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1677 __ push(Immediate(Smi::FromInt(SLOPPY))); // Strict mode | 1677 __ push(Immediate(Smi::FromInt(SLOPPY))); // Strict mode |
1678 __ CallRuntime(Runtime::kSetProperty, 4); | 1678 __ CallRuntime(Runtime::kSetProperty, 4); |
1679 } else { | 1679 } else { |
1680 __ Drop(3); | 1680 __ Drop(3); |
1681 } | 1681 } |
1682 break; | 1682 break; |
1683 case ObjectLiteral::Property::PROTOTYPE: | 1683 case ObjectLiteral::Property::PROTOTYPE: |
1684 __ push(Operand(esp, 0)); // Duplicate receiver. | 1684 __ push(Operand(esp, 0)); // Duplicate receiver. |
1685 VisitForStackValue(value); | 1685 VisitForStackValue(value); |
1686 if (property->emit_store()) { | 1686 if (property->emit_store()) { |
1687 __ CallRuntime(Runtime::kSetPrototype, 2); | 1687 __ CallRuntime(Runtime::kInternalSetPrototype, 2); |
1688 } else { | 1688 } else { |
1689 __ Drop(2); | 1689 __ Drop(2); |
1690 } | 1690 } |
1691 break; | 1691 break; |
1692 case ObjectLiteral::Property::GETTER: | 1692 case ObjectLiteral::Property::GETTER: |
1693 accessor_table.lookup(key)->second->getter = value; | 1693 accessor_table.lookup(key)->second->getter = value; |
1694 break; | 1694 break; |
1695 case ObjectLiteral::Property::SETTER: | 1695 case ObjectLiteral::Property::SETTER: |
1696 accessor_table.lookup(key)->second->setter = value; | 1696 accessor_table.lookup(key)->second->setter = value; |
1697 break; | 1697 break; |
(...skipping 3446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5144 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5144 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
5145 Assembler::target_address_at(call_target_address, | 5145 Assembler::target_address_at(call_target_address, |
5146 unoptimized_code)); | 5146 unoptimized_code)); |
5147 return OSR_AFTER_STACK_CHECK; | 5147 return OSR_AFTER_STACK_CHECK; |
5148 } | 5148 } |
5149 | 5149 |
5150 | 5150 |
5151 } } // namespace v8::internal | 5151 } } // namespace v8::internal |
5152 | 5152 |
5153 #endif // V8_TARGET_ARCH_IA32 | 5153 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |