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

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

Issue 1696043002: [runtime] Unify and simplify how frames are marked (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix merge problems Created 4 years, 9 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_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 24 matching lines...) Expand all
35 public: 35 public:
36 static const int kCallerFPOffset = -6 * kPointerSize; 36 static const int kCallerFPOffset = -6 * kPointerSize;
37 37
38 static const int kNewTargetArgOffset = +2 * kPointerSize; 38 static const int kNewTargetArgOffset = +2 * kPointerSize;
39 static const int kFunctionArgOffset = +3 * kPointerSize; 39 static const int kFunctionArgOffset = +3 * kPointerSize;
40 static const int kReceiverArgOffset = +4 * kPointerSize; 40 static const int kReceiverArgOffset = +4 * kPointerSize;
41 static const int kArgcOffset = +5 * kPointerSize; 41 static const int kArgcOffset = +5 * kPointerSize;
42 static const int kArgvOffset = +6 * kPointerSize; 42 static const int kArgvOffset = +6 * kPointerSize;
43 }; 43 };
44 44
45 45 class ExitFrameConstants : public TypedFrameConstants {
46 class ExitFrameConstants : public AllStatic {
47 public: 46 public:
48 static const int kFrameSize = 2 * kPointerSize; 47 static const int kSPOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(0);
49 48 static const int kCodeOffset = TYPED_FRAME_PUSHED_VALUE_OFFSET(1);
50 static const int kCodeOffset = -2 * kPointerSize; 49 DEFINE_TYPED_FRAME_SIZES(2);
51 static const int kSPOffset = -1 * kPointerSize;
52 50
53 static const int kCallerFPOffset = 0 * kPointerSize; 51 static const int kCallerFPOffset = 0 * kPointerSize;
54 static const int kCallerPCOffset = +1 * kPointerSize; 52 static const int kCallerPCOffset = +1 * kPointerSize;
55 53
56 // FP-relative displacement of the caller's SP. It points just 54 // FP-relative displacement of the caller's SP. It points just
57 // below the saved PC. 55 // below the saved PC.
58 static const int kCallerSPDisplacement = +2 * kPointerSize; 56 static const int kCallerSPDisplacement = +2 * kPointerSize;
59 57
60 static const int kConstantPoolOffset = 0; // Not used 58 static const int kConstantPoolOffset = 0; // Not used
61 }; 59 };
62 60
63 61
64 class JavaScriptFrameConstants : public AllStatic { 62 class JavaScriptFrameConstants : public AllStatic {
65 public: 63 public:
66 // FP-relative. 64 // FP-relative.
67 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; 65 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset;
68 static const int kLastParameterOffset = +2 * kPointerSize; 66 static const int kLastParameterOffset = +2 * kPointerSize;
69 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; 67 static const int kFunctionOffset = StandardFrameConstants::kFunctionOffset;
70 68
71 // Caller SP-relative. 69 // Caller SP-relative.
72 static const int kParam0Offset = -2 * kPointerSize; 70 static const int kParam0Offset = -2 * kPointerSize;
73 static const int kReceiverOffset = -1 * kPointerSize; 71 static const int kReceiverOffset = -1 * kPointerSize;
74 }; 72 };
75 73
76 74
77 } // namespace internal 75 } // namespace internal
78 } // namespace v8 76 } // namespace v8
79 77
80 #endif // V8_IA32_FRAMES_IA32_H_ 78 #endif // V8_IA32_FRAMES_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698