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

Side by Side Diff: src/arm/full-codegen-arm.cc

Issue 980563002: ARM: Load undefined receiver sentinel without constant pool (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/builtins-arm.cc ('k') | src/arm64/full-codegen-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 2895 matching lines...) Expand 10 before | Expand all | Expand 10 after
2906 callee->IsVariableProxy() ? CallICState::FUNCTION : CallICState::METHOD; 2906 callee->IsVariableProxy() ? CallICState::FUNCTION : CallICState::METHOD;
2907 2907
2908 // Get the target function. 2908 // Get the target function.
2909 if (call_type == CallICState::FUNCTION) { 2909 if (call_type == CallICState::FUNCTION) {
2910 { StackValueContext context(this); 2910 { StackValueContext context(this);
2911 EmitVariableLoad(callee->AsVariableProxy()); 2911 EmitVariableLoad(callee->AsVariableProxy());
2912 PrepareForBailout(callee, NO_REGISTERS); 2912 PrepareForBailout(callee, NO_REGISTERS);
2913 } 2913 }
2914 // Push undefined as receiver. This is patched in the method prologue if it 2914 // Push undefined as receiver. This is patched in the method prologue if it
2915 // is a sloppy mode method. 2915 // is a sloppy mode method.
2916 __ Push(isolate()->factory()->undefined_value()); 2916 __ LoadRoot(ip, Heap::kUndefinedValueRootIndex);
2917 __ push(ip);
2917 } else { 2918 } else {
2918 // Load the function from the receiver. 2919 // Load the function from the receiver.
2919 DCHECK(callee->IsProperty()); 2920 DCHECK(callee->IsProperty());
2920 DCHECK(!callee->AsProperty()->IsSuperAccess()); 2921 DCHECK(!callee->AsProperty()->IsSuperAccess());
2921 __ ldr(LoadDescriptor::ReceiverRegister(), MemOperand(sp, 0)); 2922 __ ldr(LoadDescriptor::ReceiverRegister(), MemOperand(sp, 0));
2922 EmitNamedPropertyLoad(callee->AsProperty()); 2923 EmitNamedPropertyLoad(callee->AsProperty());
2923 PrepareForBailoutForId(callee->AsProperty()->LoadId(), TOS_REG); 2924 PrepareForBailoutForId(callee->AsProperty()->LoadId(), TOS_REG);
2924 // Push the target function under the receiver. 2925 // Push the target function under the receiver.
2925 __ ldr(ip, MemOperand(sp, 0)); 2926 __ ldr(ip, MemOperand(sp, 0));
2926 __ push(ip); 2927 __ push(ip);
(...skipping 2574 matching lines...) Expand 10 before | Expand all | Expand 10 after
5501 5502
5502 DCHECK(interrupt_address == 5503 DCHECK(interrupt_address ==
5503 isolate->builtins()->OsrAfterStackCheck()->entry()); 5504 isolate->builtins()->OsrAfterStackCheck()->entry());
5504 return OSR_AFTER_STACK_CHECK; 5505 return OSR_AFTER_STACK_CHECK;
5505 } 5506 }
5506 5507
5507 5508
5508 } } // namespace v8::internal 5509 } } // namespace v8::internal
5509 5510
5510 #endif // V8_TARGET_ARCH_ARM 5511 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/builtins-arm.cc ('k') | src/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698