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

Side by Side Diff: src/compiler/ppc/code-generator-ppc.cc

Issue 2709483007: PPC/s390: [everywhere] Custom representation for frame type (Closed)
Patch Set: Created 3 years, 10 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/builtins/s390/builtins-s390.cc ('k') | src/compiler/s390/code-generator-s390.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 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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compilation-info.h" 7 #include "src/compilation-info.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 806
807 void CodeGenerator::AssemblePopArgumentsAdaptorFrame(Register args_reg, 807 void CodeGenerator::AssemblePopArgumentsAdaptorFrame(Register args_reg,
808 Register scratch1, 808 Register scratch1,
809 Register scratch2, 809 Register scratch2,
810 Register scratch3) { 810 Register scratch3) {
811 DCHECK(!AreAliased(args_reg, scratch1, scratch2, scratch3)); 811 DCHECK(!AreAliased(args_reg, scratch1, scratch2, scratch3));
812 Label done; 812 Label done;
813 813
814 // Check if current frame is an arguments adaptor frame. 814 // Check if current frame is an arguments adaptor frame.
815 __ LoadP(scratch1, MemOperand(fp, StandardFrameConstants::kContextOffset)); 815 __ LoadP(scratch1, MemOperand(fp, StandardFrameConstants::kContextOffset));
816 __ CmpSmiLiteral(scratch1, Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR), r0); 816 __ cmpi(scratch1,
817 Operand(StackFrame::TypeToMarker(StackFrame::ARGUMENTS_ADAPTOR)));
817 __ bne(&done); 818 __ bne(&done);
818 819
819 // Load arguments count from current arguments adaptor frame (note, it 820 // Load arguments count from current arguments adaptor frame (note, it
820 // does not include receiver). 821 // does not include receiver).
821 Register caller_args_count_reg = scratch1; 822 Register caller_args_count_reg = scratch1;
822 __ LoadP(caller_args_count_reg, 823 __ LoadP(caller_args_count_reg,
823 MemOperand(fp, ArgumentsAdaptorFrameConstants::kLengthOffset)); 824 MemOperand(fp, ArgumentsAdaptorFrameConstants::kLengthOffset));
824 __ SmiUntag(caller_args_count_reg); 825 __ SmiUntag(caller_args_count_reg);
825 826
826 ParameterCount callee_args_count(args_reg); 827 ParameterCount callee_args_count(args_reg);
(...skipping 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after
2580 padding_size -= v8::internal::Assembler::kInstrSize; 2581 padding_size -= v8::internal::Assembler::kInstrSize;
2581 } 2582 }
2582 } 2583 }
2583 } 2584 }
2584 2585
2585 #undef __ 2586 #undef __
2586 2587
2587 } // namespace compiler 2588 } // namespace compiler
2588 } // namespace internal 2589 } // namespace internal
2589 } // namespace v8 2590 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins/s390/builtins-s390.cc ('k') | src/compiler/s390/code-generator-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698