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

Side by Side Diff: src/x64/frames-x64.h

Issue 942513002: Put the type feedback vector in the unoptimized JavaScript frame. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: ia32 lithium fix. Created 5 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
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 #ifndef V8_X64_FRAMES_X64_H_ 5 #ifndef V8_X64_FRAMES_X64_H_
6 #define V8_X64_FRAMES_X64_H_ 6 #define V8_X64_FRAMES_X64_H_
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // below the saved PC. 54 // below the saved PC.
55 static const int kCallerSPDisplacement = kCallerPCOffset + kPCOnStackSize; 55 static const int kCallerSPDisplacement = kCallerPCOffset + kPCOnStackSize;
56 56
57 static const int kConstantPoolOffset = 0; // Not used 57 static const int kConstantPoolOffset = 0; // Not used
58 }; 58 };
59 59
60 60
61 class JavaScriptFrameConstants : public AllStatic { 61 class JavaScriptFrameConstants : public AllStatic {
62 public: 62 public:
63 // FP-relative. 63 // FP-relative.
64 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset;
65 static const int kLastParameterOffset = kFPOnStackSize + kPCOnStackSize; 64 static const int kLastParameterOffset = kFPOnStackSize + kPCOnStackSize;
66 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; 65 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset;
66 static const int kFeedbackVectorOffset =
67 StandardFrameConstants::kExpressionsOffset;
68 static const int kLocal0Offset = -1 * kPointerSize + kFeedbackVectorOffset;
69 static const int kLocal0OffsetOptimized = kFeedbackVectorOffset;
70
71 static const int kUnoptimizedFixedFrameSizeFromFp =
72 StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize;
67 73
68 // Caller SP-relative. 74 // Caller SP-relative.
69 static const int kParam0Offset = -2 * kPointerSize; 75 static const int kParam0Offset = -2 * kPointerSize;
70 static const int kReceiverOffset = -1 * kPointerSize; 76 static const int kReceiverOffset = -1 * kPointerSize;
77
78 static const int kUnoptimizedFixedFrameSize =
79 StandardFrameConstants::kFixedFrameSize + kPointerSize;
71 }; 80 };
72 81
73 82
74 class ArgumentsAdaptorFrameConstants : public AllStatic { 83 class ArgumentsAdaptorFrameConstants : public AllStatic {
75 public: 84 public:
76 // FP-relative. 85 // FP-relative.
77 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; 86 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset;
78 87
79 static const int kFrameSize = 88 static const int kFrameSize =
80 StandardFrameConstants::kFixedFrameSize + kPointerSize; 89 StandardFrameConstants::kFixedFrameSize + kPointerSize;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // Zero out the high-32 bit of FP for x32 port. 121 // Zero out the high-32 bit of FP for x32 port.
113 Memory::Address_at(slot + kPointerSize) = 0; 122 Memory::Address_at(slot + kPointerSize) = 0;
114 } 123 }
115 Memory::Address_at(slot) = fp; 124 Memory::Address_at(slot) = fp;
116 } 125 }
117 126
118 127
119 } } // namespace v8::internal 128 } } // namespace v8::internal
120 129
121 #endif // V8_X64_FRAMES_X64_H_ 130 #endif // V8_X64_FRAMES_X64_H_
OLDNEW
« src/deoptimizer.cc ('K') | « src/x64/code-stubs-x64.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698