Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 15b1479cb7d2ae7fc7f7fb85b979ce7c3687527d..7e1688b65fa781fe97ff24e4f5b87fa04019f843 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -2701,6 +2701,15 @@ MaybeObject* Heap::AllocateJSGlobalPropertyCell(Object* value) { |
} |
+MaybeObject* Heap::AllocateBox(Object* value, PretenureFlag pretenure) { |
+ Box* result; |
+ MaybeObject* maybe_result = AllocateStruct(BOX_TYPE); |
+ if (!maybe_result->To(&result)) return maybe_result; |
+ result->set_value(value); |
+ return result; |
+} |
+ |
+ |
MaybeObject* Heap::CreateOddball(const char* to_string, |
Object* to_number, |
byte kind) { |