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_MIPS_CODE_STUBS_ARM_H_ | 5 #ifndef V8_MIPS_CODE_STUBS_ARM_H_ |
6 #define V8_MIPS_CODE_STUBS_ARM_H_ | 6 #define V8_MIPS_CODE_STUBS_ARM_H_ |
7 | 7 |
8 #include "src/ic-inl.h" | 8 #include "src/ic-inl.h" |
9 | 9 |
10 | 10 |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 case INCREMENTAL: | 264 case INCREMENTAL: |
265 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); | 265 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); |
266 PatchNopIntoBranch(&masm, 0); | 266 PatchNopIntoBranch(&masm, 0); |
267 break; | 267 break; |
268 case INCREMENTAL_COMPACTION: | 268 case INCREMENTAL_COMPACTION: |
269 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); | 269 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); |
270 PatchNopIntoBranch(&masm, 2 * Assembler::kInstrSize); | 270 PatchNopIntoBranch(&masm, 2 * Assembler::kInstrSize); |
271 break; | 271 break; |
272 } | 272 } |
273 ASSERT(GetMode(stub) == mode); | 273 ASSERT(GetMode(stub) == mode); |
274 CPU::FlushICache(stub->instruction_start(), 4 * Assembler::kInstrSize); | 274 CpuFeatures::FlushICache(stub->instruction_start(), |
| 275 4 * Assembler::kInstrSize); |
275 } | 276 } |
276 | 277 |
277 private: | 278 private: |
278 // This is a helper class for freeing up 3 scratch registers. The input is | 279 // This is a helper class for freeing up 3 scratch registers. The input is |
279 // two registers that must be preserved and one scratch register provided by | 280 // two registers that must be preserved and one scratch register provided by |
280 // the caller. | 281 // the caller. |
281 class RegisterAllocation { | 282 class RegisterAllocation { |
282 public: | 283 public: |
283 RegisterAllocation(Register object, | 284 RegisterAllocation(Register object, |
284 Register address, | 285 Register address, |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 | 443 |
443 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 444 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
444 | 445 |
445 LookupMode mode_; | 446 LookupMode mode_; |
446 }; | 447 }; |
447 | 448 |
448 | 449 |
449 } } // namespace v8::internal | 450 } } // namespace v8::internal |
450 | 451 |
451 #endif // V8_MIPS_CODE_STUBS_ARM_H_ | 452 #endif // V8_MIPS_CODE_STUBS_ARM_H_ |
OLD | NEW |