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

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: 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') | src/arm64/builtins-arm64.cc » ('J')
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,
446 Map::kInObjectPropertiesOrConstructorFunctionIndexOffset *
Jakob Kummerow 2015/08/11 16:01:48 You want s/Offset/Byte/ here.
447 kBitsPerByte,
446 kBitsPerByte); 448 kBitsPerByte);
447 __ ldr(r2, FieldMemOperand(r2, Map::kInstanceAttributesOffset)); 449 __ ldr(r2, FieldMemOperand(r2, Map::kInstanceAttributesOffset));
448 __ Ubfx(r2, r2, Map::kUnusedPropertyFieldsByte * kBitsPerByte, 450 __ Ubfx(r2, r2, Map::kUnusedPropertyFieldsByte * kBitsPerByte,
449 kBitsPerByte); 451 kBitsPerByte);
450 __ sub(r0, r0, Operand(r2)); 452 __ sub(r0, r0, Operand(r2));
451 __ add(r0, r5, Operand(r0, LSL, kPointerSizeLog2)); 453 __ add(r0, r5, Operand(r0, LSL, kPointerSizeLog2));
452 // r0: offset of first field after pre-allocated fields 454 // r0: offset of first field after pre-allocated fields
453 if (FLAG_debug_code) { 455 if (FLAG_debug_code) {
454 __ add(ip, r4, Operand(r3, LSL, kPointerSizeLog2)); // End of object. 456 __ add(ip, r4, Operand(r3, LSL, kPointerSizeLog2)); // End of object.
455 __ cmp(r0, ip); 457 __ cmp(r0, ip);
(...skipping 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after
1865 } 1867 }
1866 } 1868 }
1867 1869
1868 1870
1869 #undef __ 1871 #undef __
1870 1872
1871 } // namespace internal 1873 } // namespace internal
1872 } // namespace v8 1874 } // namespace v8
1873 1875
1874 #endif // V8_TARGET_ARCH_ARM 1876 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/builtins-arm64.cc » ('j') | src/arm64/builtins-arm64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698