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

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

Issue 14253015: Skip samples where top function's stack frame is not setup properly (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: mips->mipsel Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
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 2880 matching lines...) Expand 10 before | Expand all | Expand 10 after
2891 BitVector* doubles = chunk()->allocated_double_registers(); 2891 BitVector* doubles = chunk()->allocated_double_registers();
2892 BitVector::Iterator save_iterator(doubles); 2892 BitVector::Iterator save_iterator(doubles);
2893 int count = 0; 2893 int count = 0;
2894 while (!save_iterator.Done()) { 2894 while (!save_iterator.Done()) {
2895 __ vldr(DwVfpRegister::FromAllocationIndex(save_iterator.Current()), 2895 __ vldr(DwVfpRegister::FromAllocationIndex(save_iterator.Current()),
2896 MemOperand(sp, count * kDoubleSize)); 2896 MemOperand(sp, count * kDoubleSize));
2897 save_iterator.Advance(); 2897 save_iterator.Advance();
2898 count++; 2898 count++;
2899 } 2899 }
2900 } 2900 }
2901 int no_frame_start = -1;
2901 if (NeedsEagerFrame()) { 2902 if (NeedsEagerFrame()) {
2902 __ mov(sp, fp); 2903 __ mov(sp, fp);
2903 __ ldm(ia_w, sp, fp.bit() | lr.bit()); 2904 __ ldm(ia_w, sp, fp.bit() | lr.bit());
2905 no_frame_start = masm_->pc_offset();
2904 } 2906 }
2905 if (instr->has_constant_parameter_count()) { 2907 if (instr->has_constant_parameter_count()) {
2906 int parameter_count = ToInteger32(instr->constant_parameter_count()); 2908 int parameter_count = ToInteger32(instr->constant_parameter_count());
2907 int32_t sp_delta = (parameter_count + 1) * kPointerSize; 2909 int32_t sp_delta = (parameter_count + 1) * kPointerSize;
2908 if (sp_delta != 0) { 2910 if (sp_delta != 0) {
2909 __ add(sp, sp, Operand(sp_delta)); 2911 __ add(sp, sp, Operand(sp_delta));
2910 } 2912 }
2911 } else { 2913 } else {
2912 Register reg = ToRegister(instr->parameter_count()); 2914 Register reg = ToRegister(instr->parameter_count());
2913 // The argument count parameter is a smi 2915 // The argument count parameter is a smi
2914 __ SmiUntag(reg); 2916 __ SmiUntag(reg);
2915 __ add(sp, sp, Operand(reg, LSL, kPointerSizeLog2)); 2917 __ add(sp, sp, Operand(reg, LSL, kPointerSizeLog2));
2916 } 2918 }
2917 2919
2918 __ Jump(lr); 2920 __ Jump(lr);
2921
2922 if (no_frame_start != -1) {
2923 info_->AddNoFrameRange(no_frame_start, masm_->pc_offset());
2924 }
2919 } 2925 }
2920 2926
2921 2927
2922 void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) { 2928 void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) {
2923 Register result = ToRegister(instr->result()); 2929 Register result = ToRegister(instr->result());
2924 __ mov(ip, Operand(Handle<Object>(instr->hydrogen()->cell()))); 2930 __ mov(ip, Operand(Handle<Object>(instr->hydrogen()->cell())));
2925 __ ldr(result, FieldMemOperand(ip, JSGlobalPropertyCell::kValueOffset)); 2931 __ ldr(result, FieldMemOperand(ip, JSGlobalPropertyCell::kValueOffset));
2926 if (instr->hydrogen()->RequiresHoleCheck()) { 2932 if (instr->hydrogen()->RequiresHoleCheck()) {
2927 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex); 2933 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex);
2928 __ cmp(result, ip); 2934 __ cmp(result, ip);
(...skipping 2970 matching lines...) Expand 10 before | Expand all | Expand 10 after
5899 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 5905 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
5900 __ ldr(result, FieldMemOperand(scratch, 5906 __ ldr(result, FieldMemOperand(scratch,
5901 FixedArray::kHeaderSize - kPointerSize)); 5907 FixedArray::kHeaderSize - kPointerSize));
5902 __ bind(&done); 5908 __ bind(&done);
5903 } 5909 }
5904 5910
5905 5911
5906 #undef __ 5912 #undef __
5907 5913
5908 } } // namespace v8::internal 5914 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/compiler.h » ('j') | src/ia32/lithium-codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698