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:
parent
7e613579be
commit
17ec52b6cd
@ -4059,7 +4059,7 @@ void MacroAssembler::LoadTransitionedArrayMapConditional(
|
|||||||
movq(scratch, Operand(scratch,
|
movq(scratch, Operand(scratch,
|
||||||
Context::SlotOffset(Context::JS_ARRAY_MAPS_INDEX)));
|
Context::SlotOffset(Context::JS_ARRAY_MAPS_INDEX)));
|
||||||
|
|
||||||
size_t offset = expected_kind * kPointerSize +
|
int offset = expected_kind * kPointerSize +
|
||||||
FixedArrayBase::kHeaderSize;
|
FixedArrayBase::kHeaderSize;
|
||||||
cmpq(map_in_out, FieldOperand(scratch, offset));
|
cmpq(map_in_out, FieldOperand(scratch, offset));
|
||||||
j(not_equal, no_map_match);
|
j(not_equal, no_map_match);
|
||||||
|
@ -278,7 +278,8 @@ function testOneArrayType(allocator) {
|
|||||||
expected_array_value(7));
|
expected_array_value(7));
|
||||||
|
|
||||||
%DeoptimizeFunction(test_various_loads6);
|
%DeoptimizeFunction(test_various_loads6);
|
||||||
gc();
|
%ClearFunctionTypeFeedback(test_various_stores);
|
||||||
|
%ClearFunctionTypeFeedback(test_various_loads7);
|
||||||
|
|
||||||
// Test stores for non-NaN.
|
// Test stores for non-NaN.
|
||||||
var large_array = new allocator(large_array_size);
|
var large_array = new allocator(large_array_size);
|
||||||
|
Loading…
Reference in New Issue
Block a user