Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: src/arm/code-stubs-arm.h

Issue 1332283002: Make FlushICache part of Assembler(Base) and take Isolate as parameter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm64 PatchingAssembler that initialized its isolate with NULL :) Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm/assembler-arm-inl.h ('k') | src/arm/codegen-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm-inl.h ('k') | src/arm/codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698