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

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

Issue 1906823002: Move of the type feedback vector to the closure. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 4 years, 6 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
« no previous file with comments | « src/interpreter/interpreter-assembler.cc ('k') | src/mips64/macro-assembler-mips64.cc » ('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 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/division-by-constant.h" 10 #include "src/base/division-by-constant.h"
(...skipping 5728 matching lines...) Expand 10 before | Expand all | Expand 10 after
5739 nop(); // Pad the empty space. 5739 nop(); // Pad the empty space.
5740 } else { 5740 } else {
5741 PushStandardFrame(a1); 5741 PushStandardFrame(a1);
5742 nop(Assembler::CODE_AGE_SEQUENCE_NOP); 5742 nop(Assembler::CODE_AGE_SEQUENCE_NOP);
5743 } 5743 }
5744 } 5744 }
5745 5745
5746 5746
5747 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { 5747 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) {
5748 lw(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 5748 lw(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
5749 lw(vector, FieldMemOperand(vector, JSFunction::kSharedFunctionInfoOffset)); 5749 lw(vector, FieldMemOperand(vector, JSFunction::kLiteralsOffset));
5750 lw(vector, 5750 lw(vector, FieldMemOperand(vector, LiteralsArray::kFeedbackVectorOffset));
5751 FieldMemOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset));
5752 } 5751 }
5753 5752
5754 5753
5755 void MacroAssembler::EnterFrame(StackFrame::Type type, 5754 void MacroAssembler::EnterFrame(StackFrame::Type type,
5756 bool load_constant_pool_pointer_reg) { 5755 bool load_constant_pool_pointer_reg) {
5757 // Out-of-line constant pool not implemented on mips. 5756 // Out-of-line constant pool not implemented on mips.
5758 UNREACHABLE(); 5757 UNREACHABLE();
5759 } 5758 }
5760 5759
5761 5760
(...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after
6793 if (mag.shift > 0) sra(result, result, mag.shift); 6792 if (mag.shift > 0) sra(result, result, mag.shift);
6794 srl(at, dividend, 31); 6793 srl(at, dividend, 31);
6795 Addu(result, result, Operand(at)); 6794 Addu(result, result, Operand(at));
6796 } 6795 }
6797 6796
6798 6797
6799 } // namespace internal 6798 } // namespace internal
6800 } // namespace v8 6799 } // namespace v8
6801 6800
6802 #endif // V8_TARGET_ARCH_MIPS 6801 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/interpreter/interpreter-assembler.cc ('k') | src/mips64/macro-assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698