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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // Allocate a heap number in new space with undefined value. The |
| 210 // register scratch2 can be passed as no_reg; the others must be |
| 211 // valid registers. Returns tagged pointer in result register, or |
| 212 // jumps to gc_required if new space is full. |
| 213 void AllocateHeapNumber(Register result, |
| 214 Register scratch1, |
| 215 Register scratch2, |
| 216 Label* gc_required); |
| 217 |
209 // --------------------------------------------------------------------------- | 218 // --------------------------------------------------------------------------- |
210 // Support functions. | 219 // Support functions. |
211 | 220 |
212 // Check if result is zero and op is negative. | 221 // Check if result is zero and op is negative. |
213 void NegativeZeroTest(Register result, Register op, Label* then_label); | 222 void NegativeZeroTest(Register result, Register op, Label* then_label); |
214 | 223 |
215 // Check if result is zero and op is negative in code using jump targets. | 224 // Check if result is zero and op is negative in code using jump targets. |
216 void NegativeZeroTest(CodeGenerator* cgen, | 225 void NegativeZeroTest(CodeGenerator* cgen, |
217 Register result, | 226 Register result, |
218 Register op, | 227 Register op, |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 } \ | 411 } \ |
403 masm-> | 412 masm-> |
404 #else | 413 #else |
405 #define ACCESS_MASM(masm) masm-> | 414 #define ACCESS_MASM(masm) masm-> |
406 #endif | 415 #endif |
407 | 416 |
408 | 417 |
409 } } // namespace v8::internal | 418 } } // namespace v8::internal |
410 | 419 |
411 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 420 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |