| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC_CODE_STUBS_PPC_H_ | 5 #ifndef V8_PPC_CODE_STUBS_PPC_H_ |
| 6 #define V8_PPC_CODE_STUBS_PPC_H_ | 6 #define V8_PPC_CODE_STUBS_PPC_H_ |
| 7 | 7 |
| 8 #include "src/ppc/frames-ppc.h" | 8 #include "src/ppc/frames-ppc.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 case INCREMENTAL: | 140 case INCREMENTAL: |
| 141 DCHECK(GetMode(stub) == STORE_BUFFER_ONLY); | 141 DCHECK(GetMode(stub) == STORE_BUFFER_ONLY); |
| 142 PatchNopIntoBranch(&masm, Assembler::kInstrSize); | 142 PatchNopIntoBranch(&masm, Assembler::kInstrSize); |
| 143 break; | 143 break; |
| 144 case INCREMENTAL_COMPACTION: | 144 case INCREMENTAL_COMPACTION: |
| 145 DCHECK(GetMode(stub) == STORE_BUFFER_ONLY); | 145 DCHECK(GetMode(stub) == STORE_BUFFER_ONLY); |
| 146 PatchNopIntoBranch(&masm, Assembler::kInstrSize * 2); | 146 PatchNopIntoBranch(&masm, Assembler::kInstrSize * 2); |
| 147 break; | 147 break; |
| 148 } | 148 } |
| 149 DCHECK(GetMode(stub) == mode); | 149 DCHECK(GetMode(stub) == mode); |
| 150 CpuFeatures::FlushICache(stub->instruction_start() + Assembler::kInstrSize, | 150 Assembler::FlushICache(stub->GetIsolate(), |
| 151 2 * Assembler::kInstrSize); | 151 stub->instruction_start() + Assembler::kInstrSize, |
| 152 2 * Assembler::kInstrSize); |
| 152 } | 153 } |
| 153 | 154 |
| 154 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); | 155 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); |
| 155 | 156 |
| 156 private: | 157 private: |
| 157 // This is a helper class for freeing up 3 scratch registers. The input is | 158 // This is a helper class for freeing up 3 scratch registers. The input is |
| 158 // two registers that must be preserved and one scratch register provided by | 159 // two registers that must be preserved and one scratch register provided by |
| 159 // the caller. | 160 // the caller. |
| 160 class RegisterAllocation { | 161 class RegisterAllocation { |
| 161 public: | 162 public: |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 | 319 |
| 319 class LookupModeBits : public BitField<LookupMode, 0, 1> {}; | 320 class LookupModeBits : public BitField<LookupMode, 0, 1> {}; |
| 320 | 321 |
| 321 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); | 322 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); |
| 322 DEFINE_PLATFORM_CODE_STUB(NameDictionaryLookup, PlatformCodeStub); | 323 DEFINE_PLATFORM_CODE_STUB(NameDictionaryLookup, PlatformCodeStub); |
| 323 }; | 324 }; |
| 324 } | 325 } |
| 325 } // namespace v8::internal | 326 } // namespace v8::internal |
| 326 | 327 |
| 327 #endif // V8_PPC_CODE_STUBS_PPC_H_ | 328 #endif // V8_PPC_CODE_STUBS_PPC_H_ |
| OLD | NEW |