| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 | 60 |
| 61 class StoreBufferOverflowStub: public PlatformCodeStub { | 61 class StoreBufferOverflowStub: public PlatformCodeStub { |
| 62 public: | 62 public: |
| 63 explicit StoreBufferOverflowStub(SaveFPRegsMode save_fp) | 63 explicit StoreBufferOverflowStub(SaveFPRegsMode save_fp) |
| 64 : save_doubles_(save_fp) { } | 64 : save_doubles_(save_fp) { } |
| 65 | 65 |
| 66 void Generate(MacroAssembler* masm); | 66 void Generate(MacroAssembler* masm); |
| 67 | 67 |
| 68 virtual bool IsPregenerated(); | 68 virtual bool IsPregenerated(); |
| 69 static void GenerateFixedRegStubsAheadOfTime(); | 69 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); |
| 70 virtual bool SometimesSetsUpAFrame() { return false; } | 70 virtual bool SometimesSetsUpAFrame() { return false; } |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 SaveFPRegsMode save_doubles_; | 73 SaveFPRegsMode save_doubles_; |
| 74 | 74 |
| 75 Major MajorKey() { return StoreBufferOverflow; } | 75 Major MajorKey() { return StoreBufferOverflow; } |
| 76 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } | 76 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 | 79 |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 class WriteInt32ToHeapNumberStub : public PlatformCodeStub { | 298 class WriteInt32ToHeapNumberStub : public PlatformCodeStub { |
| 299 public: | 299 public: |
| 300 WriteInt32ToHeapNumberStub(Register the_int, | 300 WriteInt32ToHeapNumberStub(Register the_int, |
| 301 Register the_heap_number, | 301 Register the_heap_number, |
| 302 Register scratch) | 302 Register scratch) |
| 303 : the_int_(the_int), | 303 : the_int_(the_int), |
| 304 the_heap_number_(the_heap_number), | 304 the_heap_number_(the_heap_number), |
| 305 scratch_(scratch) { } | 305 scratch_(scratch) { } |
| 306 | 306 |
| 307 bool IsPregenerated(); | 307 bool IsPregenerated(); |
| 308 static void GenerateFixedRegStubsAheadOfTime(); | 308 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); |
| 309 | 309 |
| 310 private: | 310 private: |
| 311 Register the_int_; | 311 Register the_int_; |
| 312 Register the_heap_number_; | 312 Register the_heap_number_; |
| 313 Register scratch_; | 313 Register scratch_; |
| 314 | 314 |
| 315 // Minor key encoding in 16 bits. | 315 // Minor key encoding in 16 bits. |
| 316 class IntRegisterBits: public BitField<int, 0, 4> {}; | 316 class IntRegisterBits: public BitField<int, 0, 4> {}; |
| 317 class HeapNumberRegisterBits: public BitField<int, 4, 4> {}; | 317 class HeapNumberRegisterBits: public BitField<int, 4, 4> {}; |
| 318 class ScratchRegisterBits: public BitField<int, 8, 4> {}; | 318 class ScratchRegisterBits: public BitField<int, 8, 4> {}; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 value) { // One scratch reg. | 372 value) { // One scratch reg. |
| 373 } | 373 } |
| 374 | 374 |
| 375 enum Mode { | 375 enum Mode { |
| 376 STORE_BUFFER_ONLY, | 376 STORE_BUFFER_ONLY, |
| 377 INCREMENTAL, | 377 INCREMENTAL, |
| 378 INCREMENTAL_COMPACTION | 378 INCREMENTAL_COMPACTION |
| 379 }; | 379 }; |
| 380 | 380 |
| 381 virtual bool IsPregenerated(); | 381 virtual bool IsPregenerated(); |
| 382 static void GenerateFixedRegStubsAheadOfTime(); | 382 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); |
| 383 virtual bool SometimesSetsUpAFrame() { return false; } | 383 virtual bool SometimesSetsUpAFrame() { return false; } |
| 384 | 384 |
| 385 static void PatchBranchIntoNop(MacroAssembler* masm, int pos) { | 385 static void PatchBranchIntoNop(MacroAssembler* masm, int pos) { |
| 386 masm->instr_at_put(pos, (masm->instr_at(pos) & ~B27) | (B24 | B20)); | 386 masm->instr_at_put(pos, (masm->instr_at(pos) & ~B27) | (B24 | B20)); |
| 387 ASSERT(Assembler::IsTstImmediate(masm->instr_at(pos))); | 387 ASSERT(Assembler::IsTstImmediate(masm->instr_at(pos))); |
| 388 } | 388 } |
| 389 | 389 |
| 390 static void PatchNopIntoBranch(MacroAssembler* masm, int pos) { | 390 static void PatchNopIntoBranch(MacroAssembler* masm, int pos) { |
| 391 masm->instr_at_put(pos, (masm->instr_at(pos) & ~(B24 | B20)) | B27); | 391 masm->instr_at_put(pos, (masm->instr_at(pos) & ~(B24 | B20)) | B27); |
| 392 ASSERT(Assembler::IsBranch(masm->instr_at(pos))); | 392 ASSERT(Assembler::IsBranch(masm->instr_at(pos))); |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 | 791 |
| 792 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 792 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
| 793 | 793 |
| 794 LookupMode mode_; | 794 LookupMode mode_; |
| 795 }; | 795 }; |
| 796 | 796 |
| 797 | 797 |
| 798 } } // namespace v8::internal | 798 } } // namespace v8::internal |
| 799 | 799 |
| 800 #endif // V8_ARM_CODE_STUBS_ARM_H_ | 800 #endif // V8_ARM_CODE_STUBS_ARM_H_ |
| OLD | NEW |