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

Side by Side Diff: src/arm64/code-stubs-arm64.cc

Issue 898013003: CallIC MISS handler doesn't need receiver. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 5 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/arm/code-stubs-arm.cc ('k') | src/ia32/code-stubs-ia32.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 3163 matching lines...) Expand 10 before | Expand all | Expand 10 after
3174 3174
3175 // Goto slow case if we do not have a function. 3175 // Goto slow case if we do not have a function.
3176 __ JumpIfNotObjectType(function, x10, type, JS_FUNCTION_TYPE, &slow); 3176 __ JumpIfNotObjectType(function, x10, type, JS_FUNCTION_TYPE, &slow);
3177 __ B(&have_js_function); 3177 __ B(&have_js_function);
3178 } 3178 }
3179 3179
3180 3180
3181 void CallICStub::GenerateMiss(MacroAssembler* masm) { 3181 void CallICStub::GenerateMiss(MacroAssembler* masm) {
3182 ASM_LOCATION("CallICStub[Miss]"); 3182 ASM_LOCATION("CallICStub[Miss]");
3183 3183
3184 // Get the receiver of the function from the stack. 3184 FrameScope scope(masm, StackFrame::INTERNAL);
3185 __ Peek(x4, arg_count() * kPointerSize);
3186 3185
3187 { 3186 // Push the receiver and the function and feedback info.
3188 FrameScope scope(masm, StackFrame::INTERNAL); 3187 __ Push(x1, x2, x3);
3189 3188
3190 // Push the receiver and the function and feedback info. 3189 // Call the entry.
3191 __ Push(x4, x1, x2, x3); 3190 IC::UtilityId id = GetICState() == DEFAULT ? IC::kCallIC_Miss
3191 : IC::kCallIC_Customization_Miss;
3192 3192
3193 // Call the entry. 3193 ExternalReference miss = ExternalReference(IC_Utility(id), masm->isolate());
3194 IC::UtilityId id = GetICState() == DEFAULT ? IC::kCallIC_Miss 3194 __ CallExternalReference(miss, 3);
3195 : IC::kCallIC_Customization_Miss;
3196 3195
3197 ExternalReference miss = ExternalReference(IC_Utility(id), 3196 // Move result to edi and exit the internal frame.
3198 masm->isolate()); 3197 __ Mov(x1, x0);
3199 __ CallExternalReference(miss, 4);
3200
3201 // Move result to edi and exit the internal frame.
3202 __ Mov(x1, x0);
3203 }
3204 } 3198 }
3205 3199
3206 3200
3207 void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) { 3201 void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) {
3208 // If the receiver is a smi trigger the non-string case. 3202 // If the receiver is a smi trigger the non-string case.
3209 if (check_mode_ == RECEIVER_IS_UNKNOWN) { 3203 if (check_mode_ == RECEIVER_IS_UNKNOWN) {
3210 __ JumpIfSmi(object_, receiver_not_string_); 3204 __ JumpIfSmi(object_, receiver_not_string_);
3211 3205
3212 // Fetch the instance type of the receiver into result register. 3206 // Fetch the instance type of the receiver into result register.
3213 __ Ldr(result_, FieldMemOperand(object_, HeapObject::kMapOffset)); 3207 __ Ldr(result_, FieldMemOperand(object_, HeapObject::kMapOffset));
(...skipping 2210 matching lines...) Expand 10 before | Expand all | Expand 10 after
5424 kStackUnwindSpace, NULL, spill_offset, 5418 kStackUnwindSpace, NULL, spill_offset,
5425 MemOperand(fp, 6 * kPointerSize), NULL); 5419 MemOperand(fp, 6 * kPointerSize), NULL);
5426 } 5420 }
5427 5421
5428 5422
5429 #undef __ 5423 #undef __
5430 5424
5431 } } // namespace v8::internal 5425 } } // namespace v8::internal
5432 5426
5433 #endif // V8_TARGET_ARCH_ARM64 5427 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698