diff options
Diffstat (limited to 'deps/v8/src/runtime/runtime-literals.cc')
-rw-r--r-- | deps/v8/src/runtime/runtime-literals.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/deps/v8/src/runtime/runtime-literals.cc b/deps/v8/src/runtime/runtime-literals.cc index d5111f7efa..8632388388 100644 --- a/deps/v8/src/runtime/runtime-literals.cc +++ b/deps/v8/src/runtime/runtime-literals.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "src/allocation-site-scopes.h" +#include "src/allocation-site-scopes-inl.h" #include "src/arguments-inl.h" #include "src/ast/ast.h" #include "src/isolate-inl.h" @@ -497,7 +497,8 @@ MaybeHandle<JSObject> CreateLiteral(Isolate* isolate, Handle<HeapObject> description, int flags) { FeedbackSlot literals_slot(FeedbackVector::ToSlot(literals_index)); CHECK(literals_slot.ToInt() < vector->length()); - Handle<Object> literal_site(vector->Get(literals_slot)->ToObject(), isolate); + Handle<Object> literal_site(vector->Get(literals_slot)->cast<Object>(), + isolate); DeepCopyHints copy_hints = DecodeCopyHints(flags); Handle<AllocationSite> site; @@ -597,7 +598,8 @@ RUNTIME_FUNCTION(Runtime_CreateRegExpLiteral) { FeedbackSlot literal_slot(FeedbackVector::ToSlot(index)); // Check if boilerplate exists. If not, create it first. - Handle<Object> literal_site(vector->Get(literal_slot)->ToObject(), isolate); + Handle<Object> literal_site(vector->Get(literal_slot)->cast<Object>(), + isolate); Handle<Object> boilerplate; if (!HasBoilerplate(literal_site)) { ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |