Index: src/runtime.h |
diff --git a/src/runtime.h b/src/runtime.h |
index c1c563ab5f171ee2ce856fe3e8d8a5a4c95f699e..3a5c4546a7f35ac099924558bf8f97eb011487b2 100644 |
--- a/src/runtime.h |
+++ b/src/runtime.h |
@@ -798,8 +798,11 @@ class Runtime : public AllStatic { |
// Add internalized strings for all the intrinsic function names to a |
// StringDictionary. |
- static void InitializeIntrinsicFunctionNames(Isolate* isolate, |
- Handle<NameDictionary> dict); |
+ // Returns failure if an allocation fails. In this case, it must be |
+ // retried with a new, empty StringDictionary, not with the same one. |
+ // Alternatively, heap initialization can be completely restarted. |
+ MUST_USE_RESULT static MaybeObject* InitializeIntrinsicFunctionNames( |
+ Heap* heap, Object* dictionary); |
// Get the intrinsic function with the given name, which must be internalized. |
static const Function* FunctionForName(Handle<String> name); |