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

Side by Side Diff: src/arm/builtins-arm.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 | « no previous file | src/arm64/builtins-arm64.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/debug/debug.h" 10 #include "src/debug/debug.h"
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 __ ldr(ip, FieldMemOperand(r2, Map::kBitField3Offset)); 438 __ ldr(ip, FieldMemOperand(r2, Map::kBitField3Offset));
439 __ DecodeField<Map::Counter>(ip); 439 __ DecodeField<Map::Counter>(ip);
440 __ cmp(ip, Operand(Map::kSlackTrackingCounterEnd)); 440 __ cmp(ip, Operand(Map::kSlackTrackingCounterEnd));
441 __ b(lt, &no_inobject_slack_tracking); 441 __ b(lt, &no_inobject_slack_tracking);
442 442
443 // Allocate object with a slack. 443 // Allocate object with a slack.
444 __ ldr(r0, FieldMemOperand(r2, Map::kInstanceSizesOffset)); 444 __ ldr(r0, FieldMemOperand(r2, Map::kInstanceSizesOffset));
445 __ Ubfx(r0, r0, Map::kInObjectPropertiesByte * kBitsPerByte, 445 __ Ubfx(r0, r0, Map::kInObjectPropertiesOrConstructorFunctionIndexByte *
446 kBitsPerByte,
446 kBitsPerByte); 447 kBitsPerByte);
447 __ ldr(r2, FieldMemOperand(r2, Map::kInstanceAttributesOffset)); 448 __ ldr(r2, FieldMemOperand(r2, Map::kInstanceAttributesOffset));
448 __ Ubfx(r2, r2, Map::kUnusedPropertyFieldsByte * kBitsPerByte, 449 __ Ubfx(r2, r2, Map::kUnusedPropertyFieldsByte * kBitsPerByte,
449 kBitsPerByte); 450 kBitsPerByte);
450 __ sub(r0, r0, Operand(r2)); 451 __ sub(r0, r0, Operand(r2));
451 __ add(r0, r5, Operand(r0, LSL, kPointerSizeLog2)); 452 __ add(r0, r5, Operand(r0, LSL, kPointerSizeLog2));
452 // r0: offset of first field after pre-allocated fields 453 // r0: offset of first field after pre-allocated fields
453 if (FLAG_debug_code) { 454 if (FLAG_debug_code) {
454 __ add(ip, r4, Operand(r3, LSL, kPointerSizeLog2)); // End of object. 455 __ add(ip, r4, Operand(r3, LSL, kPointerSizeLog2)); // End of object.
455 __ cmp(r0, ip); 456 __ cmp(r0, ip);
(...skipping 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after
1865 } 1866 }
1866 } 1867 }
1867 1868
1868 1869
1869 #undef __ 1870 #undef __
1870 1871
1871 } // namespace internal 1872 } // namespace internal
1872 } // namespace v8 1873 } // namespace v8
1873 1874
1874 #endif // V8_TARGET_ARCH_ARM 1875 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/builtins-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698