| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1585 __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); | 1585 __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); |
| 1586 __ li(a1, Operand(constant_properties)); | 1586 __ li(a1, Operand(constant_properties)); |
| 1587 int flags = expr->fast_elements() | 1587 int flags = expr->fast_elements() |
| 1588 ? ObjectLiteral::kFastElements | 1588 ? ObjectLiteral::kFastElements |
| 1589 : ObjectLiteral::kNoFlags; | 1589 : ObjectLiteral::kNoFlags; |
| 1590 flags |= expr->has_function() | 1590 flags |= expr->has_function() |
| 1591 ? ObjectLiteral::kHasFunction | 1591 ? ObjectLiteral::kHasFunction |
| 1592 : ObjectLiteral::kNoFlags; | 1592 : ObjectLiteral::kNoFlags; |
| 1593 __ li(a0, Operand(Smi::FromInt(flags))); | 1593 __ li(a0, Operand(Smi::FromInt(flags))); |
| 1594 int properties_count = constant_properties->length() / 2; | 1594 int properties_count = constant_properties->length() / 2; |
| 1595 if (expr->depth() > 1) { | 1595 if ((FLAG_track_double_fields && expr->may_store_doubles()) || |
| 1596 expr->depth() > 1) { |
| 1596 __ Push(a3, a2, a1, a0); | 1597 __ Push(a3, a2, a1, a0); |
| 1597 __ CallRuntime(Runtime::kCreateObjectLiteral, 4); | 1598 __ CallRuntime(Runtime::kCreateObjectLiteral, 4); |
| 1598 } else if (Serializer::enabled() || flags != ObjectLiteral::kFastElements || | 1599 } else if (Serializer::enabled() || flags != ObjectLiteral::kFastElements || |
| 1599 properties_count > FastCloneShallowObjectStub::kMaximumClonedProperties) { | 1600 properties_count > FastCloneShallowObjectStub::kMaximumClonedProperties) { |
| 1600 __ Push(a3, a2, a1, a0); | 1601 __ Push(a3, a2, a1, a0); |
| 1601 __ CallRuntime(Runtime::kCreateObjectLiteralShallow, 4); | 1602 __ CallRuntime(Runtime::kCreateObjectLiteralShallow, 4); |
| 1602 } else { | 1603 } else { |
| 1603 FastCloneShallowObjectStub stub(properties_count); | 1604 FastCloneShallowObjectStub stub(properties_count); |
| 1604 __ CallStub(&stub); | 1605 __ CallStub(&stub); |
| 1605 } | 1606 } |
| (...skipping 3149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4755 *context_length = 0; | 4756 *context_length = 0; |
| 4756 return previous_; | 4757 return previous_; |
| 4757 } | 4758 } |
| 4758 | 4759 |
| 4759 | 4760 |
| 4760 #undef __ | 4761 #undef __ |
| 4761 | 4762 |
| 4762 } } // namespace v8::internal | 4763 } } // namespace v8::internal |
| 4763 | 4764 |
| 4764 #endif // V8_TARGET_ARCH_MIPS | 4765 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |