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

Side by Side Diff: src/ia32/frames-ia32.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/ia32/deoptimizer-ia32.cc ('k') | src/ia32/full-codegen-ia32.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_IA32_FRAMES_IA32_H_ 5 #ifndef V8_IA32_FRAMES_IA32_H_
6 #define V8_IA32_FRAMES_IA32_H_ 6 #define V8_IA32_FRAMES_IA32_H_
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // below the saved PC. 60 // below the saved PC.
61 static const int kCallerSPDisplacement = +2 * kPointerSize; 61 static const int kCallerSPDisplacement = +2 * kPointerSize;
62 62
63 static const int kConstantPoolOffset = 0; // Not used 63 static const int kConstantPoolOffset = 0; // Not used
64 }; 64 };
65 65
66 66
67 class JavaScriptFrameConstants : public AllStatic { 67 class JavaScriptFrameConstants : public AllStatic {
68 public: 68 public:
69 // FP-relative. 69 // FP-relative.
70 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset;
71 static const int kLastParameterOffset = +2 * kPointerSize; 70 static const int kLastParameterOffset = +2 * kPointerSize;
72 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; 71 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset;
72 static const int kFeedbackVectorOffset =
73 StandardFrameConstants::kExpressionsOffset;
74 static const int kLocal0Offset = -1 * kPointerSize + kFeedbackVectorOffset;
75 static const int kLocal0OffsetOptimized = kFeedbackVectorOffset;
76
77 static const int kDynamicAlignmentStateOffset = kFeedbackVectorOffset;
78
79 static const int kUnoptimizedFixedFrameSizeFromFp =
80 StandardFrameConstants::kFixedFrameSizeFromFp + kPointerSize;
73 81
74 // Caller SP-relative. 82 // Caller SP-relative.
75 static const int kParam0Offset = -2 * kPointerSize; 83 static const int kParam0Offset = -2 * kPointerSize;
76 static const int kReceiverOffset = -1 * kPointerSize; 84 static const int kReceiverOffset = -1 * kPointerSize;
77 85
78 static const int kDynamicAlignmentStateOffset = kLocal0Offset; 86 static const int kUnoptimizedFixedFrameSize =
87 StandardFrameConstants::kFixedFrameSize + kPointerSize;
79 }; 88 };
80 89
81 90
82 class ArgumentsAdaptorFrameConstants : public AllStatic { 91 class ArgumentsAdaptorFrameConstants : public AllStatic {
83 public: 92 public:
84 // FP-relative. 93 // FP-relative.
85 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset; 94 static const int kLengthOffset = StandardFrameConstants::kExpressionsOffset;
86 95
87 static const int kFrameSize = 96 static const int kFrameSize =
88 StandardFrameConstants::kFixedFrameSize + kPointerSize; 97 StandardFrameConstants::kFixedFrameSize + kPointerSize;
(...skipping 22 matching lines...) Expand all
111 120
112 inline Object* JavaScriptFrame::function_slot_object() const { 121 inline Object* JavaScriptFrame::function_slot_object() const {
113 const int offset = JavaScriptFrameConstants::kFunctionOffset; 122 const int offset = JavaScriptFrameConstants::kFunctionOffset;
114 return Memory::Object_at(fp() + offset); 123 return Memory::Object_at(fp() + offset);
115 } 124 }
116 125
117 126
118 } } // namespace v8::internal 127 } } // namespace v8::internal
119 128
120 #endif // V8_IA32_FRAMES_IA32_H_ 129 #endif // V8_IA32_FRAMES_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/deoptimizer-ia32.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698