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

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

Issue 2220673002: [stubs] Cleanup FixedArray copying builtin (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tests pass 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 | « src/builtins/builtins-internal.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 a51827b28f51cf6817fcce4ba8cf0da9a7bee472..a11f4a79d9dd1c3044441683315871ee4f00d765 100644
--- a/src/code-stub-assembler.h
+++ b/src/code-stub-assembler.h
@@ -287,7 +287,8 @@ class CodeStubAssembler : public compiler::CodeAssembler {
compiler::Node* AllocateFixedArray(ElementsKind kind,
compiler::Node* capacity,
- ParameterMode mode = INTEGER_PARAMETERS);
+ ParameterMode mode = INTEGER_PARAMETERS,
+ AllocationFlags flags = kNone);
void FillFixedArrayWithHole(ElementsKind kind, compiler::Node* array,
compiler::Node* from_index,
@@ -548,6 +549,13 @@ class CodeStubAssembler : public compiler::CodeAssembler {
compiler::Node* feedback_vector, compiler::Node* slot,
compiler::Node* value);
+ compiler::Node* GetFixedAarrayAllocationSize(compiler::Node* element_count,
+ ElementsKind kind,
+ ParameterMode mode) {
+ return ElementOffsetFromIndex(element_count, kind, mode,
+ FixedArray::kHeaderSize);
+ }
+
private:
enum ElementSupport { kOnlyProperties, kSupportElements };
« no previous file with comments | « src/builtins/builtins-internal.cc ('k') | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698