OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 Label* miss); | 164 Label* miss); |
165 | 165 |
166 | 166 |
167 // --------------------------------------------------------------------------- | 167 // --------------------------------------------------------------------------- |
168 // Allocation support | 168 // Allocation support |
169 | 169 |
170 // Allocate an object in new space. The object_size is specified in words (not | 170 // Allocate an object in new space. The object_size is specified in words (not |
171 // bytes). If the new space is exhausted control continues at the gc_required | 171 // bytes). If the new space is exhausted control continues at the gc_required |
172 // label. The allocated object is returned in result. If the flag | 172 // label. The allocated object is returned in result. If the flag |
173 // tag_allocated_object is true the result is tagged as as a heap object. | 173 // tag_allocated_object is true the result is tagged as as a heap object. |
174 void AllocateObjectInNewSpace(int object_size, | 174 void AllocateInNewSpace(int object_size, |
175 Register result, | 175 Register result, |
176 Register scratch1, | 176 Register scratch1, |
177 Register scratch2, | 177 Register scratch2, |
178 Label* gc_required, | 178 Label* gc_required, |
179 AllocationFlags flags); | 179 AllocationFlags flags); |
180 void AllocateObjectInNewSpace(Register object_size, | 180 void AllocateInNewSpace(Register object_size, |
181 Register result, | 181 Register result, |
182 Register scratch1, | 182 Register scratch1, |
183 Register scratch2, | 183 Register scratch2, |
184 Label* gc_required, | 184 Label* gc_required, |
185 AllocationFlags flags); | 185 AllocationFlags flags); |
186 | 186 |
187 // Undo allocation in new space. The object passed and objects allocated after | 187 // Undo allocation in new space. The object passed and objects allocated after |
188 // it will no longer be allocated. The caller must make sure that no pointers | 188 // it will no longer be allocated. The caller must make sure that no pointers |
189 // are left to the object(s) no longer allocated as they would be invalid when | 189 // are left to the object(s) no longer allocated as they would be invalid when |
190 // allocation is undone. | 190 // allocation is undone. |
191 void UndoAllocationInNewSpace(Register object, Register scratch); | 191 void UndoAllocationInNewSpace(Register object, Register scratch); |
192 | 192 |
193 // --------------------------------------------------------------------------- | 193 // --------------------------------------------------------------------------- |
194 // Support functions. | 194 // Support functions. |
195 | 195 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 383 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
384 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 384 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
385 #else | 385 #else |
386 #define ACCESS_MASM(masm) masm-> | 386 #define ACCESS_MASM(masm) masm-> |
387 #endif | 387 #endif |
388 | 388 |
389 | 389 |
390 } } // namespace v8::internal | 390 } } // namespace v8::internal |
391 | 391 |
392 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 392 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |