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

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

Issue 1476763002: Make whether or not a Code object should be created by masm explicit (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: enum class FTW Created 5 years 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/mips64/macro-assembler-mips64.cc ('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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 } 120 }
121 121
122 if (BF == (second_instruction & kBOfieldMask)) { 122 if (BF == (second_instruction & kBOfieldMask)) {
123 return INCREMENTAL_COMPACTION; 123 return INCREMENTAL_COMPACTION;
124 } 124 }
125 125
126 return STORE_BUFFER_ONLY; 126 return STORE_BUFFER_ONLY;
127 } 127 }
128 128
129 static void Patch(Code* stub, Mode mode) { 129 static void Patch(Code* stub, Mode mode) {
130 MacroAssembler masm(NULL, stub->instruction_start(), 130 MacroAssembler masm(stub->GetIsolate(), stub->instruction_start(),
131 stub->instruction_size()); 131 stub->instruction_size(), CodeObjectRequired::kNo);
132 switch (mode) { 132 switch (mode) {
133 case STORE_BUFFER_ONLY: 133 case STORE_BUFFER_ONLY:
134 DCHECK(GetMode(stub) == INCREMENTAL || 134 DCHECK(GetMode(stub) == INCREMENTAL ||
135 GetMode(stub) == INCREMENTAL_COMPACTION); 135 GetMode(stub) == INCREMENTAL_COMPACTION);
136 136
137 PatchBranchIntoNop(&masm, Assembler::kInstrSize); 137 PatchBranchIntoNop(&masm, Assembler::kInstrSize);
138 PatchBranchIntoNop(&masm, Assembler::kInstrSize * 2); 138 PatchBranchIntoNop(&masm, Assembler::kInstrSize * 2);
139 break; 139 break;
140 case INCREMENTAL: 140 case INCREMENTAL:
141 DCHECK(GetMode(stub) == STORE_BUFFER_ONLY); 141 DCHECK(GetMode(stub) == STORE_BUFFER_ONLY);
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 319
320 class LookupModeBits : public BitField<LookupMode, 0, 1> {}; 320 class LookupModeBits : public BitField<LookupMode, 0, 1> {};
321 321
322 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); 322 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR();
323 DEFINE_PLATFORM_CODE_STUB(NameDictionaryLookup, PlatformCodeStub); 323 DEFINE_PLATFORM_CODE_STUB(NameDictionaryLookup, PlatformCodeStub);
324 }; 324 };
325 } // namespace internal 325 } // namespace internal
326 } // namespace v8 326 } // namespace v8
327 327
328 #endif // V8_PPC_CODE_STUBS_PPC_H_ 328 #endif // V8_PPC_CODE_STUBS_PPC_H_
OLDNEW
« no previous file with comments | « src/mips64/macro-assembler-mips64.cc ('k') | src/ppc/codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698