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_X87 | 7 #if V8_TARGET_ARCH_X87 |
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 1655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1666 __ push(Immediate(Smi::FromInt(SLOPPY))); // Strict mode | 1666 __ push(Immediate(Smi::FromInt(SLOPPY))); // Strict mode |
1667 __ CallRuntime(Runtime::kSetProperty, 4); | 1667 __ CallRuntime(Runtime::kSetProperty, 4); |
1668 } else { | 1668 } else { |
1669 __ Drop(3); | 1669 __ Drop(3); |
1670 } | 1670 } |
1671 break; | 1671 break; |
1672 case ObjectLiteral::Property::PROTOTYPE: | 1672 case ObjectLiteral::Property::PROTOTYPE: |
1673 __ push(Operand(esp, 0)); // Duplicate receiver. | 1673 __ push(Operand(esp, 0)); // Duplicate receiver. |
1674 VisitForStackValue(value); | 1674 VisitForStackValue(value); |
1675 if (property->emit_store()) { | 1675 if (property->emit_store()) { |
1676 __ CallRuntime(Runtime::kSetPrototype, 2); | 1676 __ CallRuntime(Runtime::kInternalSetPrototype, 2); |
1677 } else { | 1677 } else { |
1678 __ Drop(2); | 1678 __ Drop(2); |
1679 } | 1679 } |
1680 break; | 1680 break; |
1681 case ObjectLiteral::Property::GETTER: | 1681 case ObjectLiteral::Property::GETTER: |
1682 accessor_table.lookup(key)->second->getter = value; | 1682 accessor_table.lookup(key)->second->getter = value; |
1683 break; | 1683 break; |
1684 case ObjectLiteral::Property::SETTER: | 1684 case ObjectLiteral::Property::SETTER: |
1685 accessor_table.lookup(key)->second->setter = value; | 1685 accessor_table.lookup(key)->second->setter = value; |
1686 break; | 1686 break; |
(...skipping 3443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5130 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5130 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
5131 Assembler::target_address_at(call_target_address, | 5131 Assembler::target_address_at(call_target_address, |
5132 unoptimized_code)); | 5132 unoptimized_code)); |
5133 return OSR_AFTER_STACK_CHECK; | 5133 return OSR_AFTER_STACK_CHECK; |
5134 } | 5134 } |
5135 | 5135 |
5136 | 5136 |
5137 } } // namespace v8::internal | 5137 } } // namespace v8::internal |
5138 | 5138 |
5139 #endif // V8_TARGET_ARCH_X87 | 5139 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |