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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 72333004: Match max property descriptor length to corresponding bit fields (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/property-details.h ('k') | test/mjsunit/regress/regress-3010.js » ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 4895 matching lines...) Expand 10 before | Expand all | Expand 10 after
4906 Label next, start; 4906 Label next, start;
4907 Register empty_fixed_array_value = r8; 4907 Register empty_fixed_array_value = r8;
4908 LoadRoot(empty_fixed_array_value, Heap::kEmptyFixedArrayRootIndex); 4908 LoadRoot(empty_fixed_array_value, Heap::kEmptyFixedArrayRootIndex);
4909 movq(rcx, rax); 4909 movq(rcx, rax);
4910 4910
4911 // Check if the enum length field is properly initialized, indicating that 4911 // Check if the enum length field is properly initialized, indicating that
4912 // there is an enum cache. 4912 // there is an enum cache.
4913 movq(rbx, FieldOperand(rcx, HeapObject::kMapOffset)); 4913 movq(rbx, FieldOperand(rcx, HeapObject::kMapOffset));
4914 4914
4915 EnumLength(rdx, rbx); 4915 EnumLength(rdx, rbx);
4916 Cmp(rdx, Smi::FromInt(Map::kInvalidEnumCache)); 4916 Cmp(rdx, Smi::FromInt(kInvalidEnumCacheSentinel));
4917 j(equal, call_runtime); 4917 j(equal, call_runtime);
4918 4918
4919 jmp(&start); 4919 jmp(&start);
4920 4920
4921 bind(&next); 4921 bind(&next);
4922 4922
4923 movq(rbx, FieldOperand(rcx, HeapObject::kMapOffset)); 4923 movq(rbx, FieldOperand(rcx, HeapObject::kMapOffset));
4924 4924
4925 // For all objects but the receiver, check that the cache is empty. 4925 // For all objects but the receiver, check that the cache is empty.
4926 EnumLength(rdx, rbx); 4926 EnumLength(rdx, rbx);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
4983 j(equal, found); 4983 j(equal, found);
4984 movq(current, FieldOperand(current, Map::kPrototypeOffset)); 4984 movq(current, FieldOperand(current, Map::kPrototypeOffset));
4985 CompareRoot(current, Heap::kNullValueRootIndex); 4985 CompareRoot(current, Heap::kNullValueRootIndex);
4986 j(not_equal, &loop_again); 4986 j(not_equal, &loop_again);
4987 } 4987 }
4988 4988
4989 4989
4990 } } // namespace v8::internal 4990 } } // namespace v8::internal
4991 4991
4992 #endif // V8_TARGET_ARCH_X64 4992 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/property-details.h ('k') | test/mjsunit/regress/regress-3010.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698