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 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
964 } | 964 } |
965 } else { | 965 } else { |
966 // This matches the code found in GetNoCodeAgeSequence() | 966 // This matches the code found in GetNoCodeAgeSequence() |
967 PushStandardFrame(r3); | 967 PushStandardFrame(r3); |
968 } | 968 } |
969 } | 969 } |
970 } | 970 } |
971 | 971 |
972 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { | 972 void MacroAssembler::EmitLoadTypeFeedbackVector(Register vector) { |
973 LoadP(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 973 LoadP(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
974 LoadP(vector, FieldMemOperand(vector, JSFunction::kLiteralsOffset)); | 974 LoadP(vector, FieldMemOperand(vector, JSFunction::kFeedbackVectorOffset)); |
975 LoadP(vector, FieldMemOperand(vector, LiteralsArray::kFeedbackVectorOffset)); | |
976 } | 975 } |
977 | 976 |
978 void MacroAssembler::EnterFrame(StackFrame::Type type, | 977 void MacroAssembler::EnterFrame(StackFrame::Type type, |
979 bool load_constant_pool_pointer_reg) { | 978 bool load_constant_pool_pointer_reg) { |
980 // We create a stack frame with: | 979 // We create a stack frame with: |
981 // Return Addr <-- old sp | 980 // Return Addr <-- old sp |
982 // Old FP <-- new fp | 981 // Old FP <-- new fp |
983 // CP | 982 // CP |
984 // type | 983 // type |
985 // CodeObject <-- new sp | 984 // CodeObject <-- new sp |
(...skipping 4235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5221 } | 5220 } |
5222 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift)); | 5221 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift)); |
5223 ExtractBit(r0, dividend, 31); | 5222 ExtractBit(r0, dividend, 31); |
5224 AddP(result, r0); | 5223 AddP(result, r0); |
5225 } | 5224 } |
5226 | 5225 |
5227 } // namespace internal | 5226 } // namespace internal |
5228 } // namespace v8 | 5227 } // namespace v8 |
5229 | 5228 |
5230 #endif // V8_TARGET_ARCH_S390 | 5229 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |