| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 2857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2868 Str(x10, MemOperand(x11)); | 2868 Str(x10, MemOperand(x11)); |
| 2869 } | 2869 } |
| 2870 | 2870 |
| 2871 | 2871 |
| 2872 void MacroAssembler::Allocate(int object_size, | 2872 void MacroAssembler::Allocate(int object_size, |
| 2873 Register result, | 2873 Register result, |
| 2874 Register scratch1, | 2874 Register scratch1, |
| 2875 Register scratch2, | 2875 Register scratch2, |
| 2876 Label* gc_required, | 2876 Label* gc_required, |
| 2877 AllocationFlags flags) { | 2877 AllocationFlags flags) { |
| 2878 ASSERT(object_size <= Page::kMaxNonCodeHeapObjectSize); |
| 2878 if (!FLAG_inline_new) { | 2879 if (!FLAG_inline_new) { |
| 2879 if (emit_debug_code()) { | 2880 if (emit_debug_code()) { |
| 2880 // Trash the registers to simulate an allocation failure. | 2881 // Trash the registers to simulate an allocation failure. |
| 2881 // We apply salt to the original zap value to easily spot the values. | 2882 // We apply salt to the original zap value to easily spot the values. |
| 2882 Mov(result, (kDebugZapValue & ~0xffL) | 0x11L); | 2883 Mov(result, (kDebugZapValue & ~0xffL) | 0x11L); |
| 2883 Mov(scratch1, (kDebugZapValue & ~0xffL) | 0x21L); | 2884 Mov(scratch1, (kDebugZapValue & ~0xffL) | 0x21L); |
| 2884 Mov(scratch2, (kDebugZapValue & ~0xffL) | 0x21L); | 2885 Mov(scratch2, (kDebugZapValue & ~0xffL) | 0x21L); |
| 2885 } | 2886 } |
| 2886 B(gc_required); | 2887 B(gc_required); |
| 2887 return; | 2888 return; |
| (...skipping 1838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4726 } | 4727 } |
| 4727 } | 4728 } |
| 4728 | 4729 |
| 4729 | 4730 |
| 4730 #undef __ | 4731 #undef __ |
| 4731 | 4732 |
| 4732 | 4733 |
| 4733 } } // namespace v8::internal | 4734 } } // namespace v8::internal |
| 4734 | 4735 |
| 4735 #endif // V8_TARGET_ARCH_A64 | 4736 #endif // V8_TARGET_ARCH_A64 |
| OLD | NEW |