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

Side by Side Diff: src/arm/macro-assembler-arm.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
« no previous file with comments | « no previous file | src/arm64/macro-assembler-arm64.cc » ('j') | src/compiler.cc » ('J')
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 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 } 1265 }
1266 if (FLAG_enable_embedded_constant_pool) { 1266 if (FLAG_enable_embedded_constant_pool) {
1267 LoadConstantPoolPointerRegister(); 1267 LoadConstantPoolPointerRegister();
1268 set_constant_pool_available(true); 1268 set_constant_pool_available(true);
1269 } 1269 }
1270 } 1270 }
1271 1271
1272 1272
1273 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { 1273 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) {
1274 ldr(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1274 ldr(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1275 ldr(vector, FieldMemOperand(vector, JSFunction::kSharedFunctionInfoOffset)); 1275 ldr(vector, FieldMemOperand(vector, JSFunction::kLiteralsOffset));
1276 ldr(vector, 1276 ldr(vector,
1277 FieldMemOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); 1277 FieldMemOperand(vector, LiteralsArray::kFeedbackVectorOffset));
1278 } 1278 }
1279 1279
1280 1280
1281 void MacroAssembler::EnterFrame(StackFrame::Type type, 1281 void MacroAssembler::EnterFrame(StackFrame::Type type,
1282 bool load_constant_pool_pointer_reg) { 1282 bool load_constant_pool_pointer_reg) {
1283 // r0-r3: preserved 1283 // r0-r3: preserved
1284 mov(ip, Operand(Smi::FromInt(type))); 1284 mov(ip, Operand(Smi::FromInt(type)));
1285 PushCommonFrame(ip); 1285 PushCommonFrame(ip);
1286 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) { 1286 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) {
1287 LoadConstantPoolPointerRegister(); 1287 LoadConstantPoolPointerRegister();
(...skipping 2637 matching lines...) Expand 10 before | Expand all | Expand 10 after
3925 } 3925 }
3926 } 3926 }
3927 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); 3927 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift));
3928 add(result, result, Operand(dividend, LSR, 31)); 3928 add(result, result, Operand(dividend, LSR, 31));
3929 } 3929 }
3930 3930
3931 } // namespace internal 3931 } // namespace internal
3932 } // namespace v8 3932 } // namespace v8
3933 3933
3934 #endif // V8_TARGET_ARCH_ARM 3934 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/macro-assembler-arm64.cc » ('j') | src/compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698