| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 5611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5622 __ str(tmp3, MemOperand(tmp1, index2)); | 5622 __ str(tmp3, MemOperand(tmp1, index2)); |
| 5623 __ str(tmp2, MemOperand(tmp1, index1)); | 5623 __ str(tmp2, MemOperand(tmp1, index1)); |
| 5624 | 5624 |
| 5625 #ifdef ENABLE_CARDMARKING_WRITE_BARRIER | 5625 #ifdef ENABLE_CARDMARKING_WRITE_BARRIER |
| 5626 Label done; | 5626 Label done; |
| 5627 __ InNewSpace(tmp1, tmp2, eq, &done); | 5627 __ InNewSpace(tmp1, tmp2, eq, &done); |
| 5628 // Possible optimization: do a check that both values are Smis | 5628 // Possible optimization: do a check that both values are Smis |
| 5629 // (or them and test against Smi mask.) | 5629 // (or them and test against Smi mask.) |
| 5630 | 5630 |
| 5631 __ mov(tmp2, tmp1); | 5631 __ mov(tmp2, tmp1); |
| 5632 RecordWriteStub recordWrite1(tmp1, index1, tmp3); | 5632 __ add(index1, index1, tmp1); |
| 5633 __ CallStub(&recordWrite1); | 5633 __ add(index2, index2, tmp1); |
| 5634 | 5634 __ RecordWriteHelper(tmp1, index1, tmp3); |
| 5635 RecordWriteStub recordWrite2(tmp2, index2, tmp3); | 5635 __ RecordWriteHelper(tmp2, index2, tmp3); |
| 5636 __ CallStub(&recordWrite2); | |
| 5637 | |
| 5638 __ bind(&done); | 5636 __ bind(&done); |
| 5639 #endif | 5637 #endif |
| 5640 | 5638 |
| 5641 deferred->BindExit(); | 5639 deferred->BindExit(); |
| 5642 __ LoadRoot(tmp1, Heap::kUndefinedValueRootIndex); | 5640 __ LoadRoot(tmp1, Heap::kUndefinedValueRootIndex); |
| 5643 frame_->EmitPush(tmp1); | 5641 frame_->EmitPush(tmp1); |
| 5644 } | 5642 } |
| 5645 | 5643 |
| 5646 | 5644 |
| 5647 void CodeGenerator::GenerateCallFunction(ZoneList<Expression*>* args) { | 5645 void CodeGenerator::GenerateCallFunction(ZoneList<Expression*>* args) { |
| (...skipping 1736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7384 BinaryOpIC::GetName(runtime_operands_type_)); | 7382 BinaryOpIC::GetName(runtime_operands_type_)); |
| 7385 return name_; | 7383 return name_; |
| 7386 } | 7384 } |
| 7387 | 7385 |
| 7388 | 7386 |
| 7389 #undef __ | 7387 #undef __ |
| 7390 | 7388 |
| 7391 } } // namespace v8::internal | 7389 } } // namespace v8::internal |
| 7392 | 7390 |
| 7393 #endif // V8_TARGET_ARCH_ARM | 7391 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |