| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1489 if (!result_saved) { | 1489 if (!result_saved) { |
| 1490 __ push(rax); | 1490 __ push(rax); |
| 1491 result_saved = true; | 1491 result_saved = true; |
| 1492 } | 1492 } |
| 1493 VisitForAccumulatorValue(subexpr); | 1493 VisitForAccumulatorValue(subexpr); |
| 1494 | 1494 |
| 1495 // Store the subexpression value in the array's elements. | 1495 // Store the subexpression value in the array's elements. |
| 1496 __ movq(rbx, Operand(rsp, 0)); // Copy of array literal. | 1496 __ movq(rbx, Operand(rsp, 0)); // Copy of array literal. |
| 1497 __ movq(rdi, FieldOperand(rbx, JSObject::kMapOffset)); | 1497 __ movq(rdi, FieldOperand(rbx, JSObject::kMapOffset)); |
| 1498 __ Move(rcx, Smi::FromInt(i)); | 1498 __ Move(rcx, Smi::FromInt(i)); |
| 1499 __ movq(rdx, Immediate(expr->literal_index())); | 1499 __ Move(rdx, Smi::FromInt(expr->literal_index())); |
| 1500 StoreArrayLiteralElementStub stub; | 1500 StoreArrayLiteralElementStub stub; |
| 1501 __ CallStub(&stub); | 1501 __ CallStub(&stub); |
| 1502 | 1502 |
| 1503 PrepareForBailoutForId(expr->GetIdForElement(i), NO_REGISTERS); | 1503 PrepareForBailoutForId(expr->GetIdForElement(i), NO_REGISTERS); |
| 1504 } | 1504 } |
| 1505 | 1505 |
| 1506 if (result_saved) { | 1506 if (result_saved) { |
| 1507 context()->PlugTOS(); | 1507 context()->PlugTOS(); |
| 1508 } else { | 1508 } else { |
| 1509 context()->Plug(rax); | 1509 context()->Plug(rax); |
| (...skipping 2746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4256 *context_length = 0; | 4256 *context_length = 0; |
| 4257 return previous_; | 4257 return previous_; |
| 4258 } | 4258 } |
| 4259 | 4259 |
| 4260 | 4260 |
| 4261 #undef __ | 4261 #undef __ |
| 4262 | 4262 |
| 4263 } } // namespace v8::internal | 4263 } } // namespace v8::internal |
| 4264 | 4264 |
| 4265 #endif // V8_TARGET_ARCH_X64 | 4265 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |