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

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

Issue 219030: Change the functions named AllocateObjectInNewSpace to AllocateInNewSpace (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.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 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // Allocation support 168 // Allocation support
169 169
170 // Allocate an object in new space. If the new space is exhausted control 170 // Allocate an object in new space. If the new space is exhausted control
171 // continues at the gc_required label. The allocated object is returned in 171 // continues at the gc_required label. The allocated object is returned in
172 // result and end of the new object is returned in result_end. The register 172 // result and end of the new object is returned in result_end. The register
173 // scratch can be passed as no_reg in which case an additional object 173 // scratch can be passed as no_reg in which case an additional object
174 // reference will be added to the reloc info. The returned pointers in result 174 // reference will be added to the reloc info. The returned pointers in result
175 // and result_end have not yet been tagged as heap objects. If 175 // and result_end have not yet been tagged as heap objects. If
176 // result_contains_top_on_entry is true the contnt of result is known to be 176 // result_contains_top_on_entry is true the contnt of result is known to be
177 // the allocation top on entry (could be result_end from a previous call to 177 // the allocation top on entry (could be result_end from a previous call to
178 // AllocateObjectInNewSpace). If result_contains_top_on_entry is true scratch 178 // AllocateInNewSpace). If result_contains_top_on_entry is true scratch
179 // should be no_reg as it is never used. 179 // should be no_reg as it is never used.
180 void AllocateObjectInNewSpace(int object_size, 180 void AllocateInNewSpace(int object_size,
181 Register result, 181 Register result,
182 Register result_end, 182 Register result_end,
183 Register scratch, 183 Register scratch,
184 Label* gc_required, 184 Label* gc_required,
185 AllocationFlags flags); 185 AllocationFlags flags);
186 186
187 void AllocateObjectInNewSpace(int header_size, 187 void AllocateInNewSpace(int header_size,
188 ScaleFactor element_size, 188 ScaleFactor element_size,
189 Register element_count, 189 Register element_count,
190 Register result, 190 Register result,
191 Register result_end, 191 Register result_end,
192 Register scratch, 192 Register scratch,
193 Label* gc_required, 193 Label* gc_required,
194 AllocationFlags flags); 194 AllocationFlags flags);
195 195
196 void AllocateObjectInNewSpace(Register object_size, 196 void AllocateInNewSpace(Register object_size,
197 Register result, 197 Register result,
198 Register result_end, 198 Register result_end,
199 Register scratch, 199 Register scratch,
200 Label* gc_required, 200 Label* gc_required,
201 AllocationFlags flags); 201 AllocationFlags flags);
202 202
203 // Undo allocation in new space. The object passed and objects allocated after 203 // Undo allocation in new space. The object passed and objects allocated after
204 // it will no longer be allocated. Make sure that no pointers are left to the 204 // it will no longer be allocated. Make sure that no pointers are left to the
205 // object(s) no longer allocated as they would be invalid when allocation is 205 // object(s) no longer allocated as they would be invalid when allocation is
206 // un-done. 206 // un-done.
207 void UndoAllocationInNewSpace(Register object); 207 void UndoAllocationInNewSpace(Register object);
208 208
209 // --------------------------------------------------------------------------- 209 // ---------------------------------------------------------------------------
210 // Support functions. 210 // Support functions.
211 211
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 } \ 394 } \
395 masm-> 395 masm->
396 #else 396 #else
397 #define ACCESS_MASM(masm) masm-> 397 #define ACCESS_MASM(masm) masm->
398 #endif 398 #endif
399 399
400 400
401 } } // namespace v8::internal 401 } } // namespace v8::internal
402 402
403 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 403 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698