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

Side by Side Diff: src/s390/macro-assembler-s390.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 | « src/runtime/runtime-scopes.cc ('k') | src/type-feedback-vector.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 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 954 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::kFeedbackVectorOffset)); 974 LoadP(vector, FieldMemOperand(vector, JSFunction::kFeedbackVectorOffset));
975 LoadP(vector, FieldMemOperand(vector, Cell::kValueOffset));
975 } 976 }
976 977
977 void MacroAssembler::EnterFrame(StackFrame::Type type, 978 void MacroAssembler::EnterFrame(StackFrame::Type type,
978 bool load_constant_pool_pointer_reg) { 979 bool load_constant_pool_pointer_reg) {
979 // We create a stack frame with: 980 // We create a stack frame with:
980 // Return Addr <-- old sp 981 // Return Addr <-- old sp
981 // Old FP <-- new fp 982 // Old FP <-- new fp
982 // CP 983 // CP
983 // type 984 // type
984 // CodeObject <-- new sp 985 // CodeObject <-- new sp
(...skipping 4368 matching lines...) Expand 10 before | Expand all | Expand 10 after
5353 } 5354 }
5354 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift)); 5355 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift));
5355 ExtractBit(r0, dividend, 31); 5356 ExtractBit(r0, dividend, 31);
5356 AddP(result, r0); 5357 AddP(result, r0);
5357 } 5358 }
5358 5359
5359 } // namespace internal 5360 } // namespace internal
5360 } // namespace v8 5361 } // namespace v8
5361 5362
5362 #endif // V8_TARGET_ARCH_S390 5363 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/runtime/runtime-scopes.cc ('k') | src/type-feedback-vector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698