Index: src/runtime/runtime-function.cc |
diff --git a/src/runtime/runtime-function.cc b/src/runtime/runtime-function.cc |
index 16e6149e7c8770411aa870b02fb2c1f562832a26..18931ddd26b9eea4c6084d19190cbcf04c50761a 100644 |
--- a/src/runtime/runtime-function.cc |
+++ b/src/runtime/runtime-function.cc |
@@ -391,7 +391,8 @@ RUNTIME_FUNCTION(Runtime_FunctionBindArguments) { |
// TODO(lrn): Create bound function in C++ code from premade shared info. |
bound_function->shared()->set_bound(true); |
- bound_function->shared()->set_optimized_code_map(Smi::FromInt(0)); |
+ bound_function->shared()->set_optimized_code_map( |
+ isolate->heap()->cleared_optimized_code_map()); |
bound_function->shared()->set_inferred_name(isolate->heap()->empty_string()); |
// Get all arguments of calling function (Function.prototype.bind). |
int argc = 0; |