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

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

Issue 1339673002: PPC: Make FlushICache part of Assembler(Base) and take Isolate as parameter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/ppc/assembler-ppc-inl.h ('k') | src/ppc/codegen-ppc.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 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
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
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_
OLDNEW
« no previous file with comments | « src/ppc/assembler-ppc-inl.h ('k') | src/ppc/codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698