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 1596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1607 | 1607 |
1608 // If result_saved is true the result is on top of the stack. If | 1608 // If result_saved is true the result is on top of the stack. If |
1609 // result_saved is false the result is in v0. | 1609 // result_saved is false the result is in v0. |
1610 bool result_saved = false; | 1610 bool result_saved = false; |
1611 | 1611 |
1612 // Mark all computed expressions that are bound to a key that | 1612 // Mark all computed expressions that are bound to a key that |
1613 // is shadowed by a later occurrence of the same key. For the | 1613 // is shadowed by a later occurrence of the same key. For the |
1614 // marked expressions, no store code is emitted. | 1614 // marked expressions, no store code is emitted. |
1615 expr->CalculateEmitStore(zone()); | 1615 expr->CalculateEmitStore(zone()); |
1616 | 1616 |
1617 AccessorTable accessor_table(isolate()->zone()); | 1617 AccessorTable accessor_table(zone()); |
1618 for (int i = 0; i < expr->properties()->length(); i++) { | 1618 for (int i = 0; i < expr->properties()->length(); i++) { |
1619 ObjectLiteral::Property* property = expr->properties()->at(i); | 1619 ObjectLiteral::Property* property = expr->properties()->at(i); |
1620 if (property->IsCompileTimeValue()) continue; | 1620 if (property->IsCompileTimeValue()) continue; |
1621 | 1621 |
1622 Literal* key = property->key(); | 1622 Literal* key = property->key(); |
1623 Expression* value = property->value(); | 1623 Expression* value = property->value(); |
1624 if (!result_saved) { | 1624 if (!result_saved) { |
1625 __ push(v0); // Save result on stack. | 1625 __ push(v0); // Save result on stack. |
1626 result_saved = true; | 1626 result_saved = true; |
1627 } | 1627 } |
(...skipping 2986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4614 *context_length = 0; | 4614 *context_length = 0; |
4615 return previous_; | 4615 return previous_; |
4616 } | 4616 } |
4617 | 4617 |
4618 | 4618 |
4619 #undef __ | 4619 #undef __ |
4620 | 4620 |
4621 } } // namespace v8::internal | 4621 } } // namespace v8::internal |
4622 | 4622 |
4623 #endif // V8_TARGET_ARCH_MIPS | 4623 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |