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

Side by Side Diff: src/mips/lithium-codegen-mips.cc

Issue 1081883002: Remove unnecessary options from HTailCallThroughMegamorphicCache (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ports. Created 5 years, 8 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/lithium-ia32.cc ('k') | src/mips/lithium-mips.h » ('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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3930 matching lines...) Expand 10 before | Expand all | Expand 10 after
3941 Register name = ToRegister(instr->name()); 3941 Register name = ToRegister(instr->name());
3942 DCHECK(receiver.is(LoadDescriptor::ReceiverRegister())); 3942 DCHECK(receiver.is(LoadDescriptor::ReceiverRegister()));
3943 DCHECK(name.is(LoadDescriptor::NameRegister())); 3943 DCHECK(name.is(LoadDescriptor::NameRegister()));
3944 DCHECK(receiver.is(a1)); 3944 DCHECK(receiver.is(a1));
3945 DCHECK(name.is(a2)); 3945 DCHECK(name.is(a2));
3946 3946
3947 Register scratch = t0; 3947 Register scratch = t0;
3948 Register extra = t1; 3948 Register extra = t1;
3949 Register extra2 = t2; 3949 Register extra2 = t2;
3950 Register extra3 = t5; 3950 Register extra3 = t5;
3951 #ifdef DEBUG
3952 Register slot = FLAG_vector_ics ? ToRegister(instr->slot()) : no_reg;
3953 Register vector = FLAG_vector_ics ? ToRegister(instr->vector()) : no_reg;
3954 DCHECK(!FLAG_vector_ics ||
3955 !AreAliased(slot, vector, scratch, extra, extra2, extra3));
3956 #endif
3957 3951
3958 // Important for the tail-call. 3952 // The probe will tail call to a handler if found.
3959 bool must_teardown_frame = NeedsEagerFrame(); 3953 isolate()->stub_cache()->GenerateProbe(
3960 3954 masm(), Code::LOAD_IC, instr->hydrogen()->flags(), false, receiver, name,
3961 if (!instr->hydrogen()->is_just_miss()) { 3955 scratch, extra, extra2, extra3);
3962 DCHECK(!instr->hydrogen()->is_keyed_load());
3963
3964 // The probe will tail call to a handler if found.
3965 isolate()->stub_cache()->GenerateProbe(
3966 masm(), Code::LOAD_IC, instr->hydrogen()->flags(), must_teardown_frame,
3967 receiver, name, scratch, extra, extra2, extra3);
3968 }
3969 3956
3970 // Tail call to miss if we ended up here. 3957 // Tail call to miss if we ended up here.
3971 if (must_teardown_frame) __ LeaveFrame(StackFrame::INTERNAL); 3958 LoadIC::GenerateMiss(masm());
3972 if (instr->hydrogen()->is_keyed_load()) {
3973 KeyedLoadIC::GenerateMiss(masm());
3974 } else {
3975 LoadIC::GenerateMiss(masm());
3976 }
3977 } 3959 }
3978 3960
3979 3961
3980 void LCodeGen::DoCallWithDescriptor(LCallWithDescriptor* instr) { 3962 void LCodeGen::DoCallWithDescriptor(LCallWithDescriptor* instr) {
3981 DCHECK(ToRegister(instr->result()).is(v0)); 3963 DCHECK(ToRegister(instr->result()).is(v0));
3982 3964
3983 if (instr->hydrogen()->IsTailCall()) { 3965 if (instr->hydrogen()->IsTailCall()) {
3984 if (NeedsEagerFrame()) __ LeaveFrame(StackFrame::INTERNAL); 3966 if (NeedsEagerFrame()) __ LeaveFrame(StackFrame::INTERNAL);
3985 3967
3986 if (instr->target()->IsConstantOperand()) { 3968 if (instr->target()->IsConstantOperand()) {
(...skipping 1994 matching lines...) Expand 10 before | Expand all | Expand 10 after
5981 __ li(at, scope_info); 5963 __ li(at, scope_info);
5982 __ Push(at, ToRegister(instr->function())); 5964 __ Push(at, ToRegister(instr->function()));
5983 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5965 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5984 RecordSafepoint(Safepoint::kNoLazyDeopt); 5966 RecordSafepoint(Safepoint::kNoLazyDeopt);
5985 } 5967 }
5986 5968
5987 5969
5988 #undef __ 5970 #undef __
5989 5971
5990 } } // namespace v8::internal 5972 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/mips/lithium-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698