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

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

Issue 6170001: Direct call api functions (arm implementation) (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 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 | Annotate | Revision Log
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 }; 106 };
107 107
108 108
109 class ExitFrameConstants : public AllStatic { 109 class ExitFrameConstants : public AllStatic {
110 public: 110 public:
111 static const int kCodeOffset = -1 * kPointerSize; 111 static const int kCodeOffset = -1 * kPointerSize;
112 static const int kSPOffset = -1 * kPointerSize; 112 static const int kSPOffset = -1 * kPointerSize;
113 113
114 // TODO(regis): Use a patched sp value on the stack instead. 114 // TODO(regis): Use a patched sp value on the stack instead.
115 // A marker of 0 indicates that double registers are saved. 115 // A marker of 0 indicates that double registers are saved.
116 static const int kMarkerOffset = -2 * kPointerSize; 116 static const int kMarkerOffset = -2 * kPointerSize;
SeRya 2011/01/21 09:52:36 Actually the same technique (used fixed place in t
Zaheer 2011/01/21 11:51:50 Done.
117 static const int kPCOffset = -2 * kPointerSize;
117 118
118 // The caller fields are below the frame pointer on the stack. 119 // The caller fields are below the frame pointer on the stack.
119 static const int kCallerFPOffset = +0 * kPointerSize; 120 static const int kCallerFPOffset = +0 * kPointerSize;
120 // The calling JS function is between FP and PC. 121 // The calling JS function is between FP and PC.
121 static const int kCallerPCOffset = +2 * kPointerSize; 122 static const int kCallerPCOffset = +2 * kPointerSize;
122 123
123 // FP-relative displacement of the caller's SP. It points just 124 // FP-relative displacement of the caller's SP. It points just
124 // below the saved PC. 125 // below the saved PC.
125 static const int kCallerSPDisplacement = +3 * kPointerSize; 126 static const int kCallerSPDisplacement = +3 * kPointerSize;
126 }; 127 };
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 165
165 inline Object* JavaScriptFrame::function_slot_object() const { 166 inline Object* JavaScriptFrame::function_slot_object() const {
166 const int offset = JavaScriptFrameConstants::kFunctionOffset; 167 const int offset = JavaScriptFrameConstants::kFunctionOffset;
167 return Memory::Object_at(fp() + offset); 168 return Memory::Object_at(fp() + offset);
168 } 169 }
169 170
170 171
171 } } // namespace v8::internal 172 } } // namespace v8::internal
172 173
173 #endif // V8_ARM_FRAMES_ARM_H_ 174 #endif // V8_ARM_FRAMES_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698