| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 6 | 6 |
| 7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
| 10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 __ LoadRoot(filler, Heap::kUndefinedValueRootIndex); | 420 __ LoadRoot(filler, Heap::kUndefinedValueRootIndex); |
| 421 | 421 |
| 422 if (!is_api_function) { | 422 if (!is_api_function) { |
| 423 Label no_inobject_slack_tracking; | 423 Label no_inobject_slack_tracking; |
| 424 | 424 |
| 425 Register constructon_count = x14; | 425 Register constructon_count = x14; |
| 426 MemOperand bit_field3 = | 426 MemOperand bit_field3 = |
| 427 FieldMemOperand(init_map, Map::kBitField3Offset); | 427 FieldMemOperand(init_map, Map::kBitField3Offset); |
| 428 // Check if slack tracking is enabled. | 428 // Check if slack tracking is enabled. |
| 429 __ Ldr(x11, bit_field3); | 429 __ Ldr(x11, bit_field3); |
| 430 __ DecodeField<Map::Counter>(constructon_count, x11); | 430 __ DecodeField<Map::ConstructionCounter>(constructon_count, x11); |
| 431 __ Cmp(constructon_count, Operand(Map::kSlackTrackingCounterEnd)); | 431 __ Cmp(constructon_count, Operand(Map::kSlackTrackingCounterEnd)); |
| 432 __ B(lt, &no_inobject_slack_tracking); | 432 __ B(lt, &no_inobject_slack_tracking); |
| 433 // Decrease generous allocation count. | 433 // Decrease generous allocation count. |
| 434 __ Subs(x11, x11, Operand(1 << Map::Counter::kShift)); | 434 __ Subs(x11, x11, Operand(1 << Map::ConstructionCounter::kShift)); |
| 435 __ Str(x11, bit_field3); | 435 __ Str(x11, bit_field3); |
| 436 | 436 |
| 437 // Allocate object with a slack. | 437 // Allocate object with a slack. |
| 438 Register unused_props = x11; | 438 Register unused_props = x11; |
| 439 __ Ldr(unused_props, | 439 __ Ldr(unused_props, |
| 440 FieldMemOperand(init_map, Map::kInstanceAttributesOffset)); | 440 FieldMemOperand(init_map, Map::kInstanceAttributesOffset)); |
| 441 __ Ubfx(unused_props, unused_props, | 441 __ Ubfx(unused_props, unused_props, |
| 442 Map::kUnusedPropertyFieldsByte * kBitsPerByte, kBitsPerByte); | 442 Map::kUnusedPropertyFieldsByte * kBitsPerByte, kBitsPerByte); |
| 443 | 443 |
| 444 Register end_of_pre_allocated = x11; | 444 Register end_of_pre_allocated = x11; |
| (...skipping 1577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2022 } | 2022 } |
| 2023 } | 2023 } |
| 2024 | 2024 |
| 2025 | 2025 |
| 2026 #undef __ | 2026 #undef __ |
| 2027 | 2027 |
| 2028 } // namespace internal | 2028 } // namespace internal |
| 2029 } // namespace v8 | 2029 } // namespace v8 |
| 2030 | 2030 |
| 2031 #endif // V8_TARGET_ARCH_ARM | 2031 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |