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

Side by Side Diff: src/x87/macro-assembler-x87.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/x64/macro-assembler-x64.cc ('k') | test/cctest/heap/test-heap.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_X87 5 #if V8_TARGET_ARCH_X87
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 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 push(ebp); // Caller's frame pointer. 962 push(ebp); // Caller's frame pointer.
963 mov(ebp, esp); 963 mov(ebp, esp);
964 push(esi); // Callee's context. 964 push(esi); // Callee's context.
965 push(edi); // Callee's JS function. 965 push(edi); // Callee's JS function.
966 } 966 }
967 } 967 }
968 968
969 969
970 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { 970 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) {
971 mov(vector, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); 971 mov(vector, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
972 mov(vector, FieldOperand(vector, JSFunction::kLiteralsOffset)); 972 mov(vector, FieldOperand(vector, JSFunction::kFeedbackVectorOffset));
973 mov(vector, FieldOperand(vector, LiteralsArray::kFeedbackVectorOffset)); 973 mov(vector, FieldOperand(vector, Cell::kValueOffset));
974 } 974 }
975 975
976 976
977 void MacroAssembler::EnterFrame(StackFrame::Type type, 977 void MacroAssembler::EnterFrame(StackFrame::Type type,
978 bool load_constant_pool_pointer_reg) { 978 bool load_constant_pool_pointer_reg) {
979 // Out-of-line constant pool not implemented on x87. 979 // Out-of-line constant pool not implemented on x87.
980 UNREACHABLE(); 980 UNREACHABLE();
981 } 981 }
982 982
983 983
(...skipping 1812 matching lines...) Expand 10 before | Expand all | Expand 10 after
2796 mov(eax, dividend); 2796 mov(eax, dividend);
2797 shr(eax, 31); 2797 shr(eax, 31);
2798 add(edx, eax); 2798 add(edx, eax);
2799 } 2799 }
2800 2800
2801 2801
2802 } // namespace internal 2802 } // namespace internal
2803 } // namespace v8 2803 } // namespace v8
2804 2804
2805 #endif // V8_TARGET_ARCH_X87 2805 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | test/cctest/heap/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698