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

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

Issue 16154004: Fix two CPU profiler tests on ARM and MIPS simulators (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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
« no previous file with comments | « no previous file | src/mips/lithium-codegen-mips.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 // 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // The following three instructions must remain together and unmodified 174 // The following three instructions must remain together and unmodified
175 // for code aging to work properly. 175 // for code aging to work properly.
176 __ stm(db_w, sp, r1.bit() | cp.bit() | fp.bit() | lr.bit()); 176 __ stm(db_w, sp, r1.bit() | cp.bit() | fp.bit() | lr.bit());
177 // Load undefined value here, so the value is ready for the loop 177 // Load undefined value here, so the value is ready for the loop
178 // below. 178 // below.
179 __ LoadRoot(ip, Heap::kUndefinedValueRootIndex); 179 __ LoadRoot(ip, Heap::kUndefinedValueRootIndex);
180 // Adjust FP to point to saved FP. 180 // Adjust FP to point to saved FP.
181 __ add(fp, sp, Operand(2 * kPointerSize)); 181 __ add(fp, sp, Operand(2 * kPointerSize));
182 } 182 }
183 frame_is_built_ = true; 183 frame_is_built_ = true;
184 info_->AddNoFrameRange(0, masm_->pc_offset());
184 } 185 }
185 186
186 // Reserve space for the stack slots needed by the code. 187 // Reserve space for the stack slots needed by the code.
187 int slots = GetStackSlotCount(); 188 int slots = GetStackSlotCount();
188 if (slots > 0) { 189 if (slots > 0) {
189 if (FLAG_debug_code) { 190 if (FLAG_debug_code) {
190 __ sub(sp, sp, Operand(slots * kPointerSize)); 191 __ sub(sp, sp, Operand(slots * kPointerSize));
191 __ push(r0); 192 __ push(r0);
192 __ push(r1); 193 __ push(r1);
193 __ add(r0, sp, Operand(slots * kPointerSize)); 194 __ add(r0, sp, Operand(slots * kPointerSize));
(...skipping 5778 matching lines...) Expand 10 before | Expand all | Expand 10 after
5972 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5973 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5973 __ ldr(result, FieldMemOperand(scratch, 5974 __ ldr(result, FieldMemOperand(scratch,
5974 FixedArray::kHeaderSize - kPointerSize)); 5975 FixedArray::kHeaderSize - kPointerSize));
5975 __ bind(&done); 5976 __ bind(&done);
5976 } 5977 }
5977 5978
5978 5979
5979 #undef __ 5980 #undef __
5980 5981
5981 } } // namespace v8::internal 5982 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698