| 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_X87_CODE_STUBS_X87_H_ | 5 #ifndef V8_X87_CODE_STUBS_X87_H_ |
| 6 #define V8_X87_CODE_STUBS_X87_H_ | 6 #define V8_X87_CODE_STUBS_X87_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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); | 237 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); |
| 238 stub->instruction_start()[0] = kTwoByteJumpInstruction; | 238 stub->instruction_start()[0] = kTwoByteJumpInstruction; |
| 239 break; | 239 break; |
| 240 case INCREMENTAL_COMPACTION: | 240 case INCREMENTAL_COMPACTION: |
| 241 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); | 241 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); |
| 242 stub->instruction_start()[0] = kTwoByteNopInstruction; | 242 stub->instruction_start()[0] = kTwoByteNopInstruction; |
| 243 stub->instruction_start()[2] = kFiveByteJumpInstruction; | 243 stub->instruction_start()[2] = kFiveByteJumpInstruction; |
| 244 break; | 244 break; |
| 245 } | 245 } |
| 246 ASSERT(GetMode(stub) == mode); | 246 ASSERT(GetMode(stub) == mode); |
| 247 CPU::FlushICache(stub->instruction_start(), 7); | 247 CpuFeatures::FlushICache(stub->instruction_start(), 7); |
| 248 } | 248 } |
| 249 | 249 |
| 250 private: | 250 private: |
| 251 // This is a helper class for freeing up 3 scratch registers, where the third | 251 // This is a helper class for freeing up 3 scratch registers, where the third |
| 252 // is always ecx (needed for shift operations). The input is two registers | 252 // is always ecx (needed for shift operations). The input is two registers |
| 253 // that must be preserved and one scratch register provided by the caller. | 253 // that must be preserved and one scratch register provided by the caller. |
| 254 class RegisterAllocation { | 254 class RegisterAllocation { |
| 255 public: | 255 public: |
| 256 RegisterAllocation(Register object, | 256 RegisterAllocation(Register object, |
| 257 Register address, | 257 Register address, |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 Register value_; | 404 Register value_; |
| 405 Register address_; | 405 Register address_; |
| 406 RememberedSetAction remembered_set_action_; | 406 RememberedSetAction remembered_set_action_; |
| 407 RegisterAllocation regs_; | 407 RegisterAllocation regs_; |
| 408 }; | 408 }; |
| 409 | 409 |
| 410 | 410 |
| 411 } } // namespace v8::internal | 411 } } // namespace v8::internal |
| 412 | 412 |
| 413 #endif // V8_X87_CODE_STUBS_X87_H_ | 413 #endif // V8_X87_CODE_STUBS_X87_H_ |
| OLD | NEW |