| 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 namespace v8 { | 8 namespace v8 { |
| 9 namespace internal { | 9 namespace internal { |
| 10 | 10 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 DCHECK(GetMode(stub) == STORE_BUFFER_ONLY); | 178 DCHECK(GetMode(stub) == STORE_BUFFER_ONLY); |
| 179 stub->instruction_start()[0] = kTwoByteJumpInstruction; | 179 stub->instruction_start()[0] = kTwoByteJumpInstruction; |
| 180 break; | 180 break; |
| 181 case INCREMENTAL_COMPACTION: | 181 case INCREMENTAL_COMPACTION: |
| 182 DCHECK(GetMode(stub) == STORE_BUFFER_ONLY); | 182 DCHECK(GetMode(stub) == STORE_BUFFER_ONLY); |
| 183 stub->instruction_start()[0] = kTwoByteNopInstruction; | 183 stub->instruction_start()[0] = kTwoByteNopInstruction; |
| 184 stub->instruction_start()[2] = kFiveByteJumpInstruction; | 184 stub->instruction_start()[2] = kFiveByteJumpInstruction; |
| 185 break; | 185 break; |
| 186 } | 186 } |
| 187 DCHECK(GetMode(stub) == mode); | 187 DCHECK(GetMode(stub) == mode); |
| 188 CpuFeatures::FlushICache(stub->instruction_start(), 7); | 188 Assembler::FlushICache(stub->GetIsolate(), stub->instruction_start(), 7); |
| 189 } | 189 } |
| 190 | 190 |
| 191 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); | 191 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); |
| 192 | 192 |
| 193 private: | 193 private: |
| 194 // This is a helper class for freeing up 3 scratch registers, where the third | 194 // This is a helper class for freeing up 3 scratch registers, where the third |
| 195 // is always ecx (needed for shift operations). The input is two registers | 195 // is always ecx (needed for shift operations). The input is two registers |
| 196 // that must be preserved and one scratch register provided by the caller. | 196 // that must be preserved and one scratch register provided by the caller. |
| 197 class RegisterAllocation { | 197 class RegisterAllocation { |
| 198 public: | 198 public: |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 | 370 |
| 371 RegisterAllocation regs_; | 371 RegisterAllocation regs_; |
| 372 | 372 |
| 373 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub); | 373 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub); |
| 374 }; | 374 }; |
| 375 | 375 |
| 376 | 376 |
| 377 } } // namespace v8::internal | 377 } } // namespace v8::internal |
| 378 | 378 |
| 379 #endif // V8_X87_CODE_STUBS_X87_H_ | 379 #endif // V8_X87_CODE_STUBS_X87_H_ |
| OLD | NEW |