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

Side by Side Diff: src/mips/macro-assembler-mips.h

Issue 7834017: MIPS: Minor cleanup change to arguments slots constants. (Closed)
Patch Set: Created 9 years, 3 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/mips/frames-mips.h ('k') | src/mips/macro-assembler-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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 1196
1197 // Generate a MemOperand for loading a field from an object. 1197 // Generate a MemOperand for loading a field from an object.
1198 static inline MemOperand FieldMemOperand(Register object, int offset) { 1198 static inline MemOperand FieldMemOperand(Register object, int offset) {
1199 return MemOperand(object, offset - kHeapObjectTag); 1199 return MemOperand(object, offset - kHeapObjectTag);
1200 } 1200 }
1201 1201
1202 1202
1203 // Generate a MemOperand for storing arguments 5..N on the stack 1203 // Generate a MemOperand for storing arguments 5..N on the stack
1204 // when calling CallCFunction(). 1204 // when calling CallCFunction().
1205 static inline MemOperand CFunctionArgumentOperand(int index) { 1205 static inline MemOperand CFunctionArgumentOperand(int index) {
1206 ASSERT(index > StandardFrameConstants::kCArgSlotCount); 1206 ASSERT(index > kCArgSlotCount);
1207 // Argument 5 takes the slot just past the four Arg-slots. 1207 // Argument 5 takes the slot just past the four Arg-slots.
1208 int offset = 1208 int offset = (index - 5) * kPointerSize + kCArgsSlotsSize;
1209 (index - 5) * kPointerSize + StandardFrameConstants::kCArgsSlotsSize;
1210 return MemOperand(sp, offset); 1209 return MemOperand(sp, offset);
1211 } 1210 }
1212 1211
1213 1212
1214 #ifdef GENERATED_CODE_COVERAGE 1213 #ifdef GENERATED_CODE_COVERAGE
1215 #define CODE_COVERAGE_STRINGIFY(x) #x 1214 #define CODE_COVERAGE_STRINGIFY(x) #x
1216 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1215 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1217 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1216 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1218 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1217 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1219 #else 1218 #else
1220 #define ACCESS_MASM(masm) masm-> 1219 #define ACCESS_MASM(masm) masm->
1221 #endif 1220 #endif
1222 1221
1223 } } // namespace v8::internal 1222 } } // namespace v8::internal
1224 1223
1225 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1224 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/frames-mips.h ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698