OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 <assert.h> // For assert | 5 #include <assert.h> // For assert |
6 #include <limits.h> // For LONG_MIN, LONG_MAX. | 6 #include <limits.h> // For LONG_MIN, LONG_MAX. |
7 | 7 |
8 #if V8_TARGET_ARCH_S390 | 8 #if V8_TARGET_ARCH_S390 |
9 | 9 |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 } | 980 } |
981 } else { | 981 } else { |
982 // This matches the code found in GetNoCodeAgeSequence() | 982 // This matches the code found in GetNoCodeAgeSequence() |
983 PushStandardFrame(r3); | 983 PushStandardFrame(r3); |
984 } | 984 } |
985 } | 985 } |
986 } | 986 } |
987 | 987 |
988 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { | 988 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
989 LoadP(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 989 LoadP(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
990 LoadP(vector, FieldMemOperand(vector, JSFunction::kSharedFunctionInfoOffset)); | 990 LoadP(vector, FieldMemOperand(vector, JSFunction::kLiteralsOffset)); |
991 LoadP(vector, | 991 LoadP(vector, FieldMemOperand(vector, LiteralsArray::kFeedbackVectorOffset)); |
992 FieldMemOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); | |
993 } | 992 } |
994 | 993 |
995 void MacroAssembler::EnterFrame(StackFrame::Type type, | 994 void MacroAssembler::EnterFrame(StackFrame::Type type, |
996 bool load_constant_pool_pointer_reg) { | 995 bool load_constant_pool_pointer_reg) { |
997 // We create a stack frame with: | 996 // We create a stack frame with: |
998 // Return Addr <-- old sp | 997 // Return Addr <-- old sp |
999 // Old FP <-- new fp | 998 // Old FP <-- new fp |
1000 // CP | 999 // CP |
1001 // type | 1000 // type |
1002 // CodeObject <-- new sp | 1001 // CodeObject <-- new sp |
(...skipping 4521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5524 } | 5523 } |
5525 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift)); | 5524 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift)); |
5526 ExtractBit(r0, dividend, 31); | 5525 ExtractBit(r0, dividend, 31); |
5527 AddP(result, r0); | 5526 AddP(result, r0); |
5528 } | 5527 } |
5529 | 5528 |
5530 } // namespace internal | 5529 } // namespace internal |
5531 } // namespace v8 | 5530 } // namespace v8 |
5532 | 5531 |
5533 #endif // V8_TARGET_ARCH_S390 | 5532 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |