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

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

Issue 2674593003: [TypeFeedbackVector] Root feedback vectors at function literal site. (Closed)
Patch Set: REBASE+liveedit fix. Created 3 years, 10 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/heap/object-stats.cc ('k') | src/interpreter/interpreter-assembler.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 #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 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 mov(ebp, esp); 1023 mov(ebp, esp);
1024 push(esi); // Callee's context. 1024 push(esi); // Callee's context.
1025 push(edi); // Callee's JS function. 1025 push(edi); // Callee's JS function.
1026 } 1026 }
1027 } 1027 }
1028 1028
1029 1029
1030 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { 1030 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) {
1031 mov(vector, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); 1031 mov(vector, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
1032 mov(vector, FieldOperand(vector, JSFunction::kFeedbackVectorOffset)); 1032 mov(vector, FieldOperand(vector, JSFunction::kFeedbackVectorOffset));
1033 mov(vector, FieldOperand(vector, Cell::kValueOffset));
1033 } 1034 }
1034 1035
1035 1036
1036 void MacroAssembler::EnterFrame(StackFrame::Type type, 1037 void MacroAssembler::EnterFrame(StackFrame::Type type,
1037 bool load_constant_pool_pointer_reg) { 1038 bool load_constant_pool_pointer_reg) {
1038 // Out-of-line constant pool not implemented on ia32. 1039 // Out-of-line constant pool not implemented on ia32.
1039 UNREACHABLE(); 1040 UNREACHABLE();
1040 } 1041 }
1041 1042
1042 1043
(...skipping 1914 matching lines...) Expand 10 before | Expand all | Expand 10 after
2957 mov(eax, dividend); 2958 mov(eax, dividend);
2958 shr(eax, 31); 2959 shr(eax, 31);
2959 add(edx, eax); 2960 add(edx, eax);
2960 } 2961 }
2961 2962
2962 2963
2963 } // namespace internal 2964 } // namespace internal
2964 } // namespace v8 2965 } // namespace v8
2965 2966
2966 #endif // V8_TARGET_ARCH_IA32 2967 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/heap/object-stats.cc ('k') | src/interpreter/interpreter-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698