| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 | 63 |
| 64 class StoreBufferOverflowStub: public PlatformCodeStub { | 64 class StoreBufferOverflowStub: public PlatformCodeStub { |
| 65 public: | 65 public: |
| 66 explicit StoreBufferOverflowStub(SaveFPRegsMode save_fp) | 66 explicit StoreBufferOverflowStub(SaveFPRegsMode save_fp) |
| 67 : save_doubles_(save_fp) { } | 67 : save_doubles_(save_fp) { } |
| 68 | 68 |
| 69 void Generate(MacroAssembler* masm); | 69 void Generate(MacroAssembler* masm); |
| 70 | 70 |
| 71 virtual bool IsPregenerated(Isolate* isolate) V8_OVERRIDE { | |
| 72 USE(isolate); | |
| 73 return true; | |
| 74 } | |
| 75 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); | 71 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); |
| 76 virtual bool SometimesSetsUpAFrame() { return false; } | 72 virtual bool SometimesSetsUpAFrame() { return false; } |
| 77 | 73 |
| 78 private: | 74 private: |
| 79 SaveFPRegsMode save_doubles_; | 75 SaveFPRegsMode save_doubles_; |
| 80 | 76 |
| 81 Major MajorKey() { return StoreBufferOverflow; } | 77 Major MajorKey() { return StoreBufferOverflow; } |
| 82 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } | 78 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } |
| 83 }; | 79 }; |
| 84 | 80 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 address, // An input reg. | 169 address, // An input reg. |
| 174 value) { // One scratch reg. | 170 value) { // One scratch reg. |
| 175 } | 171 } |
| 176 | 172 |
| 177 enum Mode { | 173 enum Mode { |
| 178 STORE_BUFFER_ONLY, | 174 STORE_BUFFER_ONLY, |
| 179 INCREMENTAL, | 175 INCREMENTAL, |
| 180 INCREMENTAL_COMPACTION | 176 INCREMENTAL_COMPACTION |
| 181 }; | 177 }; |
| 182 | 178 |
| 183 virtual bool IsPregenerated(Isolate* isolate) V8_OVERRIDE; | |
| 184 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); | |
| 185 virtual bool SometimesSetsUpAFrame() { return false; } | 179 virtual bool SometimesSetsUpAFrame() { return false; } |
| 186 | 180 |
| 187 static Mode GetMode(Code* stub) { | 181 static Mode GetMode(Code* stub) { |
| 188 // Find the mode depending on the first two instructions. | 182 // Find the mode depending on the first two instructions. |
| 189 Instruction* instr1 = | 183 Instruction* instr1 = |
| 190 reinterpret_cast<Instruction*>(stub->instruction_start()); | 184 reinterpret_cast<Instruction*>(stub->instruction_start()); |
| 191 Instruction* instr2 = instr1->following(); | 185 Instruction* instr2 = instr1->following(); |
| 192 | 186 |
| 193 if (instr1->IsUncondBranchImm()) { | 187 if (instr1->IsUncondBranchImm()) { |
| 194 ASSERT(instr2->IsPCRelAddressing() && (instr2->Rd() == xzr.code())); | 188 ASSERT(instr2->IsPCRelAddressing() && (instr2->Rd() == xzr.code())); |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 Register length, | 521 Register length, |
| 528 Register scratch1, | 522 Register scratch1, |
| 529 Register scratch2, | 523 Register scratch2, |
| 530 Label* chars_not_equal); | 524 Label* chars_not_equal); |
| 531 }; | 525 }; |
| 532 | 526 |
| 533 | 527 |
| 534 } } // namespace v8::internal | 528 } } // namespace v8::internal |
| 535 | 529 |
| 536 #endif // V8_A64_CODE_STUBS_A64_H_ | 530 #endif // V8_A64_CODE_STUBS_A64_H_ |
| OLD | NEW |