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

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

Issue 1320006: Updates and fixes for MIPS support. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 7 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 static const int kContextOffset = -1 * kPointerSize; 115 static const int kContextOffset = -1 * kPointerSize;
116 static const int kCallerFPOffset = 0 * kPointerSize; 116 static const int kCallerFPOffset = 0 * kPointerSize;
117 static const int kCallerPCOffset = +1 * kPointerSize; 117 static const int kCallerPCOffset = +1 * kPointerSize;
118 static const int kCallerSPOffset = +2 * kPointerSize; 118 static const int kCallerSPOffset = +2 * kPointerSize;
119 119
120 // Size of the MIPS 4 32-bit argument slots. 120 // Size of the MIPS 4 32-bit argument slots.
121 // This is just an alias with a shorter name. Use it from now on. 121 // This is just an alias with a shorter name. Use it from now on.
122 static const int kRArgsSlotsSize = 4 * kPointerSize; 122 static const int kRArgsSlotsSize = 4 * kPointerSize;
123 static const int kRegularArgsSlotsSize = kRArgsSlotsSize; 123 static const int kRegularArgsSlotsSize = kRArgsSlotsSize;
124 124
125 // C/C++ argument slots size. 125 // C/C++ argument slots size.
Søren Thygesen Gjesse 2010/05/25 09:00:56 Aren't these constants duplicated here and in cons
126 static const int kCArgsSlotsSize = 4 * kPointerSize; 126 static const int kCArgsSlotsSize = 4 * kPointerSize;
127 // JS argument slots size. 127 // JS argument slots size.
128 static const int kJSArgsSlotsSize = 0 * kPointerSize; 128 static const int kJSArgsSlotsSize = 0 * kPointerSize;
129 // Assembly builtins argument slots size.
130 static const int kBArgsSlotsSize = 0 * kPointerSize;
129 }; 131 };
130 132
131 133
132 class JavaScriptFrameConstants : public AllStatic { 134 class JavaScriptFrameConstants : public AllStatic {
133 public: 135 public:
134 // FP-relative. 136 // FP-relative.
135 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset; 137 static const int kLocal0Offset = StandardFrameConstants::kExpressionsOffset;
136 static const int kSavedRegistersOffset = +2 * kPointerSize; 138 static const int kSavedRegistersOffset = +2 * kPointerSize;
137 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset; 139 static const int kFunctionOffset = StandardFrameConstants::kMarkerOffset;
138 140
(...skipping 16 matching lines...) Expand all
155 157
156 158
157 inline Object* JavaScriptFrame::function_slot_object() const { 159 inline Object* JavaScriptFrame::function_slot_object() const {
158 const int offset = JavaScriptFrameConstants::kFunctionOffset; 160 const int offset = JavaScriptFrameConstants::kFunctionOffset;
159 return Memory::Object_at(fp() + offset); 161 return Memory::Object_at(fp() + offset);
160 } 162 }
161 163
162 } } // namespace v8::internal 164 } } // namespace v8::internal
163 165
164 #endif 166 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698