| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_ARM_CODE_STUBS_ARM_H_ | 5 #ifndef V8_ARM_CODE_STUBS_ARM_H_ |
| 6 #define V8_ARM_CODE_STUBS_ARM_H_ | 6 #define V8_ARM_CODE_STUBS_ARM_H_ |
| 7 | 7 |
| 8 #include "src/ic-inl.h" | 8 #include "src/ic-inl.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 case INCREMENTAL: | 222 case INCREMENTAL: |
| 223 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); | 223 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); |
| 224 PatchNopIntoBranch(&masm, 0); | 224 PatchNopIntoBranch(&masm, 0); |
| 225 break; | 225 break; |
| 226 case INCREMENTAL_COMPACTION: | 226 case INCREMENTAL_COMPACTION: |
| 227 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); | 227 ASSERT(GetMode(stub) == STORE_BUFFER_ONLY); |
| 228 PatchNopIntoBranch(&masm, Assembler::kInstrSize); | 228 PatchNopIntoBranch(&masm, Assembler::kInstrSize); |
| 229 break; | 229 break; |
| 230 } | 230 } |
| 231 ASSERT(GetMode(stub) == mode); | 231 ASSERT(GetMode(stub) == mode); |
| 232 CPU::FlushICache(stub->instruction_start(), 2 * Assembler::kInstrSize); | 232 CpuFeatures::FlushICache(stub->instruction_start(), |
| 233 2 * Assembler::kInstrSize); |
| 233 } | 234 } |
| 234 | 235 |
| 235 private: | 236 private: |
| 236 // This is a helper class for freeing up 3 scratch registers. The input is | 237 // This is a helper class for freeing up 3 scratch registers. The input is |
| 237 // two registers that must be preserved and one scratch register provided by | 238 // two registers that must be preserved and one scratch register provided by |
| 238 // the caller. | 239 // the caller. |
| 239 class RegisterAllocation { | 240 class RegisterAllocation { |
| 240 public: | 241 public: |
| 241 RegisterAllocation(Register object, | 242 RegisterAllocation(Register object, |
| 242 Register address, | 243 Register address, |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 TargetAddressStorageMode storage_mode() { return storage_mode_; } | 414 TargetAddressStorageMode storage_mode() { return storage_mode_; } |
| 414 | 415 |
| 415 private: | 416 private: |
| 416 TargetAddressStorageMode storage_mode_; | 417 TargetAddressStorageMode storage_mode_; |
| 417 }; | 418 }; |
| 418 | 419 |
| 419 | 420 |
| 420 } } // namespace v8::internal | 421 } } // namespace v8::internal |
| 421 | 422 |
| 422 #endif // V8_ARM_CODE_STUBS_ARM_H_ | 423 #endif // V8_ARM_CODE_STUBS_ARM_H_ |
| OLD | NEW |