Version 3.23.2
Fixed --extra-code flag for snapshot creation. (issue 2994)
Fixed error message wording when instanceof throws. (Chromium issue 82797, issue 1593)
Performance and stability improvements on all platforms.
git-svn-id: http://v8.googlecode.com/svn/trunk@17630 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/src/hydrogen-load-elimination.cc b/src/hydrogen-load-elimination.cc
index 3337188..f37de90 100644
--- a/src/hydrogen-load-elimination.cc
+++ b/src/hydrogen-load-elimination.cc
@@ -272,9 +272,7 @@
KillFieldInternal(object, field, NULL);
// Kill the next field in case of overlap.
- int size = kPointerSize;
- if (access.representation().IsByte()) size = 1;
- else if (access.representation().IsInteger32()) size = 4;
+ int size = access.representation().size();
int next_field = (offset + size - 1) / kPointerSize;
if (next_field != field) KillFieldInternal(object, next_field, NULL);
}