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 #if V8_TARGET_ARCH_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
6 | 6 |
7 // Note on Mips implementation: | 7 // Note on Mips implementation: |
8 // | 8 // |
9 // The result_register() for mips is the 'v0' register, which is defined | 9 // The result_register() for mips is the 'v0' register, which is defined |
10 // by the ABI to contain function return values. However, the first | 10 // by the ABI to contain function return values. However, the first |
(...skipping 1576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1587 break; | 1587 break; |
1588 | 1588 |
1589 case ObjectLiteral::Property::SETTER: | 1589 case ObjectLiteral::Property::SETTER: |
1590 PushOperand(Smi::FromInt(NONE)); | 1590 PushOperand(Smi::FromInt(NONE)); |
1591 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); | 1591 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); |
1592 break; | 1592 break; |
1593 } | 1593 } |
1594 } | 1594 } |
1595 } | 1595 } |
1596 | 1596 |
1597 if (expr->has_function()) { | |
1598 DCHECK(result_saved); | |
1599 __ ld(a0, MemOperand(sp)); | |
1600 __ push(a0); | |
1601 __ CallRuntime(Runtime::kToFastProperties); | |
1602 } | |
1603 | |
1604 if (result_saved) { | 1597 if (result_saved) { |
1605 context()->PlugTOS(); | 1598 context()->PlugTOS(); |
1606 } else { | 1599 } else { |
1607 context()->Plug(v0); | 1600 context()->Plug(v0); |
1608 } | 1601 } |
1609 } | 1602 } |
1610 | 1603 |
1611 | 1604 |
1612 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { | 1605 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
1613 Comment cmnt(masm_, "[ ArrayLiteral"); | 1606 Comment cmnt(masm_, "[ ArrayLiteral"); |
(...skipping 2568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4182 reinterpret_cast<uint64_t>( | 4175 reinterpret_cast<uint64_t>( |
4183 isolate->builtins()->OnStackReplacement()->entry())); | 4176 isolate->builtins()->OnStackReplacement()->entry())); |
4184 return ON_STACK_REPLACEMENT; | 4177 return ON_STACK_REPLACEMENT; |
4185 } | 4178 } |
4186 | 4179 |
4187 | 4180 |
4188 } // namespace internal | 4181 } // namespace internal |
4189 } // namespace v8 | 4182 } // namespace v8 |
4190 | 4183 |
4191 #endif // V8_TARGET_ARCH_MIPS64 | 4184 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |