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

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

Issue 963193005: MIPS: 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/mips64/builtins-mips64.cc ('k') | no next file » | 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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 2878 matching lines...) Expand 10 before | Expand all | Expand 10 after
2889 callee->IsVariableProxy() ? CallICState::FUNCTION : CallICState::METHOD; 2889 callee->IsVariableProxy() ? CallICState::FUNCTION : CallICState::METHOD;
2890 2890
2891 // Get the target function. 2891 // Get the target function.
2892 if (call_type == CallICState::FUNCTION) { 2892 if (call_type == CallICState::FUNCTION) {
2893 { StackValueContext context(this); 2893 { StackValueContext context(this);
2894 EmitVariableLoad(callee->AsVariableProxy()); 2894 EmitVariableLoad(callee->AsVariableProxy());
2895 PrepareForBailout(callee, NO_REGISTERS); 2895 PrepareForBailout(callee, NO_REGISTERS);
2896 } 2896 }
2897 // Push undefined as receiver. This is patched in the method prologue if it 2897 // Push undefined as receiver. This is patched in the method prologue if it
2898 // is a sloppy mode method. 2898 // is a sloppy mode method.
2899 __ Push(isolate()->factory()->undefined_value()); 2899 __ LoadRoot(at, Heap::kUndefinedValueRootIndex);
2900 __ push(at);
2900 } else { 2901 } else {
2901 // Load the function from the receiver. 2902 // Load the function from the receiver.
2902 DCHECK(callee->IsProperty()); 2903 DCHECK(callee->IsProperty());
2903 DCHECK(!callee->AsProperty()->IsSuperAccess()); 2904 DCHECK(!callee->AsProperty()->IsSuperAccess());
2904 __ ld(LoadDescriptor::ReceiverRegister(), MemOperand(sp, 0)); 2905 __ ld(LoadDescriptor::ReceiverRegister(), MemOperand(sp, 0));
2905 EmitNamedPropertyLoad(callee->AsProperty()); 2906 EmitNamedPropertyLoad(callee->AsProperty());
2906 PrepareForBailoutForId(callee->AsProperty()->LoadId(), TOS_REG); 2907 PrepareForBailoutForId(callee->AsProperty()->LoadId(), TOS_REG);
2907 // Push the target function under the receiver. 2908 // Push the target function under the receiver.
2908 __ ld(at, MemOperand(sp, 0)); 2909 __ ld(at, MemOperand(sp, 0));
2909 __ push(at); 2910 __ push(at);
(...skipping 2540 matching lines...) Expand 10 before | Expand all | Expand 10 after
5450 Assembler::target_address_at(pc_immediate_load_address)) == 5451 Assembler::target_address_at(pc_immediate_load_address)) ==
5451 reinterpret_cast<uint64_t>( 5452 reinterpret_cast<uint64_t>(
5452 isolate->builtins()->OsrAfterStackCheck()->entry())); 5453 isolate->builtins()->OsrAfterStackCheck()->entry()));
5453 return OSR_AFTER_STACK_CHECK; 5454 return OSR_AFTER_STACK_CHECK;
5454 } 5455 }
5455 5456
5456 5457
5457 } } // namespace v8::internal 5458 } } // namespace v8::internal
5458 5459
5459 #endif // V8_TARGET_ARCH_MIPS64 5460 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698