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

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

Issue 1563213002: Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Exclude an ignition test. Created 4 years, 11 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 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 } 1041 }
1042 if (FLAG_enable_embedded_constant_pool) { 1042 if (FLAG_enable_embedded_constant_pool) {
1043 LoadConstantPoolPointerRegister(); 1043 LoadConstantPoolPointerRegister();
1044 set_constant_pool_available(true); 1044 set_constant_pool_available(true);
1045 } 1045 }
1046 } 1046 }
1047 1047
1048 1048
1049 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { 1049 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) {
1050 ldr(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1050 ldr(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1051 ldr(vector, FieldMemOperand(vector, JSFunction::kSharedFunctionInfoOffset)); 1051 ldr(vector, FieldMemOperand(vector, JSFunction::kLiteralsOffset));
1052 ldr(vector, 1052 ldr(vector, FieldMemOperand(vector, LiteralsArray::kFeedbackVectorOffset));
1053 FieldMemOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset));
1054 } 1053 }
1055 1054
1056 1055
1057 void MacroAssembler::EnterFrame(StackFrame::Type type, 1056 void MacroAssembler::EnterFrame(StackFrame::Type type,
1058 bool load_constant_pool_pointer_reg) { 1057 bool load_constant_pool_pointer_reg) {
1059 // r0-r3: preserved 1058 // r0-r3: preserved
1060 PushFixedFrame(); 1059 PushFixedFrame();
1061 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) { 1060 if (FLAG_enable_embedded_constant_pool && load_constant_pool_pointer_reg) {
1062 LoadConstantPoolPointerRegister(); 1061 LoadConstantPoolPointerRegister();
1063 } 1062 }
(...skipping 2543 matching lines...) Expand 10 before | Expand all | Expand 10 after
3607 } 3606 }
3608 } 3607 }
3609 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); 3608 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift));
3610 add(result, result, Operand(dividend, LSR, 31)); 3609 add(result, result, Operand(dividend, LSR, 31));
3611 } 3610 }
3612 3611
3613 } // namespace internal 3612 } // namespace internal
3614 } // namespace v8 3613 } // namespace v8
3615 3614
3616 #endif // V8_TARGET_ARCH_ARM 3615 #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