OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 class MacroAssembler: public Assembler { | 61 class MacroAssembler: public Assembler { |
62 public: | 62 public: |
63 // The isolate parameter can be NULL if the macro assembler should | 63 // The isolate parameter can be NULL if the macro assembler should |
64 // not use isolate-dependent functionality. In this case, it's the | 64 // not use isolate-dependent functionality. In this case, it's the |
65 // responsibility of the caller to never invoke such function on the | 65 // responsibility of the caller to never invoke such function on the |
66 // macro assembler. | 66 // macro assembler. |
67 MacroAssembler(Isolate* isolate, void* buffer, int size); | 67 MacroAssembler(Isolate* isolate, void* buffer, int size); |
68 | 68 |
69 // --------------------------------------------------------------------------- | 69 // --------------------------------------------------------------------------- |
70 // GC Support | 70 // GC Support |
71 | |
72 void IncrementalMarkingRecordWriteHelper(Register object, | |
73 Register value, | |
74 Register address); | |
75 | |
76 enum RememberedSetFinalAction { | 71 enum RememberedSetFinalAction { |
77 kReturnAtEnd, | 72 kReturnAtEnd, |
78 kFallThroughAtEnd | 73 kFallThroughAtEnd |
79 }; | 74 }; |
80 | 75 |
81 // Record in the remembered set the fact that we have a pointer to new space | 76 // Record in the remembered set the fact that we have a pointer to new space |
82 // at the address pointed to by the addr register. Only works if addr is not | 77 // at the address pointed to by the addr register. Only works if addr is not |
83 // in new space. | 78 // in new space. |
84 void RememberedSetHelper(Register addr, | 79 void RememberedSetHelper(Register addr, |
85 Register scratch, | 80 Register scratch, |
86 SaveFPRegsMode save_fp, | 81 SaveFPRegsMode save_fp, |
87 RememberedSetFinalAction and_then); | 82 RememberedSetFinalAction and_then); |
88 | 83 |
89 void CheckPageFlag(Register object, | 84 void CheckPageFlag(Register object, |
90 Register scratch, | 85 Register scratch, |
91 MemoryChunk::MemoryChunkFlags flag, | 86 int mask, |
92 Condition cc, | 87 Condition cc, |
93 Label* condition_met, | 88 Label* condition_met, |
94 Label::Distance condition_met_distance = Label::kFar); | 89 Label::Distance condition_met_distance = Label::kFar); |
95 | 90 |
96 // Check if object is in new space. Jumps if the object is not in new space. | 91 // Check if object is in new space. Jumps if the object is not in new space. |
97 // The register scratch can be object itself, but it will be clobbered. | 92 // The register scratch can be object itself, but it will be clobbered. |
98 void JumpIfNotInNewSpace(Register object, | 93 void JumpIfNotInNewSpace(Register object, |
99 Register scratch, | 94 Register scratch, |
100 Label* branch, | 95 Label* branch, |
101 Label::Distance distance = Label::kFar) { | 96 Label::Distance distance = Label::kFar) { |
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
888 } \ | 883 } \ |
889 masm-> | 884 masm-> |
890 #else | 885 #else |
891 #define ACCESS_MASM(masm) masm-> | 886 #define ACCESS_MASM(masm) masm-> |
892 #endif | 887 #endif |
893 | 888 |
894 | 889 |
895 } } // namespace v8::internal | 890 } } // namespace v8::internal |
896 | 891 |
897 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 892 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |