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

Side by Side Diff: src/mips/macro-assembler-mips.cc

Issue 609843002: Refactor FrameAndConstantPoolScope and ConstantPoolUnavailableScope to be architecture independent (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Eliminate unreachable paths. Created 6 years, 2 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/macro-assembler-mips.h ('k') | src/mips64/macro-assembler-mips64.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <limits.h> // For LONG_MIN, LONG_MAX. 5 #include <limits.h> // For LONG_MIN, LONG_MAX.
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 4987 matching lines...) Expand 10 before | Expand all | Expand 10 after
4998 nop(); // Pad the empty space. 4998 nop(); // Pad the empty space.
4999 } else { 4999 } else {
5000 Push(ra, fp, cp, a1); 5000 Push(ra, fp, cp, a1);
5001 nop(Assembler::CODE_AGE_SEQUENCE_NOP); 5001 nop(Assembler::CODE_AGE_SEQUENCE_NOP);
5002 // Adjust fp to point to caller's fp. 5002 // Adjust fp to point to caller's fp.
5003 Addu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); 5003 Addu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp));
5004 } 5004 }
5005 } 5005 }
5006 5006
5007 5007
5008 void MacroAssembler::EnterFrame(StackFrame::Type type,
5009 bool load_constant_pool_pointer_reg) {
5010 // Out-of-line constant pool not implemented on mips.
5011 UNREACHABLE();
5012 }
5013
5014
5008 void MacroAssembler::EnterFrame(StackFrame::Type type) { 5015 void MacroAssembler::EnterFrame(StackFrame::Type type) {
5009 addiu(sp, sp, -5 * kPointerSize); 5016 addiu(sp, sp, -5 * kPointerSize);
5010 li(t8, Operand(Smi::FromInt(type))); 5017 li(t8, Operand(Smi::FromInt(type)));
5011 li(t9, Operand(CodeObject()), CONSTANT_SIZE); 5018 li(t9, Operand(CodeObject()), CONSTANT_SIZE);
5012 sw(ra, MemOperand(sp, 4 * kPointerSize)); 5019 sw(ra, MemOperand(sp, 4 * kPointerSize));
5013 sw(fp, MemOperand(sp, 3 * kPointerSize)); 5020 sw(fp, MemOperand(sp, 3 * kPointerSize));
5014 sw(cp, MemOperand(sp, 2 * kPointerSize)); 5021 sw(cp, MemOperand(sp, 2 * kPointerSize));
5015 sw(t8, MemOperand(sp, 1 * kPointerSize)); 5022 sw(t8, MemOperand(sp, 1 * kPointerSize));
5016 sw(t9, MemOperand(sp, 0 * kPointerSize)); 5023 sw(t9, MemOperand(sp, 0 * kPointerSize));
5017 // Adjust FP to point to saved FP. 5024 // Adjust FP to point to saved FP.
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after
6214 } 6221 }
6215 if (mag.shift > 0) sra(result, result, mag.shift); 6222 if (mag.shift > 0) sra(result, result, mag.shift);
6216 srl(at, dividend, 31); 6223 srl(at, dividend, 31);
6217 Addu(result, result, Operand(at)); 6224 Addu(result, result, Operand(at));
6218 } 6225 }
6219 6226
6220 6227
6221 } } // namespace v8::internal 6228 } } // namespace v8::internal
6222 6229
6223 #endif // V8_TARGET_ARCH_MIPS 6230 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.h ('k') | src/mips64/macro-assembler-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698