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

Side by Side Diff: src/mips64/builtins-mips64.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/mips/builtins-mips.cc ('k') | src/objects.h » ('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_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698