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

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: Reduced constant in deep recursion test for windows. Created 5 years, 8 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/x64/code-stubs-x64.cc ('k') | src/x64/full-codegen-x64.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 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 22 matching lines...) Expand all
103 112
104 inline Object* JavaScriptFrame::function_slot_object() const { 113 inline Object* JavaScriptFrame::function_slot_object() const {
105 const int offset = JavaScriptFrameConstants::kFunctionOffset; 114 const int offset = JavaScriptFrameConstants::kFunctionOffset;
106 return Memory::Object_at(fp() + offset); 115 return Memory::Object_at(fp() + offset);
107 } 116 }
108 117
109 118
110 } } // namespace v8::internal 119 } } // namespace v8::internal
111 120
112 #endif // V8_X64_FRAMES_X64_H_ 121 #endif // V8_X64_FRAMES_X64_H_
OLDNEW
« no previous file with comments | « 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