Revision: 6788
Author: [email protected]
Date: Tue Feb 15 04:17:42 2011
Log: Fix FastPixelArrayStore on X64 platform.
TEST=test-api/PixelArray
Review URL: http://codereview.chromium.org/6529014
http://code.google.com/p/v8/source/detail?r=6788
Modified:
/branches/bleeding_edge/src/x64/code-stubs-x64.cc
=======================================
--- /branches/bleeding_edge/src/x64/code-stubs-x64.cc Mon Feb 14 13:21:33
2011
+++ /branches/bleeding_edge/src/x64/code-stubs-x64.cc Tue Feb 15 04:17:42
2011
@@ -4836,22 +4836,21 @@
__ Assert(equal, "Elements isn't a pixel array");
}
}
-
- // Some callers already have verified that the key is a smi.
key_not_smi is
- // set to NULL as a sentinel for that case. Otherwise, add an explicit
check
- // to ensure the key is a smi must be added.
- if (key_not_smi != NULL) {
- __ JumpIfNotSmi(key, key_not_smi);
- } else {
- if (FLAG_debug_code) {
- __ AbortIfNotSmi(key);
- }
- }
// Key must be a smi and it must be in range.
if (key_is_untagged) {
untagged_key = key;
} else {
+ // Some callers already have verified that the key is a smi.
key_not_smi is
+ // set to NULL as a sentinel for that case. Otherwise, add an explicit
+ // check to ensure the key is a smi.
+ if (key_not_smi != NULL) {
+ __ JumpIfNotSmi(key, key_not_smi);
+ } else {
+ if (FLAG_debug_code) {
+ __ AbortIfNotSmi(key);
+ }
+ }
__ SmiToInteger32(untagged_key, key);
}
__ cmpl(untagged_key, FieldOperand(elements, PixelArray::kLengthOffset));
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev