| 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 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1600 | 1600 |
| 1601 // If result_saved is true the result is on top of the stack. If | 1601 // If result_saved is true the result is on top of the stack. If |
| 1602 // result_saved is false the result is in r0. | 1602 // result_saved is false the result is in r0. |
| 1603 bool result_saved = false; | 1603 bool result_saved = false; |
| 1604 | 1604 |
| 1605 // Mark all computed expressions that are bound to a key that | 1605 // Mark all computed expressions that are bound to a key that |
| 1606 // is shadowed by a later occurrence of the same key. For the | 1606 // is shadowed by a later occurrence of the same key. For the |
| 1607 // marked expressions, no store code is emitted. | 1607 // marked expressions, no store code is emitted. |
| 1608 expr->CalculateEmitStore(zone()); | 1608 expr->CalculateEmitStore(zone()); |
| 1609 | 1609 |
| 1610 AccessorTable accessor_table(isolate()->zone()); | 1610 AccessorTable accessor_table(zone()); |
| 1611 for (int i = 0; i < expr->properties()->length(); i++) { | 1611 for (int i = 0; i < expr->properties()->length(); i++) { |
| 1612 ObjectLiteral::Property* property = expr->properties()->at(i); | 1612 ObjectLiteral::Property* property = expr->properties()->at(i); |
| 1613 if (property->IsCompileTimeValue()) continue; | 1613 if (property->IsCompileTimeValue()) continue; |
| 1614 | 1614 |
| 1615 Literal* key = property->key(); | 1615 Literal* key = property->key(); |
| 1616 Expression* value = property->value(); | 1616 Expression* value = property->value(); |
| 1617 if (!result_saved) { | 1617 if (!result_saved) { |
| 1618 __ push(r0); // Save result on stack | 1618 __ push(r0); // Save result on stack |
| 1619 result_saved = true; | 1619 result_saved = true; |
| 1620 } | 1620 } |
| (...skipping 2956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4577 *context_length = 0; | 4577 *context_length = 0; |
| 4578 return previous_; | 4578 return previous_; |
| 4579 } | 4579 } |
| 4580 | 4580 |
| 4581 | 4581 |
| 4582 #undef __ | 4582 #undef __ |
| 4583 | 4583 |
| 4584 } } // namespace v8::internal | 4584 } } // namespace v8::internal |
| 4585 | 4585 |
| 4586 #endif // V8_TARGET_ARCH_ARM | 4586 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |