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

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

Issue 2206333003: [stubs] Convert GrowElementsStub to TurboFan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 4 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') | 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 eda2bc3b4c2a00f802ebe9e1fbf31a1ad6cfe838..46a0cb5ca3fcb6a9af7c0991e3843fd641498b02 100644
--- a/src/code-stub-assembler.h
+++ b/src/code-stub-assembler.h
@@ -52,6 +52,8 @@ class CodeStubAssembler : public compiler::CodeAssembler {
compiler::Node* HashSeed();
compiler::Node* StaleRegisterConstant();
+ compiler::Node* IntPtrOrSmiConstant(int value, ParameterMode mode);
+
// Float64 operations.
compiler::Node* Float64Ceil(compiler::Node* x);
compiler::Node* Float64Floor(compiler::Node* x);
@@ -179,6 +181,8 @@ class CodeStubAssembler : public compiler::CodeAssembler {
// Load the elements backing store of a JSObject.
compiler::Node* LoadElements(compiler::Node* object);
// Load the length of a fixed array base instance.
+ compiler::Node* LoadFixedArrayBaseLength(compiler::Node* array);
+ // Load the length of a fixed array base instance.
compiler::Node* LoadAndUntagFixedArrayBaseLength(compiler::Node* array);
// Load the bit field of a Map.
compiler::Node* LoadMapBitField(compiler::Node* map);
@@ -281,6 +285,30 @@ class CodeStubAssembler : public compiler::CodeAssembler {
compiler::Node* allocation_site = nullptr,
ParameterMode mode = INTEGER_PARAMETERS);
+ compiler::Node* AllocateFixedArray(ElementsKind kind,
+ compiler::Node* capacity,
+ ParameterMode mode = INTEGER_PARAMETERS);
+
+ void FillFixedArrayWithHole(ElementsKind kind, compiler::Node* array,
+ compiler::Node* from_index,
+ compiler::Node* to_index,
+ ParameterMode mode = INTEGER_PARAMETERS);
+
+ void CopyFixedArrayElements(
+ ElementsKind kind, compiler::Node* from_array, compiler::Node* to_array,
+ compiler::Node* element_count,
+ WriteBarrierMode barrier_mode = UPDATE_WRITE_BARRIER,
+ ParameterMode mode = INTEGER_PARAMETERS);
+
+ compiler::Node* CalculateNewElementsCapacity(
+ compiler::Node* old_capacity, ParameterMode mode = INTEGER_PARAMETERS);
+
+ compiler::Node* CheckAndGrowElementsCapacity(compiler::Node* context,
+ compiler::Node* elements,
+ ElementsKind kind,
+ compiler::Node* key,
+ Label* fail);
+
// Allocation site manipulation
void InitializeAllocationMemento(compiler::Node* base_allocation,
int base_allocation_size,
« no previous file with comments | « no previous file | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698