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_IA32_CODE_STUBS_IA32_H_ | 5 #ifndef V8_IA32_CODE_STUBS_IA32_H_ |
6 #define V8_IA32_CODE_STUBS_IA32_H_ | 6 #define V8_IA32_CODE_STUBS_IA32_H_ |
7 | 7 |
8 #include "src/ic-inl.h" | 8 #include "src/ic-inl.h" |
9 #include "src/macro-assembler.h" | 9 #include "src/macro-assembler.h" |
10 | 10 |
(...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 ecx (needed for shift operations). The input is two registers | 256 // is always ecx (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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 Register address_; | 430 Register address_; |
431 RememberedSetAction remembered_set_action_; | 431 RememberedSetAction remembered_set_action_; |
432 SaveFPRegsMode save_fp_regs_mode_; | 432 SaveFPRegsMode save_fp_regs_mode_; |
433 RegisterAllocation regs_; | 433 RegisterAllocation regs_; |
434 }; | 434 }; |
435 | 435 |
436 | 436 |
437 } } // namespace v8::internal | 437 } } // namespace v8::internal |
438 | 438 |
439 #endif // V8_IA32_CODE_STUBS_IA32_H_ | 439 #endif // V8_IA32_CODE_STUBS_IA32_H_ |
OLD | NEW |