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

Unified Diff: src/code-stub-assembler.h

Issue 2304573004: Port FastCloneShallowArrayStub to Turbofan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cleanup mode a bit Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/code-stub-assembler.cc » ('j') | src/code-stub-assembler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stub-assembler.h
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h
index d34f58c4854681062a2afb882b9eaaf3590182b7..8a0fe27bb7360d20436573cb31bbf0c2660d0a70 100644
--- a/src/code-stub-assembler.h
+++ b/src/code-stub-assembler.h
@@ -72,6 +72,8 @@ class CodeStubAssembler : public compiler::CodeAssembler {
compiler::Node* BooleanMapConstant();
compiler::Node* EmptyStringConstant();
+ compiler::Node* FixedArrayMapConstant();
+ compiler::Node* FixedCowArrayMapConstant();
compiler::Node* HeapNumberMapConstant();
compiler::Node* NoContextConstant();
compiler::Node* NanConstant();
@@ -210,6 +212,8 @@ class CodeStubAssembler : public compiler::CodeAssembler {
compiler::Node* LoadProperties(compiler::Node* object);
// Load the elements backing store of a JSObject.
compiler::Node* LoadElements(compiler::Node* object);
+ // Load the length of a JSArray instance.
+ compiler::Node* LoadJSArrayLength(compiler::Node* array);
// Load the length of a fixed array base instance.
compiler::Node* LoadFixedArrayBaseLength(compiler::Node* array);
// Load the length of a fixed array base instance.
@@ -317,12 +321,18 @@ class CodeStubAssembler : public compiler::CodeAssembler {
compiler::Node* AllocateSeqTwoByteString(int length);
compiler::Node* AllocateSeqTwoByteString(compiler::Node* context,
compiler::Node* length);
- // Allocated an JSArray
- compiler::Node* AllocateJSArray(ElementsKind kind, compiler::Node* array_map,
- compiler::Node* capacity,
- compiler::Node* length,
- compiler::Node* allocation_site = nullptr,
- ParameterMode mode = INTEGER_PARAMETERS);
+ // Allocate a JSArray and its elements if capacity is not null.
+ // Also initializes JSArray header fields.
+ compiler::Node* AllocateEmptyJSArray(
+ ElementsKind kind, compiler::Node* array_map, compiler::Node* length,
+ compiler::Node* allocation_site = nullptr,
+ ParameterMode mode = INTEGER_PARAMETERS,
+ compiler::Node* capacity = nullptr);
+ // Allocate a JSArray and fill elements with zero.
+ compiler::Node* AllocateFilledJSArray(
+ ElementsKind kind, compiler::Node* array_map, compiler::Node* capacity,
+ compiler::Node* length, compiler::Node* allocation_site = nullptr,
+ ParameterMode mode = INTEGER_PARAMETERS);
compiler::Node* AllocateFixedArray(ElementsKind kind,
compiler::Node* capacity,
« no previous file with comments | « no previous file | src/code-stub-assembler.cc » ('j') | src/code-stub-assembler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698