Index: src/code-stub-assembler.cc |
diff --git a/src/code-stub-assembler.cc b/src/code-stub-assembler.cc |
index d9f47b4db133581f3441c5dd2e0cf2dc1c3e836a..df2b73bda04931aede2a0ce28474b023068d622e 100644 |
--- a/src/code-stub-assembler.cc |
+++ b/src/code-stub-assembler.cc |
@@ -278,6 +278,10 @@ Node* CodeStubAssembler::Float64Trunc(Node* x) { |
return var_x.value(); |
} |
+Node* CodeStubAssembler::SmiShiftBitsConstant() { |
+ return IntPtrConstant(kSmiShiftSize + kSmiTagSize); |
+} |
+ |
Node* CodeStubAssembler::SmiFromWord32(Node* value) { |
value = ChangeInt32ToIntPtr(value); |
return WordShl(value, SmiShiftBitsConstant()); |
@@ -4000,7 +4004,7 @@ Node* CodeStubAssembler::CreateWeakCellInFeedbackVector(Node* feedback_vector, |
Node* slot, |
Node* value) { |
Node* size = IntPtrConstant(WeakCell::kSize); |
- Node* cell = Allocate(size, compiler::CodeAssembler::kPretenured); |
+ Node* cell = Allocate(size, CodeStubAssembler::kPretenured); |
// Initialize the WeakCell. |
StoreObjectFieldRoot(cell, WeakCell::kMapOffset, Heap::kWeakCellMapRootIndex); |