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

Side by Side Diff: src/ic/ppc/handler-compiler-ppc.cc

Issue 2686723004: [stubs] Port LoadFunctionPrototypeStub to CSA (Closed)
Patch Set: Created 3 years, 10 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/ic/mips64/handler-compiler-mips64.cc ('k') | src/ic/s390/handler-compiler-s390.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 #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
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
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
OLDNEW
« no previous file with comments | « src/ic/mips64/handler-compiler-mips64.cc ('k') | src/ic/s390/handler-compiler-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698