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

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

Issue 1018001: MIPS simple function calls (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/codegen-mips-inl.h ('k') | src/mips/frames-mips.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 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 static const int kCodeOffset = -1 * kPointerSize; 97 static const int kCodeOffset = -1 * kPointerSize;
98 98
99 static const int kSavedRegistersOffset = 0 * kPointerSize; 99 static const int kSavedRegistersOffset = 0 * kPointerSize;
100 100
101 // The caller fields are below the frame pointer on the stack. 101 // The caller fields are below the frame pointer on the stack.
102 static const int kCallerFPOffset = +0 * kPointerSize; 102 static const int kCallerFPOffset = +0 * kPointerSize;
103 // The calling JS function is between FP and PC. 103 // The calling JS function is between FP and PC.
104 static const int kCallerPCOffset = +1 * kPointerSize; 104 static const int kCallerPCOffset = +1 * kPointerSize;
105 105
106 // FP-relative displacement of the caller's SP. 106 // FP-relative displacement of the caller's SP.
107 static const int kCallerSPDisplacement = +4 * kPointerSize; 107 static const int kCallerSPDisplacement = +3 * kPointerSize;
108 }; 108 };
109 109
110 110
111 class StandardFrameConstants : public AllStatic { 111 class StandardFrameConstants : public AllStatic {
112 public: 112 public:
113 static const int kExpressionsOffset = -3 * kPointerSize; 113 static const int kExpressionsOffset = -3 * kPointerSize;
114 static const int kMarkerOffset = -2 * kPointerSize; 114 static const int kMarkerOffset = -2 * kPointerSize;
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;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 156
157 inline Object* JavaScriptFrame::function_slot_object() const { 157 inline Object* JavaScriptFrame::function_slot_object() const {
158 const int offset = JavaScriptFrameConstants::kFunctionOffset; 158 const int offset = JavaScriptFrameConstants::kFunctionOffset;
159 return Memory::Object_at(fp() + offset); 159 return Memory::Object_at(fp() + offset);
160 } 160 }
161 161
162 } } // namespace v8::internal 162 } } // namespace v8::internal
163 163
164 #endif 164 #endif
OLDNEW
« no previous file with comments | « src/mips/codegen-mips-inl.h ('k') | src/mips/frames-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698