Index: src/compiler/code-stub-assembler.cc |
diff --git a/src/compiler/code-stub-assembler.cc b/src/compiler/code-stub-assembler.cc |
index 02efccac14db8b8dda38ab9b44b9e8d23f3062e0..424f5b0116a3d92af36ae8ff677222d3d4348ebc 100644 |
--- a/src/compiler/code-stub-assembler.cc |
+++ b/src/compiler/code-stub-assembler.cc |
@@ -523,6 +523,11 @@ Node* CodeStubAssembler::LoadFixedArrayElementInt32Index( |
return Load(MachineType::AnyTagged(), object, offset); |
} |
+Node* CodeStubAssembler::LoadMapInstanceSize(Node* map) { |
+ return Load(MachineType::Uint8(), map, |
+ IntPtrConstant(Map::kInstanceSizeOffset - kHeapObjectTag)); |
+} |
+ |
Node* CodeStubAssembler::LoadFixedArrayElementSmiIndex(Node* object, |
Node* smi_index, |
int additional_offset) { |
@@ -704,6 +709,10 @@ Node* CodeStubAssembler::Allocate(int size_in_bytes, AllocationFlags flags) { |
limit_address); |
} |
+Node* CodeStubAssembler::InnerAllocate(Node* previous, int offset) { |
+ return IntPtrAdd(previous, IntPtrConstant(offset)); |
+} |
+ |
Node* CodeStubAssembler::AllocateHeapNumber() { |
Node* result = Allocate(HeapNumber::kSize, kNone); |
StoreMapNoWriteBarrier(result, HeapNumberMapConstant()); |