From 4fbc96ff78b7120456f52febba65127f35322149 Mon Sep 17 00:00:00 2001 From: "mstarzinger@chromium.org" Date: Mon, 4 Nov 2013 12:00:39 +0000 Subject: [PATCH] Remove dead return path from JSObject::GetHiddenPropertiesHashTable. R=verwaest@chromium.org, rafaelw@chromium.org TEST=cctest/test-api Review URL: https://codereview.chromium.org/57783002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17456 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/objects.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/objects.cc b/src/objects.cc index f7c8917..454a1e8 100644 --- a/src/objects.cc +++ b/src/objects.cc @@ -4966,10 +4966,10 @@ MaybeObject* JSObject::GetHiddenPropertiesHashTable( if (descriptors->GetKey(sorted_index) == GetHeap()->hidden_string() && sorted_index < map()->NumberOfOwnDescriptors()) { ASSERT(descriptors->GetType(sorted_index) == FIELD); - MaybeObject* maybe_value = this->FastPropertyAt( - descriptors->GetDetails(sorted_index).representation(), + ASSERT(descriptors->GetDetails(sorted_index).representation(). + IsCompatibleForLoad(Representation::Tagged())); + inline_value = this->RawFastPropertyAt( descriptors->GetFieldIndex(sorted_index)); - if (!maybe_value->To(&inline_value)) return maybe_value; } else { inline_value = GetHeap()->undefined_value(); } -- 2.7.4