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

Side by Side Diff: src/ia32/macro-assembler-ia32.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 // 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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/division-by-constant.h" 8 #include "src/base/division-by-constant.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 Nop(kNoCodeAgeSequenceLength - Assembler::kCallInstructionLength); 862 Nop(kNoCodeAgeSequenceLength - Assembler::kCallInstructionLength);
863 } else { 863 } else {
864 push(ebp); // Caller's frame pointer. 864 push(ebp); // Caller's frame pointer.
865 mov(ebp, esp); 865 mov(ebp, esp);
866 push(esi); // Callee's context. 866 push(esi); // Callee's context.
867 push(edi); // Callee's JS function. 867 push(edi); // Callee's JS function.
868 } 868 }
869 } 869 }
870 870
871 871
872 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) {
873 mov(vector, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
874 mov(vector, FieldOperand(vector, JSFunction::kSharedFunctionInfoOffset));
875 mov(vector, FieldOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset));
876 }
877
878
872 void MacroAssembler::EnterFrame(StackFrame::Type type, 879 void MacroAssembler::EnterFrame(StackFrame::Type type,
873 bool load_constant_pool_pointer_reg) { 880 bool load_constant_pool_pointer_reg) {
874 // Out-of-line constant pool not implemented on ia32. 881 // Out-of-line constant pool not implemented on ia32.
875 UNREACHABLE(); 882 UNREACHABLE();
876 } 883 }
877 884
878 885
879 void MacroAssembler::EnterFrame(StackFrame::Type type) { 886 void MacroAssembler::EnterFrame(StackFrame::Type type) {
880 push(ebp); 887 push(ebp);
881 mov(ebp, esp); 888 mov(ebp, esp);
(...skipping 2232 matching lines...) Expand 10 before | Expand all | Expand 10 after
3114 mov(eax, dividend); 3121 mov(eax, dividend);
3115 shr(eax, 31); 3122 shr(eax, 31);
3116 add(edx, eax); 3123 add(edx, eax);
3117 } 3124 }
3118 3125
3119 3126
3120 } // namespace internal 3127 } // namespace internal
3121 } // namespace v8 3128 } // namespace v8
3122 3129
3123 #endif // V8_TARGET_ARCH_IA32 3130 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698