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

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: 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/mips64/macro-assembler-mips64.h ('k') | src/x64/macro-assembler-x64.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_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,
4783 bool load_constant_pool_pointer_reg) {
4784 // Out-of-line constant pool not implemented on mips64.
4785 UNREACHABLE();
4786 }
4787
4788
4782 void MacroAssembler::EnterFrame(StackFrame::Type type) { 4789 void MacroAssembler::EnterFrame(StackFrame::Type type) {
4783 daddiu(sp, sp, -5 * kPointerSize); 4790 daddiu(sp, sp, -5 * kPointerSize);
4784 li(t8, Operand(Smi::FromInt(type))); 4791 li(t8, Operand(Smi::FromInt(type)));
4785 li(t9, Operand(CodeObject()), CONSTANT_SIZE); 4792 li(t9, Operand(CodeObject()), CONSTANT_SIZE);
4786 sd(ra, MemOperand(sp, 4 * kPointerSize)); 4793 sd(ra, MemOperand(sp, 4 * kPointerSize));
4787 sd(fp, MemOperand(sp, 3 * kPointerSize)); 4794 sd(fp, MemOperand(sp, 3 * kPointerSize));
4788 sd(cp, MemOperand(sp, 2 * kPointerSize)); 4795 sd(cp, MemOperand(sp, 2 * kPointerSize));
4789 sd(t8, MemOperand(sp, 1 * kPointerSize)); 4796 sd(t8, MemOperand(sp, 1 * kPointerSize));
4790 sd(t9, MemOperand(sp, 0 * kPointerSize)); 4797 sd(t9, MemOperand(sp, 0 * kPointerSize));
4791 // Adjust FP to point to saved FP. 4798 // Adjust FP to point to saved FP.
(...skipping 1288 matching lines...) Expand 10 before | Expand all | Expand 10 after
6080 } 6087 }
6081 if (mag.shift > 0) sra(result, result, mag.shift); 6088 if (mag.shift > 0) sra(result, result, mag.shift);
6082 srl(at, dividend, 31); 6089 srl(at, dividend, 31);
6083 Addu(result, result, Operand(at)); 6090 Addu(result, result, Operand(at));
6084 } 6091 }
6085 6092
6086 6093
6087 } } // namespace v8::internal 6094 } } // namespace v8::internal
6088 6095
6089 #endif // V8_TARGET_ARCH_MIPS64 6096 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/macro-assembler-mips64.h ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698