Chromium Code Reviews| Index: src/code-stub-assembler.h |
| diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h |
| index df0daa21af5edf16e45370d2e516523e8e178304..f7344b7a1ddec7da51345f8e9962b68c35c6ea57 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 CreateAllocationMemento(compiler::Node* base_allocation, |
|
Benedikt Meurer
2016/05/03 03:57:49
Nit: Can we rename this guy to sth like Initialize
danno
2016/05/03 07:10:48
Done.
|
| + 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 |