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

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

Issue 1670813005: Revert of Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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/arm/builtins-arm.cc ('k') | src/arm64/builtins-arm64.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_ARM 7 #if V8_TARGET_ARCH_ARM
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 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 } 1107 }
1108 if (FLAG_enable_embedded_constant_pool) { 1108 if (FLAG_enable_embedded_constant_pool) {
1109 LoadConstantPoolPointerRegister(); 1109 LoadConstantPoolPointerRegister();
1110 set_constant_pool_available(true); 1110 set_constant_pool_available(true);
1111 } 1111 }
1112 } 1112 }
1113 1113
1114 1114
1115 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { 1115 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) {
1116 ldr(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1116 ldr(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1117 ldr(vector, FieldMemOperand(vector, JSFunction::kLiteralsOffset)); 1117 ldr(vector, FieldMemOperand(vector, JSFunction::kSharedFunctionInfoOffset));
1118 ldr(vector, FieldMemOperand(vector, LiteralsArray::kFeedbackVectorOffset)); 1118 ldr(vector,
1119 FieldMemOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset));
1119 } 1120 }
1120 1121
1121 1122
1122 void MacroAssembler::EnterFrame(StackFrame::Type type, 1123 void MacroAssembler::EnterFrame(StackFrame::Type type,
1123 bool load_constant_pool_pointer_reg) { 1124 bool load_constant_pool_pointer_reg) {
1124 // r0-r3: preserved 1125 // r0-r3: preserved
1125 PushFixedFrame(); 1126 PushFixedFrame();
1126 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) { 1127 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) {
1127 LoadConstantPoolPointerRegister(); 1128 LoadConstantPoolPointerRegister();
1128 } 1129 }
(...skipping 2543 matching lines...) Expand 10 before | Expand all | Expand 10 after
3672 } 3673 }
3673 } 3674 }
3674 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); 3675 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift));
3675 add(result, result, Operand(dividend, LSR, 31)); 3676 add(result, result, Operand(dividend, LSR, 31));
3676 } 3677 }
3677 3678
3678 } // namespace internal 3679 } // namespace internal
3679 } // namespace v8 3680 } // namespace v8
3680 3681
3681 #endif // V8_TARGET_ARCH_ARM 3682 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/builtins-arm.cc ('k') | src/arm64/builtins-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698