Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(539)

Side by Side Diff: src/arm/ic-arm.cc

Issue 11817017: Additional work to get array literal allocation tracking working, even with --always-opt (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Code cleanup Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after
1411 __ jmp(&fast_double_without_map_check); 1411 __ jmp(&fast_double_without_map_check);
1412 1412
1413 __ bind(&non_double_value); 1413 __ bind(&non_double_value);
1414 // Value is not a double, FAST_SMI_ELEMENTS -> FAST_ELEMENTS 1414 // Value is not a double, FAST_SMI_ELEMENTS -> FAST_ELEMENTS
1415 __ LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS, 1415 __ LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS,
1416 FAST_ELEMENTS, 1416 FAST_ELEMENTS,
1417 receiver_map, 1417 receiver_map,
1418 r4, 1418 r4,
1419 slow); 1419 slow);
1420 ASSERT(receiver_map.is(r3)); // Transition code expects map in r3 1420 ASSERT(receiver_map.is(r3)); // Transition code expects map in r3
1421 ElementsTransitionGenerator::GenerateMapChangeElementsTransition(masm); 1421 ElementsTransitionGenerator::GenerateMapChangeElementsTransition(masm, slow);
1422 __ ldr(elements, FieldMemOperand(receiver, JSObject::kElementsOffset)); 1422 __ ldr(elements, FieldMemOperand(receiver, JSObject::kElementsOffset));
1423 __ jmp(&finish_object_store); 1423 __ jmp(&finish_object_store);
1424 1424
1425 __ bind(&transition_double_elements); 1425 __ bind(&transition_double_elements);
1426 // Elements are FAST_DOUBLE_ELEMENTS, but value is an Object that's not a 1426 // Elements are FAST_DOUBLE_ELEMENTS, but value is an Object that's not a
1427 // HeapNumber. Make sure that the receiver is a Array with FAST_ELEMENTS and 1427 // HeapNumber. Make sure that the receiver is a Array with FAST_ELEMENTS and
1428 // transition array from FAST_DOUBLE_ELEMENTS to FAST_ELEMENTS 1428 // transition array from FAST_DOUBLE_ELEMENTS to FAST_ELEMENTS
1429 __ LoadTransitionedArrayMapConditional(FAST_DOUBLE_ELEMENTS, 1429 __ LoadTransitionedArrayMapConditional(FAST_DOUBLE_ELEMENTS,
1430 FAST_ELEMENTS, 1430 FAST_ELEMENTS,
1431 receiver_map, 1431 receiver_map,
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
1770 } else { 1770 } else {
1771 ASSERT(Assembler::GetCondition(branch_instr) == ne); 1771 ASSERT(Assembler::GetCondition(branch_instr) == ne);
1772 patcher.EmitCondition(eq); 1772 patcher.EmitCondition(eq);
1773 } 1773 }
1774 } 1774 }
1775 1775
1776 1776
1777 } } // namespace v8::internal 1777 } } // namespace v8::internal
1778 1778
1779 #endif // V8_TARGET_ARCH_ARM 1779 #endif // V8_TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698