Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Side by Side Diff: src/mips/builtins-mips.cc

Issue 1276533003: [runtime] Store constructor function index on primitive maps. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm failures Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/layout-descriptor-inl.h ('k') | src/mips64/builtins-mips64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/layout-descriptor-inl.h ('k') | src/mips64/builtins-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698