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

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

Issue 6529055: [Isolates] Merge crankshaft (r5922 from bleeding_edge). (Closed)
Patch Set: Win32 port Created 9 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/arm/deoptimizer-arm.cc ('k') | src/arm/frames-arm.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 1 << 7 | // r7 v4 69 1 << 7 | // r7 v4
70 1 << 8 | // r8 v5 (cp in JavaScript code) 70 1 << 8 | // r8 v5 (cp in JavaScript code)
71 kR9Available 71 kR9Available
72 << 9 | // r9 v6 72 << 9 | // r9 v6
73 1 << 10 | // r10 v7 73 1 << 10 | // r10 v7
74 1 << 11; // r11 v8 (fp in JavaScript code) 74 1 << 11; // r11 v8 (fp in JavaScript code)
75 75
76 static const int kNumCalleeSaved = 7 + kR9Available; 76 static const int kNumCalleeSaved = 7 + kR9Available;
77 77
78 78
79 // Number of registers for which space is reserved in safepoints. Must be a
80 // multiple of 8.
81 // TODO(regis): Only 8 registers may actually be sufficient. Revisit.
82 static const int kNumSafepointRegisters = 16;
83
84 // Define the list of registers actually saved at safepoints.
85 // Note that the number of saved registers may be smaller than the reserved
86 // space, i.e. kNumSafepointSavedRegisters <= kNumSafepointRegisters.
87 static const RegList kSafepointSavedRegisters = kJSCallerSaved | kCalleeSaved;
88 static const int kNumSafepointSavedRegisters =
89 kNumJSCallerSaved + kNumCalleeSaved;
90
79 // ---------------------------------------------------- 91 // ----------------------------------------------------
80 92
81 93
82 class StackHandlerConstants : public AllStatic { 94 class StackHandlerConstants : public AllStatic {
83 public: 95 public:
84 static const int kNextOffset = 0 * kPointerSize; 96 static const int kNextOffset = 0 * kPointerSize;
85 static const int kStateOffset = 1 * kPointerSize; 97 static const int kStateOffset = 1 * kPointerSize;
86 static const int kFPOffset = 2 * kPointerSize; 98 static const int kFPOffset = 2 * kPointerSize;
87 static const int kPCOffset = 3 * kPointerSize; 99 static const int kPCOffset = 3 * kPointerSize;
88 100
89 static const int kSize = kPCOffset + kPointerSize; 101 static const int kSize = kPCOffset + kPointerSize;
90 }; 102 };
91 103
92 104
93 class EntryFrameConstants : public AllStatic { 105 class EntryFrameConstants : public AllStatic {
94 public: 106 public:
95 static const int kCallerFPOffset = -3 * kPointerSize; 107 static const int kCallerFPOffset = -3 * kPointerSize;
96 }; 108 };
97 109
98 110
99 class ExitFrameConstants : public AllStatic { 111 class ExitFrameConstants : public AllStatic {
100 public: 112 public:
101 static const int kCodeOffset = -1 * kPointerSize; 113 static const int kCodeOffset = -1 * kPointerSize;
102 static const int kSPOffset = -1 * kPointerSize; 114 static const int kSPOffset = -1 * kPointerSize;
103 115
104 static const int kSavedRegistersOffset = 0 * kPointerSize; 116 // TODO(regis): Use a patched sp value on the stack instead.
117 // A marker of 0 indicates that double registers are saved.
118 static const int kMarkerOffset = -2 * kPointerSize;
105 119
106 // The caller fields are below the frame pointer on the stack. 120 // The caller fields are below the frame pointer on the stack.
107 static const int kCallerFPOffset = +0 * kPointerSize; 121 static const int kCallerFPOffset = +0 * kPointerSize;
108 // The calling JS function is between FP and PC. 122 // The calling JS function is between FP and PC.
109 static const int kCallerPCOffset = +2 * kPointerSize; 123 static const int kCallerPCOffset = +2 * kPointerSize;
110 124
111 // FP-relative displacement of the caller's SP. It points just 125 // FP-relative displacement of the caller's SP. It points just
112 // below the saved PC. 126 // below the saved PC.
113 static const int kCallerSPDisplacement = +3 * kPointerSize; 127 static const int kCallerSPDisplacement = +3 * kPointerSize;
114 }; 128 };
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 166
153 inline Object* JavaScriptFrame::function_slot_object() const { 167 inline Object* JavaScriptFrame::function_slot_object() const {
154 const int offset = JavaScriptFrameConstants::kFunctionOffset; 168 const int offset = JavaScriptFrameConstants::kFunctionOffset;
155 return Memory::Object_at(fp() + offset); 169 return Memory::Object_at(fp() + offset);
156 } 170 }
157 171
158 172
159 } } // namespace v8::internal 173 } } // namespace v8::internal
160 174
161 #endif // V8_ARM_FRAMES_ARM_H_ 175 #endif // V8_ARM_FRAMES_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/deoptimizer-arm.cc ('k') | src/arm/frames-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698