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

Side by Side Diff: src/ic/s390/handler-compiler-s390.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/ppc/handler-compiler-ppc.cc ('k') | src/ic/x64/handler-compiler-x64.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_S390 5 #if V8_TARGET_ARCH_S390
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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 // Restore the temporarily used register. 163 // Restore the temporarily used register.
164 __ LoadP(properties, FieldMemOperand(receiver, JSObject::kPropertiesOffset)); 164 __ LoadP(properties, FieldMemOperand(receiver, JSObject::kPropertiesOffset));
165 165
166 NameDictionaryLookupStub::GenerateNegativeLookup( 166 NameDictionaryLookupStub::GenerateNegativeLookup(
167 masm, miss_label, &done, receiver, properties, name, scratch1); 167 masm, miss_label, &done, receiver, properties, name, scratch1);
168 __ bind(&done); 168 __ bind(&done);
169 __ DecrementCounter(counters->negative_lookups_miss(), 1, scratch0, scratch1); 169 __ DecrementCounter(counters->negative_lookups_miss(), 1, scratch0, scratch1);
170 } 170 }
171 171
172 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(
173 MacroAssembler* masm, Register receiver, Register scratch1,
174 Register scratch2, Label* miss_label) {
175 __ TryGetFunctionPrototype(receiver, scratch1, scratch2, miss_label);
176 __ LoadRR(r2, scratch1);
177 __ Ret();
178 }
179
180 // Generate code to check that a global property cell is empty. Create 172 // Generate code to check that a global property cell is empty. Create
181 // the property cell at compilation time if no cell exists for the 173 // the property cell at compilation time if no cell exists for the
182 // property. 174 // property.
183 void PropertyHandlerCompiler::GenerateCheckPropertyCell( 175 void PropertyHandlerCompiler::GenerateCheckPropertyCell(
184 MacroAssembler* masm, Handle<JSGlobalObject> global, Handle<Name> name, 176 MacroAssembler* masm, Handle<JSGlobalObject> global, Handle<Name> name,
185 Register scratch, Label* miss) { 177 Register scratch, Label* miss) {
186 Handle<PropertyCell> cell = JSGlobalObject::EnsureEmptyPropertyCell( 178 Handle<PropertyCell> cell = JSGlobalObject::EnsureEmptyPropertyCell(
187 global, name, PropertyCellType::kInvalidated); 179 global, name, PropertyCellType::kInvalidated);
188 Isolate* isolate = masm->isolate(); 180 Isolate* isolate = masm->isolate();
189 DCHECK(cell->value()->IsTheHole(isolate)); 181 DCHECK(cell->value()->IsTheHole(isolate));
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 576
585 // Return the generated code. 577 // Return the generated code.
586 return GetCode(kind(), name); 578 return GetCode(kind(), name);
587 } 579 }
588 580
589 #undef __ 581 #undef __
590 } // namespace internal 582 } // namespace internal
591 } // namespace v8 583 } // namespace v8
592 584
593 #endif // V8_TARGET_ARCH_ARM 585 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/ic/ppc/handler-compiler-ppc.cc ('k') | src/ic/x64/handler-compiler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698