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

Side by Side Diff: src/ia32/macro-assembler-ia32.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, 7 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 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after
1088 push(ebp); // Caller's frame pointer. 1088 push(ebp); // Caller's frame pointer.
1089 mov(ebp, esp); 1089 mov(ebp, esp);
1090 push(esi); // Callee's context. 1090 push(esi); // Callee's context.
1091 push(edi); // Callee's JS function. 1091 push(edi); // Callee's JS function.
1092 } 1092 }
1093 } 1093 }
1094 1094
1095 1095
1096 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { 1096 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) {
1097 mov(vector, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); 1097 mov(vector, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
1098 mov(vector, FieldOperand(vector, JSFunction::kSharedFunctionInfoOffset)); 1098 mov(vector, FieldOperand(vector, JSFunction::kLiteralsOffset));
1099 mov(vector, FieldOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); 1099 mov(vector, FieldOperand(vector, LiteralsArray::kFeedbackVectorOffset));
1100 } 1100 }
1101 1101
1102 1102
1103 void MacroAssembler::EnterFrame(StackFrame::Type type, 1103 void MacroAssembler::EnterFrame(StackFrame::Type type,
1104 bool load_constant_pool_pointer_reg) { 1104 bool load_constant_pool_pointer_reg) {
1105 // Out-of-line constant pool not implemented on ia32. 1105 // Out-of-line constant pool not implemented on ia32.
1106 UNREACHABLE(); 1106 UNREACHABLE();
1107 } 1107 }
1108 1108
1109 1109
(...skipping 2290 matching lines...) Expand 10 before | Expand all | Expand 10 after
3400 mov(eax, dividend); 3400 mov(eax, dividend);
3401 shr(eax, 31); 3401 shr(eax, 31);
3402 add(edx, eax); 3402 add(edx, eax);
3403 } 3403 }
3404 3404
3405 3405
3406 } // namespace internal 3406 } // namespace internal
3407 } // namespace v8 3407 } // namespace v8
3408 3408
3409 #endif // V8_TARGET_ARCH_IA32 3409 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698