| 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 void Restore(MacroAssembler* masm) { | 477 void Restore(MacroAssembler* masm) { |
| 478 masm->pop(scratch1_); | 478 masm->pop(scratch1_); |
| 479 } | 479 } |
| 480 | 480 |
| 481 // If we have to call into C then we need to save and restore all caller- | 481 // If we have to call into C then we need to save and restore all caller- |
| 482 // saved registers that were not already preserved. The scratch registers | 482 // saved registers that were not already preserved. The scratch registers |
| 483 // will be restored by other means so we don't bother pushing them here. | 483 // will be restored by other means so we don't bother pushing them here. |
| 484 void SaveCallerSaveRegisters(MacroAssembler* masm, SaveFPRegsMode mode) { | 484 void SaveCallerSaveRegisters(MacroAssembler* masm, SaveFPRegsMode mode) { |
| 485 masm->MultiPush((kJSCallerSaved | ra.bit()) & ~scratch1_.bit()); | 485 masm->MultiPush((kJSCallerSaved | ra.bit()) & ~scratch1_.bit()); |
| 486 if (mode == kSaveFPRegs) { | 486 if (mode == kSaveFPRegs) { |
| 487 CpuFeatures::Scope scope(FPU); | 487 CpuFeatureScope scope(masm, FPU); |
| 488 masm->MultiPushFPU(kCallerSavedFPU); | 488 masm->MultiPushFPU(kCallerSavedFPU); |
| 489 } | 489 } |
| 490 } | 490 } |
| 491 | 491 |
| 492 inline void RestoreCallerSaveRegisters(MacroAssembler*masm, | 492 inline void RestoreCallerSaveRegisters(MacroAssembler*masm, |
| 493 SaveFPRegsMode mode) { | 493 SaveFPRegsMode mode) { |
| 494 if (mode == kSaveFPRegs) { | 494 if (mode == kSaveFPRegs) { |
| 495 CpuFeatures::Scope scope(FPU); | 495 CpuFeatureScope scope(masm, FPU); |
| 496 masm->MultiPopFPU(kCallerSavedFPU); | 496 masm->MultiPopFPU(kCallerSavedFPU); |
| 497 } | 497 } |
| 498 masm->MultiPop((kJSCallerSaved | ra.bit()) & ~scratch1_.bit()); | 498 masm->MultiPop((kJSCallerSaved | ra.bit()) & ~scratch1_.bit()); |
| 499 } | 499 } |
| 500 | 500 |
| 501 inline Register object() { return object_; } | 501 inline Register object() { return object_; } |
| 502 inline Register address() { return address_; } | 502 inline Register address() { return address_; } |
| 503 inline Register scratch0() { return scratch0_; } | 503 inline Register scratch0() { return scratch0_; } |
| 504 inline Register scratch1() { return scratch1_; } | 504 inline Register scratch1() { return scratch1_; } |
| 505 | 505 |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 | 785 |
| 786 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 786 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
| 787 | 787 |
| 788 LookupMode mode_; | 788 LookupMode mode_; |
| 789 }; | 789 }; |
| 790 | 790 |
| 791 | 791 |
| 792 } } // namespace v8::internal | 792 } } // namespace v8::internal |
| 793 | 793 |
| 794 #endif // V8_MIPS_CODE_STUBS_ARM_H_ | 794 #endif // V8_MIPS_CODE_STUBS_ARM_H_ |
| OLD | NEW |