| 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 void ArrayNativeCode(MacroAssembler* masm, | 38 void ArrayNativeCode(MacroAssembler* masm, |
| 39 bool construct_call, | 39 bool construct_call, |
| 40 Label* call_generic_code); | 40 Label* call_generic_code); |
| 41 | 41 |
| 42 | 42 |
| 43 class StoreBufferOverflowStub: public PlatformCodeStub { | 43 class StoreBufferOverflowStub: public PlatformCodeStub { |
| 44 public: | 44 public: |
| 45 StoreBufferOverflowStub(Isolate* isolate, SaveFPRegsMode save_fp) | 45 StoreBufferOverflowStub(Isolate* isolate, SaveFPRegsMode save_fp) |
| 46 : PlatformCodeStub(isolate), save_doubles_(save_fp) { | 46 : PlatformCodeStub(isolate), save_doubles_(save_fp) { |
| 47 ASSERT(CpuFeatures::IsSafeForSnapshot(SSE2) || save_fp == kDontSaveFPRegs); | 47 ASSERT(CpuFeatures::IsSafeForSnapshot(isolate, SSE2) || |
| 48 save_fp == kDontSaveFPRegs); |
| 48 } | 49 } |
| 49 | 50 |
| 50 void Generate(MacroAssembler* masm); | 51 void Generate(MacroAssembler* masm); |
| 51 | 52 |
| 52 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); | 53 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); |
| 53 virtual bool SometimesSetsUpAFrame() { return false; } | 54 virtual bool SometimesSetsUpAFrame() { return false; } |
| 54 | 55 |
| 55 private: | 56 private: |
| 56 SaveFPRegsMode save_doubles_; | 57 SaveFPRegsMode save_doubles_; |
| 57 | 58 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 SaveFPRegsMode fp_mode) | 213 SaveFPRegsMode fp_mode) |
| 213 : PlatformCodeStub(isolate), | 214 : PlatformCodeStub(isolate), |
| 214 object_(object), | 215 object_(object), |
| 215 value_(value), | 216 value_(value), |
| 216 address_(address), | 217 address_(address), |
| 217 remembered_set_action_(remembered_set_action), | 218 remembered_set_action_(remembered_set_action), |
| 218 save_fp_regs_mode_(fp_mode), | 219 save_fp_regs_mode_(fp_mode), |
| 219 regs_(object, // An input reg. | 220 regs_(object, // An input reg. |
| 220 address, // An input reg. | 221 address, // An input reg. |
| 221 value) { // One scratch reg. | 222 value) { // One scratch reg. |
| 222 ASSERT(CpuFeatures::IsSafeForSnapshot(SSE2) || fp_mode == kDontSaveFPRegs); | 223 ASSERT(CpuFeatures::IsSafeForSnapshot(isolate, SSE2) || |
| 224 fp_mode == kDontSaveFPRegs); |
| 223 } | 225 } |
| 224 | 226 |
| 225 enum Mode { | 227 enum Mode { |
| 226 STORE_BUFFER_ONLY, | 228 STORE_BUFFER_ONLY, |
| 227 INCREMENTAL, | 229 INCREMENTAL, |
| 228 INCREMENTAL_COMPACTION | 230 INCREMENTAL_COMPACTION |
| 229 }; | 231 }; |
| 230 | 232 |
| 231 virtual bool SometimesSetsUpAFrame() { return false; } | 233 virtual bool SometimesSetsUpAFrame() { return false; } |
| 232 | 234 |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 Register address_; | 460 Register address_; |
| 459 RememberedSetAction remembered_set_action_; | 461 RememberedSetAction remembered_set_action_; |
| 460 SaveFPRegsMode save_fp_regs_mode_; | 462 SaveFPRegsMode save_fp_regs_mode_; |
| 461 RegisterAllocation regs_; | 463 RegisterAllocation regs_; |
| 462 }; | 464 }; |
| 463 | 465 |
| 464 | 466 |
| 465 } } // namespace v8::internal | 467 } } // namespace v8::internal |
| 466 | 468 |
| 467 #endif // V8_IA32_CODE_STUBS_IA32_H_ | 469 #endif // V8_IA32_CODE_STUBS_IA32_H_ |
| OLD | NEW |