| 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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
| 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 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1585 break; | 1585 break; |
| 1586 | 1586 |
| 1587 case ObjectLiteral::Property::SETTER: | 1587 case ObjectLiteral::Property::SETTER: |
| 1588 PushOperand(Smi::FromInt(NONE)); | 1588 PushOperand(Smi::FromInt(NONE)); |
| 1589 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); | 1589 CallRuntimeWithOperands(Runtime::kDefineSetterPropertyUnchecked); |
| 1590 break; | 1590 break; |
| 1591 } | 1591 } |
| 1592 } | 1592 } |
| 1593 } | 1593 } |
| 1594 | 1594 |
| 1595 if (expr->has_function()) { | |
| 1596 DCHECK(result_saved); | |
| 1597 __ lw(a0, MemOperand(sp)); | |
| 1598 __ push(a0); | |
| 1599 __ CallRuntime(Runtime::kToFastProperties); | |
| 1600 } | |
| 1601 | |
| 1602 if (result_saved) { | 1595 if (result_saved) { |
| 1603 context()->PlugTOS(); | 1596 context()->PlugTOS(); |
| 1604 } else { | 1597 } else { |
| 1605 context()->Plug(v0); | 1598 context()->Plug(v0); |
| 1606 } | 1599 } |
| 1607 } | 1600 } |
| 1608 | 1601 |
| 1609 | 1602 |
| 1610 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { | 1603 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
| 1611 Comment cmnt(masm_, "[ ArrayLiteral"); | 1604 Comment cmnt(masm_, "[ ArrayLiteral"); |
| (...skipping 2558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4170 reinterpret_cast<uint32_t>( | 4163 reinterpret_cast<uint32_t>( |
| 4171 isolate->builtins()->OnStackReplacement()->entry())); | 4164 isolate->builtins()->OnStackReplacement()->entry())); |
| 4172 return ON_STACK_REPLACEMENT; | 4165 return ON_STACK_REPLACEMENT; |
| 4173 } | 4166 } |
| 4174 | 4167 |
| 4175 | 4168 |
| 4176 } // namespace internal | 4169 } // namespace internal |
| 4177 } // namespace v8 | 4170 } // namespace v8 |
| 4178 | 4171 |
| 4179 #endif // V8_TARGET_ARCH_MIPS | 4172 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |