OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 TRY_FINALLY_HANDLER, | 59 TRY_FINALLY_HANDLER, |
60 JS_ENTRY_HANDLER | 60 JS_ENTRY_HANDLER |
61 }; | 61 }; |
62 | 62 |
63 | 63 |
64 // MacroAssembler implements a collection of frequently used macros. | 64 // MacroAssembler implements a collection of frequently used macros. |
65 class MacroAssembler: public Assembler { | 65 class MacroAssembler: public Assembler { |
66 public: | 66 public: |
67 MacroAssembler(void* buffer, int size); | 67 MacroAssembler(void* buffer, int size); |
68 | 68 |
| 69 void LoadRoot(Register destination, Heap::RootListIndex index); |
| 70 void CompareRoot(Register with, Heap::RootListIndex index); |
| 71 void PushRoot(Heap::RootListIndex index); |
| 72 |
69 // --------------------------------------------------------------------------- | 73 // --------------------------------------------------------------------------- |
70 // GC Support | 74 // GC Support |
71 | 75 |
72 // Set the remembered set bit for [object+offset]. | 76 // Set the remembered set bit for [object+offset]. |
73 // object is the object being stored into, value is the object being stored. | 77 // object is the object being stored into, value is the object being stored. |
74 // If offset is zero, then the scratch register contains the array index into | 78 // If offset is zero, then the scratch register contains the array index into |
75 // the elements array represented as a Smi. | 79 // the elements array represented as a Smi. |
76 // All registers are clobbered by the operation. | 80 // All registers are clobbered by the operation. |
77 void RecordWrite(Register object, | 81 void RecordWrite(Register object, |
78 int offset, | 82 int offset, |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 } \ | 453 } \ |
450 masm-> | 454 masm-> |
451 #else | 455 #else |
452 #define ACCESS_MASM(masm) masm-> | 456 #define ACCESS_MASM(masm) masm-> |
453 #endif | 457 #endif |
454 | 458 |
455 | 459 |
456 } } // namespace v8::internal | 460 } } // namespace v8::internal |
457 | 461 |
458 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 462 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |