| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_X64_CODE_STUBS_X64_H_ | 5 #ifndef V8_X64_CODE_STUBS_X64_H_ |
| 6 #define V8_X64_CODE_STUBS_X64_H_ | 6 #define V8_X64_CODE_STUBS_X64_H_ |
| 7 | 7 |
| 8 #include "src/ic-inl.h" | 8 #include "src/ic-inl.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); | 241 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); |
| 242 stub->instruction_start()[0] = kTwoByteJumpInstruction; | 242 stub->instruction_start()[0] = kTwoByteJumpInstruction; |
| 243 break; | 243 break; |
| 244 case INCREMENTAL_COMPACTION: | 244 case INCREMENTAL_COMPACTION: |
| 245 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); | 245 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); |
| 246 stub->instruction_start()[0] = kTwoByteNopInstruction; | 246 stub->instruction_start()[0] = kTwoByteNopInstruction; |
| 247 stub->instruction_start()[2] = kFiveByteJumpInstruction; | 247 stub->instruction_start()[2] = kFiveByteJumpInstruction; |
| 248 break; | 248 break; |
| 249 } | 249 } |
| 250 ASSERT(GetMode(stub) == mode); | 250 ASSERT(GetMode(stub) == mode); |
| 251 CPU::FlushICache(stub->instruction_start(), 7); | 251 CpuFeatures::FlushICache(stub->instruction_start(), 7); |
| 252 } | 252 } |
| 253 | 253 |
| 254 private: | 254 private: |
| 255 // This is a helper class for freeing up 3 scratch registers, where the third | 255 // This is a helper class for freeing up 3 scratch registers, where the third |
| 256 // is always rcx (needed for shift operations). The input is two registers | 256 // is always rcx (needed for shift operations). The input is two registers |
| 257 // that must be preserved and one scratch register provided by the caller. | 257 // that must be preserved and one scratch register provided by the caller. |
| 258 class RegisterAllocation { | 258 class RegisterAllocation { |
| 259 public: | 259 public: |
| 260 RegisterAllocation(Register object, | 260 RegisterAllocation(Register object, |
| 261 Register address, | 261 Register address, |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 RememberedSetAction remembered_set_action_; | 413 RememberedSetAction remembered_set_action_; |
| 414 SaveFPRegsMode save_fp_regs_mode_; | 414 SaveFPRegsMode save_fp_regs_mode_; |
| 415 Label slow_; | 415 Label slow_; |
| 416 RegisterAllocation regs_; | 416 RegisterAllocation regs_; |
| 417 }; | 417 }; |
| 418 | 418 |
| 419 | 419 |
| 420 } } // namespace v8::internal | 420 } } // namespace v8::internal |
| 421 | 421 |
| 422 #endif // V8_X64_CODE_STUBS_X64_H_ | 422 #endif // V8_X64_CODE_STUBS_X64_H_ |
| OLD | NEW |