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

Side by Side Diff: src/arm/macro-assembler-arm.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 | « no previous file | src/arm64/macro-assembler-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 1413 matching lines...) Expand 10 before | Expand all | Expand 10 after
1424 if (FLAG_enable_embedded_constant_pool) { 1424 if (FLAG_enable_embedded_constant_pool) {
1425 LoadConstantPoolPointerRegister(); 1425 LoadConstantPoolPointerRegister();
1426 set_constant_pool_available(true); 1426 set_constant_pool_available(true);
1427 } 1427 }
1428 } 1428 }
1429 1429
1430 1430
1431 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { 1431 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) {
1432 ldr(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1432 ldr(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1433 ldr(vector, FieldMemOperand(vector, JSFunction::kFeedbackVectorOffset)); 1433 ldr(vector, FieldMemOperand(vector, JSFunction::kFeedbackVectorOffset));
1434 ldr(vector, FieldMemOperand(vector, Cell::kValueOffset));
1434 } 1435 }
1435 1436
1436 1437
1437 void MacroAssembler::EnterFrame(StackFrame::Type type, 1438 void MacroAssembler::EnterFrame(StackFrame::Type type,
1438 bool load_constant_pool_pointer_reg) { 1439 bool load_constant_pool_pointer_reg) {
1439 // r0-r3: preserved 1440 // r0-r3: preserved
1440 mov(ip, Operand(Smi::FromInt(type))); 1441 mov(ip, Operand(Smi::FromInt(type)));
1441 PushCommonFrame(ip); 1442 PushCommonFrame(ip);
1442 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) { 1443 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) {
1443 LoadConstantPoolPointerRegister(); 1444 LoadConstantPoolPointerRegister();
(...skipping 2433 matching lines...) Expand 10 before | Expand all | Expand 10 after
3877 } 3878 }
3878 } 3879 }
3879 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); 3880 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift));
3880 add(result, result, Operand(dividend, LSR, 31)); 3881 add(result, result, Operand(dividend, LSR, 31));
3881 } 3882 }
3882 3883
3883 } // namespace internal 3884 } // namespace internal
3884 } // namespace v8 3885 } // namespace v8
3885 3886
3886 #endif // V8_TARGET_ARCH_ARM 3887 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/macro-assembler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698