Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index 5f59fd9ab05584e96fec88e23ed8598ab5a0bc9b..9ed43382857a0fc7ce2e062a25a3b96f539d22ae 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -1618,11 +1618,9 @@ void Deoptimizer::MaterializeHeapObjects(JavaScriptFrameIterator* it) { |
if (arguments.is_null()) { |
if (frame->has_adapted_arguments()) { |
// Use the arguments adapter frame we just built to materialize the |
- // arguments object. FunctionGetArguments can't throw an exception, |
- // so cast away the doubt with an assert. |
- arguments = Handle<JSObject>(JSObject::cast( |
- Accessors::FunctionGetArguments(*function, |
- NULL)->ToObjectUnchecked())); |
+ // arguments object. FunctionGetArguments can't throw an exception. |
+ arguments = Handle<JSObject>::cast( |
+ Accessors::FunctionGetArguments(function)); |
values.RewindBy(length); |
} else { |
// Construct an arguments object and copy the parameters to a newly |