| 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_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
| 10 | 10 |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 __ LoadRoot(t7, Heap::kUndefinedValueRootIndex); | 433 __ LoadRoot(t7, Heap::kUndefinedValueRootIndex); |
| 434 | 434 |
| 435 if (!is_api_function) { | 435 if (!is_api_function) { |
| 436 Label no_inobject_slack_tracking; | 436 Label no_inobject_slack_tracking; |
| 437 | 437 |
| 438 // Check if slack tracking is enabled. | 438 // Check if slack tracking is enabled. |
| 439 __ Branch(&no_inobject_slack_tracking, lt, t2, | 439 __ Branch(&no_inobject_slack_tracking, lt, t2, |
| 440 Operand(Map::kSlackTrackingCounterEnd)); | 440 Operand(Map::kSlackTrackingCounterEnd)); |
| 441 | 441 |
| 442 // Allocate object with a slack. | 442 // Allocate object with a slack. |
| 443 __ lbu(a0, FieldMemOperand(a2, Map::kInObjectPropertiesOffset)); | 443 __ lbu( |
| 444 a0, |
| 445 FieldMemOperand( |
| 446 a2, Map::kInObjectPropertiesOrConstructorFunctionIndexOffset)); |
| 444 __ lbu(a2, FieldMemOperand(a2, Map::kUnusedPropertyFieldsOffset)); | 447 __ lbu(a2, FieldMemOperand(a2, Map::kUnusedPropertyFieldsOffset)); |
| 445 __ subu(a0, a0, a2); | 448 __ subu(a0, a0, a2); |
| 446 __ sll(at, a0, kPointerSizeLog2); | 449 __ sll(at, a0, kPointerSizeLog2); |
| 447 __ addu(a0, t5, at); | 450 __ addu(a0, t5, at); |
| 448 // a0: offset of first field after pre-allocated fields | 451 // a0: offset of first field after pre-allocated fields |
| 449 if (FLAG_debug_code) { | 452 if (FLAG_debug_code) { |
| 450 __ sll(at, a3, kPointerSizeLog2); | 453 __ sll(at, a3, kPointerSizeLog2); |
| 451 __ Addu(t6, t4, Operand(at)); // End of object. | 454 __ Addu(t6, t4, Operand(at)); // End of object. |
| 452 __ Assert(le, kUnexpectedNumberOfPreAllocatedPropertyFields, | 455 __ Assert(le, kUnexpectedNumberOfPreAllocatedPropertyFields, |
| 453 a0, Operand(t6)); | 456 a0, Operand(t6)); |
| (...skipping 1419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1873 } | 1876 } |
| 1874 } | 1877 } |
| 1875 | 1878 |
| 1876 | 1879 |
| 1877 #undef __ | 1880 #undef __ |
| 1878 | 1881 |
| 1879 } // namespace internal | 1882 } // namespace internal |
| 1880 } // namespace v8 | 1883 } // namespace v8 |
| 1881 | 1884 |
| 1882 #endif // V8_TARGET_ARCH_MIPS | 1885 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |