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

Side by Side Diff: src/ic/arm/handler-compiler-arm.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/ia32/macro-assembler-ia32.cc ('k') | src/ic/arm64/handler-compiler-arm64.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_ARM 5 #if V8_TARGET_ARCH_ARM
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // Restore the temporarily used register. 174 // Restore the temporarily used register.
175 __ ldr(properties, FieldMemOperand(receiver, JSObject::kPropertiesOffset)); 175 __ ldr(properties, FieldMemOperand(receiver, JSObject::kPropertiesOffset));
176 176
177 177
178 NameDictionaryLookupStub::GenerateNegativeLookup( 178 NameDictionaryLookupStub::GenerateNegativeLookup(
179 masm, miss_label, &done, receiver, properties, name, scratch1); 179 masm, miss_label, &done, receiver, properties, name, scratch1);
180 __ bind(&done); 180 __ bind(&done);
181 __ DecrementCounter(counters->negative_lookups_miss(), 1, scratch0, scratch1); 181 __ DecrementCounter(counters->negative_lookups_miss(), 1, scratch0, scratch1);
182 } 182 }
183 183
184 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(
185 MacroAssembler* masm, Register receiver, Register scratch1,
186 Register scratch2, Label* miss_label) {
187 __ TryGetFunctionPrototype(receiver, scratch1, scratch2, miss_label);
188 __ mov(r0, scratch1);
189 __ Ret();
190 }
191
192
193 // Generate code to check that a global property cell is empty. Create 184 // Generate code to check that a global property cell is empty. Create
194 // the property cell at compilation time if no cell exists for the 185 // the property cell at compilation time if no cell exists for the
195 // property. 186 // property.
196 void PropertyHandlerCompiler::GenerateCheckPropertyCell( 187 void PropertyHandlerCompiler::GenerateCheckPropertyCell(
197 MacroAssembler* masm, Handle<JSGlobalObject> global, Handle<Name> name, 188 MacroAssembler* masm, Handle<JSGlobalObject> global, Handle<Name> name,
198 Register scratch, Label* miss) { 189 Register scratch, Label* miss) {
199 Handle<PropertyCell> cell = JSGlobalObject::EnsureEmptyPropertyCell( 190 Handle<PropertyCell> cell = JSGlobalObject::EnsureEmptyPropertyCell(
200 global, name, PropertyCellType::kInvalidated); 191 global, name, PropertyCellType::kInvalidated);
201 Isolate* isolate = masm->isolate(); 192 Isolate* isolate = masm->isolate();
202 DCHECK(cell->value()->IsTheHole(isolate)); 193 DCHECK(cell->value()->IsTheHole(isolate));
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 // Return the generated code. 602 // Return the generated code.
612 return GetCode(kind(), name); 603 return GetCode(kind(), name);
613 } 604 }
614 605
615 606
616 #undef __ 607 #undef __
617 } // namespace internal 608 } // namespace internal
618 } // namespace v8 609 } // namespace v8
619 610
620 #endif // V8_TARGET_ARCH_ARM 611 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/ic/arm64/handler-compiler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698