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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // Restore the temporarily used register. | 169 // Restore the temporarily used register. |
170 __ LoadP(properties, FieldMemOperand(receiver, JSObject::kPropertiesOffset)); | 170 __ LoadP(properties, FieldMemOperand(receiver, JSObject::kPropertiesOffset)); |
171 | 171 |
172 | 172 |
173 NameDictionaryLookupStub::GenerateNegativeLookup( | 173 NameDictionaryLookupStub::GenerateNegativeLookup( |
174 masm, miss_label, &done, receiver, properties, name, scratch1); | 174 masm, miss_label, &done, receiver, properties, name, scratch1); |
175 __ bind(&done); | 175 __ bind(&done); |
176 __ DecrementCounter(counters->negative_lookups_miss(), 1, scratch0, scratch1); | 176 __ DecrementCounter(counters->negative_lookups_miss(), 1, scratch0, scratch1); |
177 } | 177 } |
178 | 178 |
179 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype( | |
180 MacroAssembler* masm, Register receiver, Register scratch1, | |
181 Register scratch2, Label* miss_label) { | |
182 __ TryGetFunctionPrototype(receiver, scratch1, scratch2, miss_label); | |
183 __ mr(r3, scratch1); | |
184 __ Ret(); | |
185 } | |
186 | |
187 | |
188 // Generate code to check that a global property cell is empty. Create | 179 // Generate code to check that a global property cell is empty. Create |
189 // the property cell at compilation time if no cell exists for the | 180 // the property cell at compilation time if no cell exists for the |
190 // property. | 181 // property. |
191 void PropertyHandlerCompiler::GenerateCheckPropertyCell( | 182 void PropertyHandlerCompiler::GenerateCheckPropertyCell( |
192 MacroAssembler* masm, Handle<JSGlobalObject> global, Handle<Name> name, | 183 MacroAssembler* masm, Handle<JSGlobalObject> global, Handle<Name> name, |
193 Register scratch, Label* miss) { | 184 Register scratch, Label* miss) { |
194 Handle<PropertyCell> cell = JSGlobalObject::EnsureEmptyPropertyCell( | 185 Handle<PropertyCell> cell = JSGlobalObject::EnsureEmptyPropertyCell( |
195 global, name, PropertyCellType::kInvalidated); | 186 global, name, PropertyCellType::kInvalidated); |
196 Isolate* isolate = masm->isolate(); | 187 Isolate* isolate = masm->isolate(); |
197 DCHECK(cell->value()->IsTheHole(isolate)); | 188 DCHECK(cell->value()->IsTheHole(isolate)); |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 // Return the generated code. | 600 // Return the generated code. |
610 return GetCode(kind(), name); | 601 return GetCode(kind(), name); |
611 } | 602 } |
612 | 603 |
613 | 604 |
614 #undef __ | 605 #undef __ |
615 } // namespace internal | 606 } // namespace internal |
616 } // namespace v8 | 607 } // namespace v8 |
617 | 608 |
618 #endif // V8_TARGET_ARCH_ARM | 609 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |