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

Side by Side Diff: src/objects.h

Issue 40163: Arrays created with new Array(n) are not assumed to be sparse unless the give... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/builtins.cc ('k') | test/mjsunit/fuzz-natives.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1426 int number_of_slow_used_elements_; 1426 int number_of_slow_used_elements_;
1427 int number_of_slow_unused_elements_; 1427 int number_of_slow_unused_elements_;
1428 }; 1428 };
1429 1429
1430 void IncrementSpillStatistics(SpillInformation* info); 1430 void IncrementSpillStatistics(SpillInformation* info);
1431 #endif 1431 #endif
1432 Object* SlowReverseLookup(Object* value); 1432 Object* SlowReverseLookup(Object* value);
1433 1433
1434 static const uint32_t kMaxGap = 1024; 1434 static const uint32_t kMaxGap = 1024;
1435 static const int kMaxFastElementsLength = 5000; 1435 static const int kMaxFastElementsLength = 5000;
1436 static const int kInitialMaxFastElementArray = 100000;
1436 static const int kMaxFastProperties = 8; 1437 static const int kMaxFastProperties = 8;
1437 static const int kMaxInstanceSize = 255 * kPointerSize; 1438 static const int kMaxInstanceSize = 255 * kPointerSize;
1438 // When extending the backing storage for property values, we increase 1439 // When extending the backing storage for property values, we increase
1439 // its size by more than the 1 entry necessary, so sequentially adding fields 1440 // its size by more than the 1 entry necessary, so sequentially adding fields
1440 // to the same object requires fewer allocations and copies. 1441 // to the same object requires fewer allocations and copies.
1441 static const int kFieldsAdded = 3; 1442 static const int kFieldsAdded = 3;
1442 1443
1443 // Layout description. 1444 // Layout description.
1444 static const int kPropertiesOffset = HeapObject::kHeaderSize; 1445 static const int kPropertiesOffset = HeapObject::kHeaderSize;
1445 static const int kElementsOffset = kPropertiesOffset + kPointerSize; 1446 static const int kElementsOffset = kPropertiesOffset + kPointerSize;
(...skipping 2833 matching lines...) Expand 10 before | Expand all | Expand 10 after
4279 } else { 4280 } else {
4280 value &= ~(1 << bit_position); 4281 value &= ~(1 << bit_position);
4281 } 4282 }
4282 return value; 4283 return value;
4283 } 4284 }
4284 }; 4285 };
4285 4286
4286 } } // namespace v8::internal 4287 } } // namespace v8::internal
4287 4288
4288 #endif // V8_OBJECTS_H_ 4289 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | test/mjsunit/fuzz-natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698