Revert of [stubs] Fix AccessorInfo mixup in KeyedStoreGeneric (patchset #1 id:1 of https://codereview.chromium.org/2525913002/ )
Reason for revert:
Needed to revert 2661b3e8a5
Original issue's description:
> [stubs] Fix AccessorInfo mixup in KeyedStoreGeneric
>
> BUG=chromium:668101
>
> Committed: https://crrev.com/2661b3e8a5447773a23a219ba085454c459b654b
> Cr-Commit-Position: refs/heads/master@{#41223}
TBR=ishell@chromium.org,jkummerow@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=chromium:668101
Review-Url: https://codereview.chromium.org/2525253002
Cr-Commit-Position: refs/heads/master@{#41250}
This commit is contained in:
parent
a87d252999
commit
e461facff2
@ -21,7 +21,7 @@ class StubCache;
|
||||
enum class PrimitiveType { kBoolean, kNumber, kString, kSymbol };
|
||||
|
||||
#define HEAP_CONSTANT_LIST(V) \
|
||||
V(AccessorInfoMap, AccessorInfoMap) \
|
||||
V(AccessorPairMap, AccessorPairMap) \
|
||||
V(BooleanMap, BooleanMap) \
|
||||
V(CodeMap, CodeMap) \
|
||||
V(empty_string, EmptyString) \
|
||||
|
@ -676,7 +676,7 @@ void KeyedStoreGenericAssembler::EmitGenericPropertyStore(
|
||||
{
|
||||
Label not_callable(this);
|
||||
Node* accessor_pair = var_accessor_pair.value();
|
||||
GotoIf(IsAccessorInfoMap(LoadMap(accessor_pair)), slow);
|
||||
GotoIf(IsAccessorPairMap(LoadMap(accessor_pair)), slow);
|
||||
CSA_ASSERT(this, HasInstanceType(accessor_pair, ACCESSOR_PAIR_TYPE));
|
||||
Node* setter = LoadObjectField(accessor_pair, AccessorPair::kSetterOffset);
|
||||
Node* setter_map = LoadMap(setter);
|
||||
|
@ -1,21 +0,0 @@
|
||||
// Copyright 2016 the V8 project authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// Flags: --allow-natives-syntax
|
||||
|
||||
function f(a, i, v) {
|
||||
a[i] = v;
|
||||
}
|
||||
|
||||
f("make it generic", 0, 0);
|
||||
|
||||
var a = new Array(3);
|
||||
// Fast properties.
|
||||
f(a, "length", 2);
|
||||
assertEquals(2, a.length);
|
||||
|
||||
// Dictionary properties.
|
||||
%OptimizeObjectForAddingMultipleProperties(a, 1);
|
||||
f(a, "length", 1);
|
||||
assertEquals(1, a.length);
|
Loading…
Reference in New Issue
Block a user