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 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1559 | 1559 |
1560 // If result_saved is true the result is on top of the stack. If | 1560 // If result_saved is true the result is on top of the stack. If |
1561 // result_saved is false the result is in rax. | 1561 // result_saved is false the result is in rax. |
1562 bool result_saved = false; | 1562 bool result_saved = false; |
1563 | 1563 |
1564 // Mark all computed expressions that are bound to a key that | 1564 // Mark all computed expressions that are bound to a key that |
1565 // is shadowed by a later occurrence of the same key. For the | 1565 // is shadowed by a later occurrence of the same key. For the |
1566 // marked expressions, no store code is emitted. | 1566 // marked expressions, no store code is emitted. |
1567 expr->CalculateEmitStore(zone()); | 1567 expr->CalculateEmitStore(zone()); |
1568 | 1568 |
1569 AccessorTable accessor_table(isolate()->zone()); | 1569 AccessorTable accessor_table(zone()); |
1570 for (int i = 0; i < expr->properties()->length(); i++) { | 1570 for (int i = 0; i < expr->properties()->length(); i++) { |
1571 ObjectLiteral::Property* property = expr->properties()->at(i); | 1571 ObjectLiteral::Property* property = expr->properties()->at(i); |
1572 if (property->IsCompileTimeValue()) continue; | 1572 if (property->IsCompileTimeValue()) continue; |
1573 | 1573 |
1574 Literal* key = property->key(); | 1574 Literal* key = property->key(); |
1575 Expression* value = property->value(); | 1575 Expression* value = property->value(); |
1576 if (!result_saved) { | 1576 if (!result_saved) { |
1577 __ push(rax); // Save result on the stack | 1577 __ push(rax); // Save result on the stack |
1578 result_saved = true; | 1578 result_saved = true; |
1579 } | 1579 } |
(...skipping 2955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4535 *context_length = 0; | 4535 *context_length = 0; |
4536 return previous_; | 4536 return previous_; |
4537 } | 4537 } |
4538 | 4538 |
4539 | 4539 |
4540 #undef __ | 4540 #undef __ |
4541 | 4541 |
4542 } } // namespace v8::internal | 4542 } } // namespace v8::internal |
4543 | 4543 |
4544 #endif // V8_TARGET_ARCH_X64 | 4544 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |