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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |