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/arm/frames-arm.h" | 8 #include "src/arm/frames-arm.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 case INCREMENTAL: | 122 case INCREMENTAL: |
123 DCHECK(GetMode(stub) == STORE_BUFFER_ONLY); | 123 DCHECK(GetMode(stub) == STORE_BUFFER_ONLY); |
124 PatchNopIntoBranch(&masm, 0); | 124 PatchNopIntoBranch(&masm, 0); |
125 break; | 125 break; |
126 case INCREMENTAL_COMPACTION: | 126 case INCREMENTAL_COMPACTION: |
127 DCHECK(GetMode(stub) == STORE_BUFFER_ONLY); | 127 DCHECK(GetMode(stub) == STORE_BUFFER_ONLY); |
128 PatchNopIntoBranch(&masm, Assembler::kInstrSize); | 128 PatchNopIntoBranch(&masm, Assembler::kInstrSize); |
129 break; | 129 break; |
130 } | 130 } |
131 DCHECK(GetMode(stub) == mode); | 131 DCHECK(GetMode(stub) == mode); |
132 CpuFeatures::FlushICache(stub->instruction_start(), | 132 Assembler::FlushICache(stub->GetIsolate(), stub->instruction_start(), |
133 2 * Assembler::kInstrSize); | 133 2 * Assembler::kInstrSize); |
134 } | 134 } |
135 | 135 |
136 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); | 136 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); |
137 | 137 |
138 private: | 138 private: |
139 // This is a helper class for freeing up 3 scratch registers. The input is | 139 // This is a helper class for freeing up 3 scratch registers. The input is |
140 // two registers that must be preserved and one scratch register provided by | 140 // two registers that must be preserved and one scratch register provided by |
141 // the caller. | 141 // the caller. |
142 class RegisterAllocation { | 142 class RegisterAllocation { |
143 public: | 143 public: |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 | 307 |
308 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 308 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
309 | 309 |
310 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); | 310 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); |
311 DEFINE_PLATFORM_CODE_STUB(NameDictionaryLookup, PlatformCodeStub); | 311 DEFINE_PLATFORM_CODE_STUB(NameDictionaryLookup, PlatformCodeStub); |
312 }; | 312 }; |
313 | 313 |
314 } } // namespace v8::internal | 314 } } // namespace v8::internal |
315 | 315 |
316 #endif // V8_ARM_CODE_STUBS_ARM_H_ | 316 #endif // V8_ARM_CODE_STUBS_ARM_H_ |
OLD | NEW |