OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1005 | 1005 |
1006 // Allocation support helpers. | 1006 // Allocation support helpers. |
1007 void LoadAllocationTopHelper(Register result, | 1007 void LoadAllocationTopHelper(Register result, |
1008 Register scratch, | 1008 Register scratch, |
1009 AllocationFlags flags); | 1009 AllocationFlags flags); |
1010 | 1010 |
1011 void UpdateAllocationTopHelper(Register result_end, | 1011 void UpdateAllocationTopHelper(Register result_end, |
1012 Register scratch, | 1012 Register scratch, |
1013 AllocationFlags flags); | 1013 AllocationFlags flags); |
1014 | 1014 |
1015 // Helper for PopHandleScope. Allowed to perform a GC and returns | |
1016 // NULL if gc_allowed. Does not perform a GC if !gc_allowed, and | |
1017 // possibly returns a failure object indicating an allocation failure. | |
1018 MUST_USE_RESULT MaybeObject* PopHandleScopeHelper(Register saved, | |
1019 Register scratch, | |
1020 bool gc_allowed); | |
1021 | |
1022 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. | 1015 // Helper for implementing JumpIfNotInNewSpace and JumpIfInNewSpace. |
1023 void InNewSpace(Register object, | 1016 void InNewSpace(Register object, |
1024 Register scratch, | 1017 Register scratch, |
1025 Condition cc, | 1018 Condition cc, |
1026 Label* condition_met, | 1019 Label* condition_met, |
1027 Label::Distance condition_met_distance = Label::kFar); | 1020 Label::Distance condition_met_distance = Label::kFar); |
1028 | 1021 |
1029 // Helper for finding the mark bits for an address. Afterwards, the | 1022 // Helper for finding the mark bits for an address. Afterwards, the |
1030 // bitmap register points at the word with the mark bits and the mask | 1023 // bitmap register points at the word with the mark bits and the mask |
1031 // the position of the first bit. Uses ecx as scratch and leaves addr_reg | 1024 // the position of the first bit. Uses ecx as scratch and leaves addr_reg |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1126 } \ | 1119 } \ |
1127 masm-> | 1120 masm-> |
1128 #else | 1121 #else |
1129 #define ACCESS_MASM(masm) masm-> | 1122 #define ACCESS_MASM(masm) masm-> |
1130 #endif | 1123 #endif |
1131 | 1124 |
1132 | 1125 |
1133 } } // namespace v8::internal | 1126 } } // namespace v8::internal |
1134 | 1127 |
1135 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1128 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |