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 1537 matching lines...) Loading... |
1548 | 1548 |
1549 // If result_saved is true the result is on top of the stack. If | 1549 // If result_saved is true the result is on top of the stack. If |
1550 // result_saved is false the result is in eax. | 1550 // result_saved is false the result is in eax. |
1551 bool result_saved = false; | 1551 bool result_saved = false; |
1552 | 1552 |
1553 // Mark all computed expressions that are bound to a key that | 1553 // Mark all computed expressions that are bound to a key that |
1554 // is shadowed by a later occurrence of the same key. For the | 1554 // is shadowed by a later occurrence of the same key. For the |
1555 // marked expressions, no store code is emitted. | 1555 // marked expressions, no store code is emitted. |
1556 expr->CalculateEmitStore(zone()); | 1556 expr->CalculateEmitStore(zone()); |
1557 | 1557 |
1558 AccessorTable accessor_table(isolate()->zone()); | 1558 AccessorTable accessor_table(zone()); |
1559 for (int i = 0; i < expr->properties()->length(); i++) { | 1559 for (int i = 0; i < expr->properties()->length(); i++) { |
1560 ObjectLiteral::Property* property = expr->properties()->at(i); | 1560 ObjectLiteral::Property* property = expr->properties()->at(i); |
1561 if (property->IsCompileTimeValue()) continue; | 1561 if (property->IsCompileTimeValue()) continue; |
1562 | 1562 |
1563 Literal* key = property->key(); | 1563 Literal* key = property->key(); |
1564 Expression* value = property->value(); | 1564 Expression* value = property->value(); |
1565 if (!result_saved) { | 1565 if (!result_saved) { |
1566 __ push(eax); // Save result on the stack | 1566 __ push(eax); // Save result on the stack |
1567 result_saved = true; | 1567 result_saved = true; |
1568 } | 1568 } |
(...skipping 2980 matching lines...) Loading... |
4549 *context_length = 0; | 4549 *context_length = 0; |
4550 return previous_; | 4550 return previous_; |
4551 } | 4551 } |
4552 | 4552 |
4553 | 4553 |
4554 #undef __ | 4554 #undef __ |
4555 | 4555 |
4556 } } // namespace v8::internal | 4556 } } // namespace v8::internal |
4557 | 4557 |
4558 #endif // V8_TARGET_ARCH_IA32 | 4558 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |