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

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: Sync 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
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.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 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 5539 matching lines...) Expand 10 before | Expand all | Expand 10 after
5726 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5725 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5727 __ ldr(result, FieldMemOperand(scratch, 5726 __ ldr(result, FieldMemOperand(scratch,
5728 FixedArray::kHeaderSize - kPointerSize)); 5727 FixedArray::kHeaderSize - kPointerSize));
5729 __ bind(&done); 5728 __ bind(&done);
5730 } 5729 }
5731 5730
5732 5731
5733 #undef __ 5732 #undef __
5734 5733
5735 } } // namespace v8::internal 5734 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698