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

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

Issue 1261863002: [runtime] DeclareGlobals and DeclareLookupSlot don't need context parameters. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix x64 typo. Created 5 years, 4 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/lithium-codegen-mips64.cc ('k') | src/runtime/runtime.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/cpu-profiler.h" 10 #include "src/cpu-profiler.h"
(...skipping 3744 matching lines...) Expand 10 before | Expand all | Expand 10 after
3755 __ LoadP(result, MemOperand(fp, StandardFrameConstants::kContextOffset)); 3755 __ LoadP(result, MemOperand(fp, StandardFrameConstants::kContextOffset));
3756 } else { 3756 } else {
3757 // If there is no frame, the context must be in cp. 3757 // If there is no frame, the context must be in cp.
3758 DCHECK(result.is(cp)); 3758 DCHECK(result.is(cp));
3759 } 3759 }
3760 } 3760 }
3761 3761
3762 3762
3763 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { 3763 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) {
3764 DCHECK(ToRegister(instr->context()).is(cp)); 3764 DCHECK(ToRegister(instr->context()).is(cp));
3765 __ push(cp); // The context is the first argument.
3766 __ Move(scratch0(), instr->hydrogen()->pairs()); 3765 __ Move(scratch0(), instr->hydrogen()->pairs());
3767 __ push(scratch0()); 3766 __ push(scratch0());
3768 __ LoadSmiLiteral(scratch0(), Smi::FromInt(instr->hydrogen()->flags())); 3767 __ LoadSmiLiteral(scratch0(), Smi::FromInt(instr->hydrogen()->flags()));
3769 __ push(scratch0()); 3768 __ push(scratch0());
3770 CallRuntime(Runtime::kDeclareGlobals, 3, instr); 3769 CallRuntime(Runtime::kDeclareGlobals, 2, instr);
3771 } 3770 }
3772 3771
3773 3772
3774 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, 3773 void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
3775 int formal_parameter_count, int arity, 3774 int formal_parameter_count, int arity,
3776 LInstruction* instr) { 3775 LInstruction* instr) {
3777 bool dont_adapt_arguments = 3776 bool dont_adapt_arguments =
3778 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; 3777 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel;
3779 bool can_invoke_directly = 3778 bool can_invoke_directly =
3780 dont_adapt_arguments || formal_parameter_count == arity; 3779 dont_adapt_arguments || formal_parameter_count == arity;
(...skipping 2512 matching lines...) Expand 10 before | Expand all | Expand 10 after
6293 __ Push(scope_info); 6292 __ Push(scope_info);
6294 __ push(ToRegister(instr->function())); 6293 __ push(ToRegister(instr->function()));
6295 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6294 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6296 RecordSafepoint(Safepoint::kNoLazyDeopt); 6295 RecordSafepoint(Safepoint::kNoLazyDeopt);
6297 } 6296 }
6298 6297
6299 6298
6300 #undef __ 6299 #undef __
6301 } // namespace internal 6300 } // namespace internal
6302 } // namespace v8 6301 } // namespace v8
OLDNEW
« no previous file with comments | « src/mips64/lithium-codegen-mips64.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698