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 30 matching lines...) Expand all Loading... |
41 class JumpTarget; | 41 class JumpTarget; |
42 | 42 |
43 // MacroAssembler implements a collection of frequently used macros. | 43 // MacroAssembler implements a collection of frequently used macros. |
44 class MacroAssembler: public Assembler { | 44 class MacroAssembler: public Assembler { |
45 public: | 45 public: |
46 MacroAssembler(void* buffer, int size); | 46 MacroAssembler(void* buffer, int size); |
47 | 47 |
48 // --------------------------------------------------------------------------- | 48 // --------------------------------------------------------------------------- |
49 // GC Support | 49 // GC Support |
50 | 50 |
| 51 |
| 52 void RecordWriteHelper(Register object, |
| 53 Register addr, |
| 54 Register scratch); |
| 55 |
| 56 // Check if object is in new space. |
| 57 // scratch can be object itself, but it will be clobbered. |
| 58 void InNewSpace(Register object, |
| 59 Register scratch, |
| 60 Condition cc, // equal for new space, not_equal otherwise. |
| 61 Label* branch); |
| 62 |
51 // Set the remembered set bit for [object+offset]. | 63 // Set the remembered set bit for [object+offset]. |
52 // object is the object being stored into, value is the object being stored. | 64 // object is the object being stored into, value is the object being stored. |
53 // If offset is zero, then the scratch register contains the array index into | 65 // If offset is zero, then the scratch register contains the array index into |
54 // the elements array represented as a Smi. | 66 // the elements array represented as a Smi. |
55 // All registers are clobbered by the operation. | 67 // All registers are clobbered by the operation. |
56 void RecordWrite(Register object, | 68 void RecordWrite(Register object, |
57 int offset, | 69 int offset, |
58 Register value, | 70 Register value, |
59 Register scratch); | 71 Register scratch); |
60 | 72 |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 } \ | 579 } \ |
568 masm-> | 580 masm-> |
569 #else | 581 #else |
570 #define ACCESS_MASM(masm) masm-> | 582 #define ACCESS_MASM(masm) masm-> |
571 #endif | 583 #endif |
572 | 584 |
573 | 585 |
574 } } // namespace v8::internal | 586 } } // namespace v8::internal |
575 | 587 |
576 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 588 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |