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

Side by Side Diff: src/hydrogen-instructions.h

Issue 796503002: Create optimized versions of the Map/Set clear method (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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/hydrogen.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 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_
6 #define V8_HYDROGEN_INSTRUCTIONS_H_ 6 #define V8_HYDROGEN_INSTRUCTIONS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/v8.h" 10 #include "src/v8.h"
(...skipping 6350 matching lines...) Expand 10 before | Expand all | Expand 10 after
6361 } 6361 }
6362 6362
6363 template <typename CollectionType> 6363 template <typename CollectionType>
6364 static HObjectAccess ForOrderedHashTableNumberOfDeletedElements() { 6364 static HObjectAccess ForOrderedHashTableNumberOfDeletedElements() {
6365 return HObjectAccess(kInobject, 6365 return HObjectAccess(kInobject,
6366 CollectionType::kNumberOfDeletedElementsOffset, 6366 CollectionType::kNumberOfDeletedElementsOffset,
6367 Representation::Smi()); 6367 Representation::Smi());
6368 } 6368 }
6369 6369
6370 template <typename CollectionType> 6370 template <typename CollectionType>
6371 static HObjectAccess ForOrderedHashTableNextTable() {
6372 return HObjectAccess(kInobject, CollectionType::kNextTableOffset);
6373 }
6374
6375 template <typename CollectionType>
6371 static HObjectAccess ForOrderedHashTableBucket(int bucket) { 6376 static HObjectAccess ForOrderedHashTableBucket(int bucket) {
6372 return HObjectAccess(kInobject, CollectionType::kHashTableStartOffset + 6377 return HObjectAccess(kInobject, CollectionType::kHashTableStartOffset +
6373 (bucket * kPointerSize), 6378 (bucket * kPointerSize),
6374 Representation::Smi()); 6379 Representation::Smi());
6375 } 6380 }
6376 6381
6377 // Access into the data table of an OrderedHashTable with a 6382 // Access into the data table of an OrderedHashTable with a
6378 // known-at-compile-time bucket count. 6383 // known-at-compile-time bucket count.
6379 template <typename CollectionType, int kBucketCount> 6384 template <typename CollectionType, int kBucketCount>
6380 static HObjectAccess ForOrderedHashTableDataTableIndex(int index) { 6385 static HObjectAccess ForOrderedHashTableDataTableIndex(int index) {
(...skipping 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after
8023 }; 8028 };
8024 8029
8025 8030
8026 8031
8027 #undef DECLARE_INSTRUCTION 8032 #undef DECLARE_INSTRUCTION
8028 #undef DECLARE_CONCRETE_INSTRUCTION 8033 #undef DECLARE_CONCRETE_INSTRUCTION
8029 8034
8030 } } // namespace v8::internal 8035 } } // namespace v8::internal
8031 8036
8032 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 8037 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698