OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 | 5 |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 __ LoadRoot(t3, Heap::kUndefinedValueRootIndex); | 432 __ LoadRoot(t3, Heap::kUndefinedValueRootIndex); |
433 | 433 |
434 if (!is_api_function) { | 434 if (!is_api_function) { |
435 Label no_inobject_slack_tracking; | 435 Label no_inobject_slack_tracking; |
436 | 436 |
437 // Check if slack tracking is enabled. | 437 // Check if slack tracking is enabled. |
438 __ Branch(&no_inobject_slack_tracking, lt, a6, | 438 __ Branch(&no_inobject_slack_tracking, lt, a6, |
439 Operand(static_cast<int64_t>(Map::kSlackTrackingCounterEnd))); | 439 Operand(static_cast<int64_t>(Map::kSlackTrackingCounterEnd))); |
440 | 440 |
441 // Allocate object with a slack. | 441 // Allocate object with a slack. |
442 __ lbu(a0, FieldMemOperand(a2, Map::kInObjectPropertiesOffset)); | 442 __ lbu( |
| 443 a0, |
| 444 FieldMemOperand( |
| 445 a2, Map::kInObjectPropertiesOrConstructorFunctionIndexOffset)); |
443 __ lbu(a2, FieldMemOperand(a2, Map::kUnusedPropertyFieldsOffset)); | 446 __ lbu(a2, FieldMemOperand(a2, Map::kUnusedPropertyFieldsOffset)); |
444 __ dsubu(a0, a0, a2); | 447 __ dsubu(a0, a0, a2); |
445 __ dsll(at, a0, kPointerSizeLog2); | 448 __ dsll(at, a0, kPointerSizeLog2); |
446 __ daddu(a0, t1, at); | 449 __ daddu(a0, t1, at); |
447 // a0: offset of first field after pre-allocated fields | 450 // a0: offset of first field after pre-allocated fields |
448 if (FLAG_debug_code) { | 451 if (FLAG_debug_code) { |
449 __ dsll(at, a3, kPointerSizeLog2); | 452 __ dsll(at, a3, kPointerSizeLog2); |
450 __ Daddu(t2, t0, Operand(at)); // End of object. | 453 __ Daddu(t2, t0, Operand(at)); // End of object. |
451 __ Assert(le, kUnexpectedNumberOfPreAllocatedPropertyFields, | 454 __ Assert(le, kUnexpectedNumberOfPreAllocatedPropertyFields, |
452 a0, Operand(t2)); | 455 a0, Operand(t2)); |
(...skipping 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1871 } | 1874 } |
1872 } | 1875 } |
1873 | 1876 |
1874 | 1877 |
1875 #undef __ | 1878 #undef __ |
1876 | 1879 |
1877 } // namespace internal | 1880 } // namespace internal |
1878 } // namespace v8 | 1881 } // namespace v8 |
1879 | 1882 |
1880 #endif // V8_TARGET_ARCH_MIPS64 | 1883 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |