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

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

Issue 1234383002: Remove obsolete %CallSuperWithSpread intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_turbofan-super-4
Patch Set: Ported to all architectures. Created 5 years, 5 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/mips/full-codegen-mips.cc ('k') | src/parser.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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 4707 matching lines...) Expand 10 before | Expand all | Expand 10 after
4718 DCHECK(expr->arguments()->length() == 0); 4718 DCHECK(expr->arguments()->length() == 0);
4719 ExternalReference debug_is_active = 4719 ExternalReference debug_is_active =
4720 ExternalReference::debug_is_active_address(isolate()); 4720 ExternalReference::debug_is_active_address(isolate());
4721 __ li(at, Operand(debug_is_active)); 4721 __ li(at, Operand(debug_is_active));
4722 __ lbu(v0, MemOperand(at)); 4722 __ lbu(v0, MemOperand(at));
4723 __ SmiTag(v0); 4723 __ SmiTag(v0);
4724 context()->Plug(v0); 4724 context()->Plug(v0);
4725 } 4725 }
4726 4726
4727 4727
4728 void FullCodeGenerator::EmitCallSuperWithSpread(CallRuntime* expr) {
4729 // Assert: expr === CallRuntime("ReflectConstruct")
4730 DCHECK_EQ(1, expr->arguments()->length());
4731 CallRuntime* call = expr->arguments()->at(0)->AsCallRuntime();
4732
4733 ZoneList<Expression*>* args = call->arguments();
4734 DCHECK_EQ(3, args->length());
4735
4736 SuperCallReference* super_call_ref = args->at(0)->AsSuperCallReference();
4737 DCHECK_NOT_NULL(super_call_ref);
4738
4739 // Load ReflectConstruct function
4740 EmitLoadJSRuntimeFunction(call);
4741
4742 // Push the target function under the receiver.
4743 __ ld(at, MemOperand(sp, 0));
4744 __ push(at);
4745 __ sd(v0, MemOperand(sp, kPointerSize));
4746
4747 // Push super constructor
4748 EmitLoadSuperConstructor(super_call_ref);
4749 __ Push(result_register());
4750
4751 // Push arguments array
4752 VisitForStackValue(args->at(1));
4753
4754 // Push NewTarget
4755 DCHECK(args->at(2)->IsVariableProxy());
4756 VisitForStackValue(args->at(2));
4757
4758 EmitCallJSRuntimeFunction(call);
4759
4760 // Restore context register.
4761 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
4762 context()->DropAndPlug(1, v0);
4763 }
4764
4765
4766 void FullCodeGenerator::EmitLoadJSRuntimeFunction(CallRuntime* expr) { 4728 void FullCodeGenerator::EmitLoadJSRuntimeFunction(CallRuntime* expr) {
4767 // Push the builtins object as the receiver. 4729 // Push the builtins object as the receiver.
4768 Register receiver = LoadDescriptor::ReceiverRegister(); 4730 Register receiver = LoadDescriptor::ReceiverRegister();
4769 __ ld(receiver, GlobalObjectOperand()); 4731 __ ld(receiver, GlobalObjectOperand());
4770 __ ld(receiver, FieldMemOperand(receiver, GlobalObject::kBuiltinsOffset)); 4732 __ ld(receiver, FieldMemOperand(receiver, GlobalObject::kBuiltinsOffset));
4771 __ push(receiver); 4733 __ push(receiver);
4772 4734
4773 // Load the function from the receiver. 4735 // Load the function from the receiver.
4774 __ li(LoadDescriptor::NameRegister(), Operand(expr->name())); 4736 __ li(LoadDescriptor::NameRegister(), Operand(expr->name()));
4775 __ li(LoadDescriptor::SlotRegister(), 4737 __ li(LoadDescriptor::SlotRegister(),
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
5588 reinterpret_cast<uint64_t>( 5550 reinterpret_cast<uint64_t>(
5589 isolate->builtins()->OsrAfterStackCheck()->entry())); 5551 isolate->builtins()->OsrAfterStackCheck()->entry()));
5590 return OSR_AFTER_STACK_CHECK; 5552 return OSR_AFTER_STACK_CHECK;
5591 } 5553 }
5592 5554
5593 5555
5594 } // namespace internal 5556 } // namespace internal
5595 } // namespace v8 5557 } // namespace v8
5596 5558
5597 #endif // V8_TARGET_ARCH_MIPS64 5559 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698