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

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

Issue 1903723003: [stubs]: Implement ArrayNoArgumentConstructor as a TF stub (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review feedback Created 4 years, 8 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 | « src/arm64/interface-descriptors-arm64.cc ('k') | src/code-stub-assembler.cc » ('j') | no next file with comments »
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 df0daa21af5edf16e45370d2e516523e8e178304..ebde046a9ba4b8c9211aae364fdfa258785c72ac 100644
--- a/src/code-stub-assembler.h
+++ b/src/code-stub-assembler.h
@@ -139,6 +139,9 @@ class CodeStubAssembler : public compiler::CodeAssembler {
compiler::Node* LoadFixedArrayElementConstantIndex(compiler::Node* object,
int index);
+ // Context manipulation
+ compiler::Node* LoadNativeContext(compiler::Node* context);
+
// Store the floating point value of a HeapNumber.
compiler::Node* StoreHeapNumberValue(compiler::Node* object,
compiler::Node* value);
@@ -158,6 +161,18 @@ class CodeStubAssembler : public compiler::CodeAssembler {
compiler::Node* StoreFixedArrayElementNoWriteBarrier(compiler::Node* object,
compiler::Node* index,
compiler::Node* value);
+ compiler::Node* StoreFixedDoubleArrayElementInt32Index(compiler::Node* object,
+ compiler::Node* index,
+ compiler::Node* value);
+ compiler::Node* StoreFixedArrayElementInt32Index(compiler::Node* object,
+ int index,
+ compiler::Node* value);
+ compiler::Node* StoreFixedArrayElementNoWriteBarrier(compiler::Node* object,
+ int index,
+ compiler::Node* value);
+ compiler::Node* StoreFixedDoubleArrayElementInt32Index(compiler::Node* object,
+ int index,
+ compiler::Node* value);
// Allocate a HeapNumber without initializing its value.
compiler::Node* AllocateHeapNumber();
@@ -167,6 +182,16 @@ class CodeStubAssembler : public compiler::CodeAssembler {
compiler::Node* AllocateSeqOneByteString(int length);
// Allocate a SeqTwoByteString with the given length.
compiler::Node* AllocateSeqTwoByteString(int length);
+ // Allocated an JSArray
+ compiler::Node* AllocateJSArray(ElementsKind kind,
+ compiler::Node* native_context, int capacity,
+ int length,
+ compiler::Node* allocation_site = nullptr);
+
+ // Allocation site manipulation
+ void InitializeAllocationMemento(compiler::Node* base_allocation,
+ int base_allocation_size,
+ compiler::Node* allocation_site);
compiler::Node* TruncateTaggedToFloat64(compiler::Node* context,
compiler::Node* value);
@@ -211,6 +236,8 @@ class CodeStubAssembler : public compiler::CodeAssembler {
AllocationFlags flags,
compiler::Node* top_adddress,
compiler::Node* limit_address);
+
+ static const int kElementLoopUnrollThreshold = 8;
};
} // namespace internal
« no previous file with comments | « src/arm64/interface-descriptors-arm64.cc ('k') | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698