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

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

Issue 609843002: Refactor FrameAndConstantPoolScope and ConstantPoolUnavailableScope to be architecture independent (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Re-factoring to enable FrameAndConstantPoolScope and ConstantPoolUnavailableScope to be used by oth… 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
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_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 4761 matching lines...) Expand 10 before | Expand all | Expand 10 after
4772 Push(ra, fp, cp, a1); 4772 Push(ra, fp, cp, a1);
4773 nop(Assembler::CODE_AGE_SEQUENCE_NOP); 4773 nop(Assembler::CODE_AGE_SEQUENCE_NOP);
4774 nop(Assembler::CODE_AGE_SEQUENCE_NOP); 4774 nop(Assembler::CODE_AGE_SEQUENCE_NOP);
4775 nop(Assembler::CODE_AGE_SEQUENCE_NOP); 4775 nop(Assembler::CODE_AGE_SEQUENCE_NOP);
4776 // Adjust fp to point to caller's fp. 4776 // Adjust fp to point to caller's fp.
4777 Daddu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); 4777 Daddu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp));
4778 } 4778 }
4779 } 4779 }
4780 4780
4781 4781
4782 void MacroAssembler::EnterFrame(StackFrame::Type type) { 4782 void MacroAssembler::EnterFrame(StackFrame::Type type,
4783 bool load_constant_pool_pointer_reg) {
4784 DCHECK(!load_constant_pool_pointer_reg);
4783 daddiu(sp, sp, -5 * kPointerSize); 4785 daddiu(sp, sp, -5 * kPointerSize);
4784 li(t8, Operand(Smi::FromInt(type))); 4786 li(t8, Operand(Smi::FromInt(type)));
4785 li(t9, Operand(CodeObject()), CONSTANT_SIZE); 4787 li(t9, Operand(CodeObject()), CONSTANT_SIZE);
4786 sd(ra, MemOperand(sp, 4 * kPointerSize)); 4788 sd(ra, MemOperand(sp, 4 * kPointerSize));
4787 sd(fp, MemOperand(sp, 3 * kPointerSize)); 4789 sd(fp, MemOperand(sp, 3 * kPointerSize));
4788 sd(cp, MemOperand(sp, 2 * kPointerSize)); 4790 sd(cp, MemOperand(sp, 2 * kPointerSize));
4789 sd(t8, MemOperand(sp, 1 * kPointerSize)); 4791 sd(t8, MemOperand(sp, 1 * kPointerSize));
4790 sd(t9, MemOperand(sp, 0 * kPointerSize)); 4792 sd(t9, MemOperand(sp, 0 * kPointerSize));
4791 // Adjust FP to point to saved FP. 4793 // Adjust FP to point to saved FP.
4792 Daddu(fp, sp, 4794 Daddu(fp, sp,
(...skipping 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after
6080 } 6082 }
6081 if (mag.shift > 0) sra(result, result, mag.shift); 6083 if (mag.shift > 0) sra(result, result, mag.shift);
6082 srl(at, dividend, 31); 6084 srl(at, dividend, 31);
6083 Addu(result, result, Operand(at)); 6085 Addu(result, result, Operand(at));
6084 } 6086 }
6085 6087
6086 6088
6087 } } // namespace v8::internal 6089 } } // namespace v8::internal
6088 6090
6089 #endif // V8_TARGET_ARCH_MIPS64 6091 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698