| 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 #if V8_TARGET_ARCH_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 6 | 6 |
| 7 #include "src/ic/handler-compiler.h" | 7 #include "src/ic/handler-compiler.h" |
| 8 | 8 |
| 9 #include "src/api-arguments.h" | 9 #include "src/api-arguments.h" |
| 10 #include "src/field-type.h" | 10 #include "src/field-type.h" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 __ Pop(slot, vector); | 123 __ Pop(slot, vector); |
| 124 } | 124 } |
| 125 | 125 |
| 126 | 126 |
| 127 void PropertyHandlerCompiler::DiscardVectorAndSlot() { | 127 void PropertyHandlerCompiler::DiscardVectorAndSlot() { |
| 128 MacroAssembler* masm = this->masm(); | 128 MacroAssembler* masm = this->masm(); |
| 129 // Remove vector and slot. | 129 // Remove vector and slot. |
| 130 __ addi(sp, sp, Operand(2 * kPointerSize)); | 130 __ addi(sp, sp, Operand(2 * kPointerSize)); |
| 131 } | 131 } |
| 132 | 132 |
| 133 void PropertyHandlerCompiler::PushReturnAddress(Register tmp) { UNREACHABLE(); } | 133 void PropertyHandlerCompiler::PushReturnAddress(Register tmp) { |
| 134 // No-op. Return address is in lr register. |
| 135 } |
| 134 | 136 |
| 135 void PropertyHandlerCompiler::PopReturnAddress(Register tmp) { UNREACHABLE(); } | 137 void PropertyHandlerCompiler::PopReturnAddress(Register tmp) { |
| 138 // No-op. Return address is in lr register. |
| 139 } |
| 136 | 140 |
| 137 void PropertyHandlerCompiler::GenerateDictionaryNegativeLookup( | 141 void PropertyHandlerCompiler::GenerateDictionaryNegativeLookup( |
| 138 MacroAssembler* masm, Label* miss_label, Register receiver, | 142 MacroAssembler* masm, Label* miss_label, Register receiver, |
| 139 Handle<Name> name, Register scratch0, Register scratch1) { | 143 Handle<Name> name, Register scratch0, Register scratch1) { |
| 140 DCHECK(name->IsUniqueName()); | 144 DCHECK(name->IsUniqueName()); |
| 141 DCHECK(!receiver.is(scratch0)); | 145 DCHECK(!receiver.is(scratch0)); |
| 142 Counters* counters = masm->isolate()->counters(); | 146 Counters* counters = masm->isolate()->counters(); |
| 143 __ IncrementCounter(counters->negative_lookups(), 1, scratch0, scratch1); | 147 __ IncrementCounter(counters->negative_lookups(), 1, scratch0, scratch1); |
| 144 __ IncrementCounter(counters->negative_lookups_miss(), 1, scratch0, scratch1); | 148 __ IncrementCounter(counters->negative_lookups_miss(), 1, scratch0, scratch1); |
| 145 | 149 |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 // Return the generated code. | 683 // Return the generated code. |
| 680 return GetCode(kind(), name); | 684 return GetCode(kind(), name); |
| 681 } | 685 } |
| 682 | 686 |
| 683 | 687 |
| 684 #undef __ | 688 #undef __ |
| 685 } // namespace internal | 689 } // namespace internal |
| 686 } // namespace v8 | 690 } // namespace v8 |
| 687 | 691 |
| 688 #endif // V8_TARGET_ARCH_ARM | 692 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |