mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 02:37:53 +00:00
Fix off-by-one error in DBC interpreter
TBR=zra@google.com BUG= Review-Url: https://codereview.chromium.org/2888413002 .
This commit is contained in:
parent
1f94f3dc0a
commit
bd01ce38ce
|
@ -2965,7 +2965,7 @@ RawObject* Simulator::Call(const Code& code,
|
|||
if (LIKELY(start != 0)) {
|
||||
const intptr_t cid = kArrayCid;
|
||||
uword tags = 0;
|
||||
if (LIKELY(instance_size < RawObject::SizeTag::kMaxSizeTag)) {
|
||||
if (LIKELY(instance_size <= RawObject::SizeTag::kMaxSizeTag)) {
|
||||
tags = RawObject::SizeTag::update(instance_size, tags);
|
||||
}
|
||||
tags = RawObject::ClassIdTag::update(cid, tags);
|
||||
|
|
Loading…
Reference in a new issue