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

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

Issue 1364373003: Full code shouldn't embed the type feedback vector. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ports. Created 5 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
OLDNEW
1 1
2 // Copyright 2012 the V8 project authors. All rights reserved. 2 // Copyright 2012 the V8 project authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #include <limits.h> // For LONG_MIN, LONG_MAX. 6 #include <limits.h> // For LONG_MIN, LONG_MAX.
7 7
8 #if V8_TARGET_ARCH_MIPS 8 #if V8_TARGET_ARCH_MIPS
9 9
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 4807 matching lines...) Expand 10 before | Expand all | Expand 10 after
4818 nop(); // Pad the empty space. 4818 nop(); // Pad the empty space.
4819 } else { 4819 } else {
4820 Push(ra, fp, cp, a1); 4820 Push(ra, fp, cp, a1);
4821 nop(Assembler::CODE_AGE_SEQUENCE_NOP); 4821 nop(Assembler::CODE_AGE_SEQUENCE_NOP);
4822 // Adjust fp to point to caller's fp. 4822 // Adjust fp to point to caller's fp.
4823 Addu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp)); 4823 Addu(fp, sp, Operand(StandardFrameConstants::kFixedFrameSizeFromFp));
4824 } 4824 }
4825 } 4825 }
4826 4826
4827 4827
4828 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) {
4829 lw(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
4830 lw(vector, FieldMemOperand(vector, JSFunction::kSharedFunctionInfoOffset));
4831 lw(vector,
4832 FieldMemOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset));
4833 }
4834
4835
4828 void MacroAssembler::EnterFrame(StackFrame::Type type, 4836 void MacroAssembler::EnterFrame(StackFrame::Type type,
4829 bool load_constant_pool_pointer_reg) { 4837 bool load_constant_pool_pointer_reg) {
4830 // Out-of-line constant pool not implemented on mips. 4838 // Out-of-line constant pool not implemented on mips.
4831 UNREACHABLE(); 4839 UNREACHABLE();
4832 } 4840 }
4833 4841
4834 4842
4835 void MacroAssembler::EnterFrame(StackFrame::Type type) { 4843 void MacroAssembler::EnterFrame(StackFrame::Type type) {
4836 addiu(sp, sp, -5 * kPointerSize); 4844 addiu(sp, sp, -5 * kPointerSize);
4837 li(t8, Operand(Smi::FromInt(type))); 4845 li(t8, Operand(Smi::FromInt(type)));
(...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after
5919 if (mag.shift > 0) sra(result, result, mag.shift); 5927 if (mag.shift > 0) sra(result, result, mag.shift);
5920 srl(at, dividend, 31); 5928 srl(at, dividend, 31);
5921 Addu(result, result, Operand(at)); 5929 Addu(result, result, Operand(at));
5922 } 5930 }
5923 5931
5924 5932
5925 } // namespace internal 5933 } // namespace internal
5926 } // namespace v8 5934 } // namespace v8
5927 5935
5928 #endif // V8_TARGET_ARCH_MIPS 5936 #endif // V8_TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698