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 1575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1586 __ mov(r2, Operand(Smi::FromInt(expr->literal_index()))); | 1586 __ mov(r2, Operand(Smi::FromInt(expr->literal_index()))); |
1587 __ mov(r1, Operand(constant_properties)); | 1587 __ mov(r1, Operand(constant_properties)); |
1588 int flags = expr->fast_elements() | 1588 int flags = expr->fast_elements() |
1589 ? ObjectLiteral::kFastElements | 1589 ? ObjectLiteral::kFastElements |
1590 : ObjectLiteral::kNoFlags; | 1590 : ObjectLiteral::kNoFlags; |
1591 flags |= expr->has_function() | 1591 flags |= expr->has_function() |
1592 ? ObjectLiteral::kHasFunction | 1592 ? ObjectLiteral::kHasFunction |
1593 : ObjectLiteral::kNoFlags; | 1593 : ObjectLiteral::kNoFlags; |
1594 __ mov(r0, Operand(Smi::FromInt(flags))); | 1594 __ mov(r0, Operand(Smi::FromInt(flags))); |
1595 int properties_count = constant_properties->length() / 2; | 1595 int properties_count = constant_properties->length() / 2; |
1596 if (expr->depth() > 1) { | 1596 if ((FLAG_track_double_fields && expr->may_store_doubles()) || |
| 1597 expr->depth() > 1) { |
1597 __ Push(r3, r2, r1, r0); | 1598 __ Push(r3, r2, r1, r0); |
1598 __ CallRuntime(Runtime::kCreateObjectLiteral, 4); | 1599 __ CallRuntime(Runtime::kCreateObjectLiteral, 4); |
1599 } else if (Serializer::enabled() || flags != ObjectLiteral::kFastElements || | 1600 } else if (Serializer::enabled() || flags != ObjectLiteral::kFastElements || |
1600 properties_count > FastCloneShallowObjectStub::kMaximumClonedProperties) { | 1601 properties_count > FastCloneShallowObjectStub::kMaximumClonedProperties) { |
1601 __ Push(r3, r2, r1, r0); | 1602 __ Push(r3, r2, r1, r0); |
1602 __ CallRuntime(Runtime::kCreateObjectLiteralShallow, 4); | 1603 __ CallRuntime(Runtime::kCreateObjectLiteralShallow, 4); |
1603 } else { | 1604 } else { |
1604 FastCloneShallowObjectStub stub(properties_count); | 1605 FastCloneShallowObjectStub stub(properties_count); |
1605 __ CallStub(&stub); | 1606 __ CallStub(&stub); |
1606 } | 1607 } |
(...skipping 3134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4741 *context_length = 0; | 4742 *context_length = 0; |
4742 return previous_; | 4743 return previous_; |
4743 } | 4744 } |
4744 | 4745 |
4745 | 4746 |
4746 #undef __ | 4747 #undef __ |
4747 | 4748 |
4748 } } // namespace v8::internal | 4749 } } // namespace v8::internal |
4749 | 4750 |
4750 #endif // V8_TARGET_ARCH_ARM | 4751 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |