Fix build and test failures from packed array optimizations.

R=jkummerow@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10332317

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11638 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
danno@chromium.org 2012-05-23 21:15:14 +00:00
parent 7e613579be
commit 17ec52b6cd
2 changed files with 3 additions and 2 deletions

View File

@ -4059,7 +4059,7 @@ void MacroAssembler::LoadTransitionedArrayMapConditional(
movq(scratch, Operand(scratch,
Context::SlotOffset(Context::JS_ARRAY_MAPS_INDEX)));
size_t offset = expected_kind * kPointerSize +
int offset = expected_kind * kPointerSize +
FixedArrayBase::kHeaderSize;
cmpq(map_in_out, FieldOperand(scratch, offset));
j(not_equal, no_map_match);

View File

@ -278,7 +278,8 @@ function testOneArrayType(allocator) {
expected_array_value(7));
%DeoptimizeFunction(test_various_loads6);
gc();
%ClearFunctionTypeFeedback(test_various_stores);
%ClearFunctionTypeFeedback(test_various_loads7);
// Test stores for non-NaN.
var large_array = new allocator(large_array_size);