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

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: Ports. 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
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 2531 matching lines...) Expand 10 before | Expand all | Expand 10 after
3595 } 3594 }
3596 } 3595 }
3597 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); 3596 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift));
3598 add(result, result, Operand(dividend, LSR, 31)); 3597 add(result, result, Operand(dividend, LSR, 31));
3599 } 3598 }
3600 3599
3601 } // namespace internal 3600 } // namespace internal
3602 } // namespace v8 3601 } // namespace v8
3603 3602
3604 #endif // V8_TARGET_ARCH_ARM 3603 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/builtins-arm.cc ('k') | src/arm64/builtins-arm64.cc » ('j') | src/crankshaft/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698