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

Side by Side Diff: src/hydrogen.h

Issue 1144393003: Also allocate small typed arrays on heap when initialized from an array-like (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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 | « src/heap/heap.cc ('k') | src/hydrogen.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 #ifndef V8_HYDROGEN_H_ 5 #ifndef V8_HYDROGEN_H_
6 #define V8_HYDROGEN_H_ 6 #define V8_HYDROGEN_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 2448 matching lines...) Expand 10 before | Expand all | Expand 10 after
2459 BailoutId return_id, 2459 BailoutId return_id,
2460 HValue* object, 2460 HValue* object,
2461 HValue* value, 2461 HValue* value,
2462 SmallMapList* types, 2462 SmallMapList* types,
2463 Handle<String> name); 2463 Handle<String> name);
2464 2464
2465 HValue* BuildAllocateExternalElements( 2465 HValue* BuildAllocateExternalElements(
2466 ExternalArrayType array_type, 2466 ExternalArrayType array_type,
2467 bool is_zero_byte_offset, 2467 bool is_zero_byte_offset,
2468 HValue* buffer, HValue* byte_offset, HValue* length); 2468 HValue* buffer, HValue* byte_offset, HValue* length);
2469 HValue* BuildAllocateFixedTypedArray( 2469 HValue* BuildAllocateFixedTypedArray(ExternalArrayType array_type,
2470 ExternalArrayType array_type, size_t element_size, 2470 size_t element_size,
2471 ElementsKind fixed_elements_kind, 2471 ElementsKind fixed_elements_kind,
2472 HValue* byte_length, HValue* length); 2472 HValue* byte_length, HValue* length,
2473 bool initialize);
2473 2474
2474 // TODO(adamk): Move all OrderedHashTable functions to their own class. 2475 // TODO(adamk): Move all OrderedHashTable functions to their own class.
2475 HValue* BuildOrderedHashTableHashToBucket(HValue* hash, HValue* num_buckets); 2476 HValue* BuildOrderedHashTableHashToBucket(HValue* hash, HValue* num_buckets);
2476 template <typename CollectionType> 2477 template <typename CollectionType>
2477 HValue* BuildOrderedHashTableHashToEntry(HValue* table, HValue* hash, 2478 HValue* BuildOrderedHashTableHashToEntry(HValue* table, HValue* hash,
2478 HValue* num_buckets); 2479 HValue* num_buckets);
2479 template <typename CollectionType> 2480 template <typename CollectionType>
2480 HValue* BuildOrderedHashTableEntryToIndex(HValue* entry, HValue* num_buckets); 2481 HValue* BuildOrderedHashTableEntryToIndex(HValue* entry, HValue* num_buckets);
2481 template <typename CollectionType> 2482 template <typename CollectionType>
2482 HValue* BuildOrderedHashTableFindEntry(HValue* table, HValue* key, 2483 HValue* BuildOrderedHashTableFindEntry(HValue* table, HValue* key,
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
3045 } 3046 }
3046 3047
3047 private: 3048 private:
3048 HGraphBuilder* builder_; 3049 HGraphBuilder* builder_;
3049 }; 3050 };
3050 3051
3051 3052
3052 } } // namespace v8::internal 3053 } } // namespace v8::internal
3053 3054
3054 #endif // V8_HYDROGEN_H_ 3055 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698