Chromium Code Reviews| 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 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() { return true; } | 71 virtual bool IsPregenerated(Isolate* isolate) V8_OVERRIDE { return true; } |
| 72 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); | 72 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); |
| 73 virtual bool SometimesSetsUpAFrame() { return false; } | 73 virtual bool SometimesSetsUpAFrame() { return false; } |
| 74 | 74 |
| 75 private: | 75 private: |
| 76 SaveFPRegsMode save_doubles_; | 76 SaveFPRegsMode save_doubles_; |
| 77 | 77 |
| 78 Major MajorKey() { return StoreBufferOverflow; } | 78 Major MajorKey() { return StoreBufferOverflow; } |
| 79 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } | 79 int MinorKey() { return (save_doubles_ == kSaveFPRegs) ? 1 : 0; } |
| 80 }; | 80 }; |
| 81 | 81 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 225 // so you don't have to set up the frame. | 225 // so you don't have to set up the frame. |
| 226 class WriteInt32ToHeapNumberStub : public PlatformCodeStub { | 226 class WriteInt32ToHeapNumberStub : public PlatformCodeStub { |
| 227 public: | 227 public: |
| 228 WriteInt32ToHeapNumberStub(Register the_int, | 228 WriteInt32ToHeapNumberStub(Register the_int, |
| 229 Register the_heap_number, | 229 Register the_heap_number, |
| 230 Register scratch) | 230 Register scratch) |
| 231 : the_int_(the_int), | 231 : the_int_(the_int), |
| 232 the_heap_number_(the_heap_number), | 232 the_heap_number_(the_heap_number), |
| 233 scratch_(scratch) { } | 233 scratch_(scratch) { } |
| 234 | 234 |
| 235 bool IsPregenerated(); | 235 bool IsPregenerated(Isolate* isolate) V8_OVERRIDE; |
|
Sven Panne
2013/09/11 10:45:30
Hmmm, shouldn't we add a "virtual" while we're her
| |
| 236 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); | 236 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); |
| 237 | 237 |
| 238 private: | 238 private: |
| 239 Register the_int_; | 239 Register the_int_; |
| 240 Register the_heap_number_; | 240 Register the_heap_number_; |
| 241 Register scratch_; | 241 Register scratch_; |
| 242 | 242 |
| 243 // Minor key encoding in 16 bits. | 243 // Minor key encoding in 16 bits. |
| 244 class IntRegisterBits: public BitField<int, 0, 4> {}; | 244 class IntRegisterBits: public BitField<int, 0, 4> {}; |
| 245 class HeapNumberRegisterBits: public BitField<int, 4, 4> {}; | 245 class HeapNumberRegisterBits: public BitField<int, 4, 4> {}; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 298 address, // An input reg. | 298 address, // An input reg. |
| 299 value) { // One scratch reg. | 299 value) { // One scratch reg. |
| 300 } | 300 } |
| 301 | 301 |
| 302 enum Mode { | 302 enum Mode { |
| 303 STORE_BUFFER_ONLY, | 303 STORE_BUFFER_ONLY, |
| 304 INCREMENTAL, | 304 INCREMENTAL, |
| 305 INCREMENTAL_COMPACTION | 305 INCREMENTAL_COMPACTION |
| 306 }; | 306 }; |
| 307 | 307 |
| 308 virtual bool IsPregenerated(); | 308 virtual bool IsPregenerated(Isolate* isolate) V8_OVERRIDE; |
| 309 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); | 309 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); |
| 310 virtual bool SometimesSetsUpAFrame() { return false; } | 310 virtual bool SometimesSetsUpAFrame() { return false; } |
| 311 | 311 |
| 312 static void PatchBranchIntoNop(MacroAssembler* masm, int pos) { | 312 static void PatchBranchIntoNop(MacroAssembler* masm, int pos) { |
| 313 masm->instr_at_put(pos, (masm->instr_at(pos) & ~B27) | (B24 | B20)); | 313 masm->instr_at_put(pos, (masm->instr_at(pos) & ~B27) | (B24 | B20)); |
| 314 ASSERT(Assembler::IsTstImmediate(masm->instr_at(pos))); | 314 ASSERT(Assembler::IsTstImmediate(masm->instr_at(pos))); |
| 315 } | 315 } |
| 316 | 316 |
| 317 static void PatchNopIntoBranch(MacroAssembler* masm, int pos) { | 317 static void PatchNopIntoBranch(MacroAssembler* masm, int pos) { |
| 318 masm->instr_at_put(pos, (masm->instr_at(pos) & ~(B24 | B20)) | B27); | 318 masm->instr_at_put(pos, (masm->instr_at(pos) & ~(B24 | B20)) | B27); |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 530 | 530 |
| 531 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 531 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
| 532 | 532 |
| 533 LookupMode mode_; | 533 LookupMode mode_; |
| 534 }; | 534 }; |
| 535 | 535 |
| 536 | 536 |
| 537 } } // namespace v8::internal | 537 } } // namespace v8::internal |
| 538 | 538 |
| 539 #endif // V8_ARM_CODE_STUBS_ARM_H_ | 539 #endif // V8_ARM_CODE_STUBS_ARM_H_ |
| OLD | NEW |