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

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

Issue 190793002: Introduce FrameAndConstantPoolScope and ConstantPoolUnavailableScope. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 __ bind(&ok); 167 __ bind(&ok);
168 } 168 }
169 } 169 }
170 170
171 info()->set_prologue_offset(masm_->pc_offset()); 171 info()->set_prologue_offset(masm_->pc_offset());
172 if (NeedsEagerFrame()) { 172 if (NeedsEagerFrame()) {
173 __ Prologue(info()->IsStub() ? BUILD_STUB_FRAME : BUILD_FUNCTION_FRAME); 173 __ Prologue(info()->IsStub() ? BUILD_STUB_FRAME : BUILD_FUNCTION_FRAME);
174 frame_is_built_ = true; 174 frame_is_built_ = true;
175 info_->AddNoFrameRange(0, masm_->pc_offset()); 175 info_->AddNoFrameRange(0, masm_->pc_offset());
176 __ LoadConstantPoolPointerRegister();
177 } 176 }
178 177
179 // Reserve space for the stack slots needed by the code. 178 // Reserve space for the stack slots needed by the code.
180 int slots = GetStackSlotCount(); 179 int slots = GetStackSlotCount();
181 if (slots > 0) { 180 if (slots > 0) {
182 if (FLAG_debug_code) { 181 if (FLAG_debug_code) {
183 __ sub(sp, sp, Operand(slots * kPointerSize)); 182 __ sub(sp, sp, Operand(slots * kPointerSize));
184 __ push(r0); 183 __ push(r0);
185 __ push(r1); 184 __ push(r1);
186 __ add(r0, sp, Operand(slots * kPointerSize)); 185 __ add(r0, sp, Operand(slots * kPointerSize));
(...skipping 5566 matching lines...) Expand 10 before | Expand all | Expand 10 after
5753 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5752 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5754 __ ldr(result, FieldMemOperand(scratch, 5753 __ ldr(result, FieldMemOperand(scratch,
5755 FixedArray::kHeaderSize - kPointerSize)); 5754 FixedArray::kHeaderSize - kPointerSize));
5756 __ bind(&done); 5755 __ bind(&done);
5757 } 5756 }
5758 5757
5759 5758
5760 #undef __ 5759 #undef __
5761 5760
5762 } } // namespace v8::internal 5761 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698