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

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

Issue 8680013: Remove the static qualifier from functions in header files. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Restored static const references on ARM and MIPS. Created 9 years 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 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 enum RememberedSetAction { EMIT_REMEMBERED_SET, OMIT_REMEMBERED_SET }; 95 enum RememberedSetAction { EMIT_REMEMBERED_SET, OMIT_REMEMBERED_SET };
96 enum SmiCheck { INLINE_SMI_CHECK, OMIT_SMI_CHECK }; 96 enum SmiCheck { INLINE_SMI_CHECK, OMIT_SMI_CHECK };
97 enum RAStatus { kRAHasNotBeenSaved, kRAHasBeenSaved }; 97 enum RAStatus { kRAHasNotBeenSaved, kRAHasBeenSaved };
98 98
99 bool AreAliased(Register r1, Register r2, Register r3, Register r4); 99 bool AreAliased(Register r1, Register r2, Register r3, Register r4);
100 100
101 101
102 // ----------------------------------------------------------------------------- 102 // -----------------------------------------------------------------------------
103 // Static helper functions. 103 // Static helper functions.
104 104
105 static MemOperand ContextOperand(Register context, int index) { 105 inline MemOperand ContextOperand(Register context, int index) {
106 return MemOperand(context, Context::SlotOffset(index)); 106 return MemOperand(context, Context::SlotOffset(index));
107 } 107 }
108 108
109 109
110 static inline MemOperand GlobalObjectOperand() { 110 inline MemOperand GlobalObjectOperand() {
111 return ContextOperand(cp, Context::GLOBAL_INDEX); 111 return ContextOperand(cp, Context::GLOBAL_INDEX);
112 } 112 }
113 113
114 114
115 // Generate a MemOperand for loading a field from an object. 115 // Generate a MemOperand for loading a field from an object.
116 static inline MemOperand FieldMemOperand(Register object, int offset) { 116 inline MemOperand FieldMemOperand(Register object, int offset) {
117 return MemOperand(object, offset - kHeapObjectTag); 117 return MemOperand(object, offset - kHeapObjectTag);
118 } 118 }
119 119
120 120
121 // Generate a MemOperand for storing arguments 5..N on the stack 121 // Generate a MemOperand for storing arguments 5..N on the stack
122 // when calling CallCFunction(). 122 // when calling CallCFunction().
123 static inline MemOperand CFunctionArgumentOperand(int index) { 123 inline MemOperand CFunctionArgumentOperand(int index) {
124 ASSERT(index > kCArgSlotCount); 124 ASSERT(index > kCArgSlotCount);
125 // Argument 5 takes the slot just past the four Arg-slots. 125 // Argument 5 takes the slot just past the four Arg-slots.
126 int offset = (index - 5) * kPointerSize + kCArgsSlotsSize; 126 int offset = (index - 5) * kPointerSize + kCArgsSlotsSize;
127 return MemOperand(sp, offset); 127 return MemOperand(sp, offset);
128 } 128 }
129 129
130 130
131 // MacroAssembler implements a collection of frequently used macros. 131 // MacroAssembler implements a collection of frequently used macros.
132 class MacroAssembler: public Assembler { 132 class MacroAssembler: public Assembler {
133 public: 133 public:
(...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1439 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1440 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1440 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1441 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1441 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1442 #else 1442 #else
1443 #define ACCESS_MASM(masm) masm-> 1443 #define ACCESS_MASM(masm) masm->
1444 #endif 1444 #endif
1445 1445
1446 } } // namespace v8::internal 1446 } } // namespace v8::internal
1447 1447
1448 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1448 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« src/conversions-inl.h ('K') | « src/mips/frames-mips.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698