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

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

Issue 201153020: Merged r19834, r19843 into 3.24 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.24
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
« no previous file with comments | « src/mips/lithium-codegen-mips.h ('k') | src/mips/lithium-mips.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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 osr_pc_offset_ = masm()->pc_offset(); 252 osr_pc_offset_ = masm()->pc_offset();
253 253
254 // Adjust the frame size, subsuming the unoptimized frame into the 254 // Adjust the frame size, subsuming the unoptimized frame into the
255 // optimized frame. 255 // optimized frame.
256 int slots = GetStackSlotCount() - graph()->osr()->UnoptimizedFrameSlots(); 256 int slots = GetStackSlotCount() - graph()->osr()->UnoptimizedFrameSlots();
257 ASSERT(slots >= 0); 257 ASSERT(slots >= 0);
258 __ Subu(sp, sp, Operand(slots * kPointerSize)); 258 __ Subu(sp, sp, Operand(slots * kPointerSize));
259 } 259 }
260 260
261 261
262 void LCodeGen::GenerateBodyInstructionPre(LInstruction* instr) {
263 if (!instr->IsLazyBailout() && !instr->IsGap()) {
264 safepoints_.BumpLastLazySafepointIndex();
265 }
266 }
267
268
262 bool LCodeGen::GenerateDeferredCode() { 269 bool LCodeGen::GenerateDeferredCode() {
263 ASSERT(is_generating()); 270 ASSERT(is_generating());
264 if (deferred_.length() > 0) { 271 if (deferred_.length() > 0) {
265 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) { 272 for (int i = 0; !is_aborted() && i < deferred_.length(); i++) {
266 LDeferredCode* code = deferred_[i]; 273 LDeferredCode* code = deferred_[i];
267 274
268 HValue* value = 275 HValue* value =
269 instructions_->at(code->instruction_index())->hydrogen_value(); 276 instructions_->at(code->instruction_index())->hydrogen_value();
270 RecordAndWritePosition(value->position()); 277 RecordAndWritePosition(value->position());
271 278
(...skipping 5462 matching lines...) Expand 10 before | Expand all | Expand 10 after
5734 __ Subu(scratch, result, scratch); 5741 __ Subu(scratch, result, scratch);
5735 __ lw(result, FieldMemOperand(scratch, 5742 __ lw(result, FieldMemOperand(scratch,
5736 FixedArray::kHeaderSize - kPointerSize)); 5743 FixedArray::kHeaderSize - kPointerSize));
5737 __ bind(&done); 5744 __ bind(&done);
5738 } 5745 }
5739 5746
5740 5747
5741 #undef __ 5748 #undef __
5742 5749
5743 } } // namespace v8::internal 5750 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.h ('k') | src/mips/lithium-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698