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 3053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3064 // We apply salt to the original zap value to easily spot the values. | 3064 // We apply salt to the original zap value to easily spot the values. |
3065 Mov(result, (kDebugZapValue & ~0xffL) | 0x11L); | 3065 Mov(result, (kDebugZapValue & ~0xffL) | 0x11L); |
3066 Mov(scratch1, (kDebugZapValue & ~0xffL) | 0x21L); | 3066 Mov(scratch1, (kDebugZapValue & ~0xffL) | 0x21L); |
3067 Mov(scratch2, (kDebugZapValue & ~0xffL) | 0x21L); | 3067 Mov(scratch2, (kDebugZapValue & ~0xffL) | 0x21L); |
3068 } | 3068 } |
3069 B(gc_required); | 3069 B(gc_required); |
3070 return; | 3070 return; |
3071 } | 3071 } |
3072 | 3072 |
3073 ASSERT(!AreAliased(object_size, result, scratch1, scratch2, Tmp0(), Tmp1())); | 3073 ASSERT(!AreAliased(object_size, result, scratch1, scratch2, Tmp0(), Tmp1())); |
3074 ASSERT(object_size.Is64Bits() && result.Is64Bits() && scratch1.Is64Bits() && | 3074 ASSERT(result.Is64Bits() && scratch1.Is64Bits() && |
3075 scratch2.Is64Bits() && Tmp0().Is64Bits() && Tmp1().Is64Bits()); | 3075 scratch2.Is64Bits() && Tmp0().Is64Bits() && Tmp1().Is64Bits()); |
3076 | 3076 |
3077 // Check relative positions of allocation top and limit addresses. | 3077 // Check relative positions of allocation top and limit addresses. |
3078 // The values must be adjacent in memory to allow the use of LDP. | 3078 // The values must be adjacent in memory to allow the use of LDP. |
3079 ExternalReference heap_allocation_top = | 3079 ExternalReference heap_allocation_top = |
3080 AllocationUtils::GetAllocationTopReference(isolate(), flags); | 3080 AllocationUtils::GetAllocationTopReference(isolate(), flags); |
3081 ExternalReference heap_allocation_limit = | 3081 ExternalReference heap_allocation_limit = |
3082 AllocationUtils::GetAllocationLimitReference(isolate(), flags); | 3082 AllocationUtils::GetAllocationLimitReference(isolate(), flags); |
3083 intptr_t top = reinterpret_cast<intptr_t>(heap_allocation_top.address()); | 3083 intptr_t top = reinterpret_cast<intptr_t>(heap_allocation_top.address()); |
3084 intptr_t limit = reinterpret_cast<intptr_t>(heap_allocation_limit.address()); | 3084 intptr_t limit = reinterpret_cast<intptr_t>(heap_allocation_limit.address()); |
(...skipping 1828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4913 } | 4913 } |
4914 } | 4914 } |
4915 | 4915 |
4916 | 4916 |
4917 #undef __ | 4917 #undef __ |
4918 | 4918 |
4919 | 4919 |
4920 } } // namespace v8::internal | 4920 } } // namespace v8::internal |
4921 | 4921 |
4922 #endif // V8_TARGET_ARCH_A64 | 4922 #endif // V8_TARGET_ARCH_A64 |
OLD | NEW |