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

Side by Side Diff: src/x64/stub-cache-x64.cc

Issue 10209027: Implement tracking and optimizations of packed arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: New upload Created 8 years, 8 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 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after
1429 __ bind(&not_fast_object); 1429 __ bind(&not_fast_object);
1430 __ CheckFastSmiOnlyElements(rbx, &call_builtin); 1430 __ CheckFastSmiOnlyElements(rbx, &call_builtin);
1431 // rdx: receiver 1431 // rdx: receiver
1432 // rbx: map 1432 // rbx: map
1433 __ movq(r9, rdi); // Backup rdi as it is going to be trashed. 1433 __ movq(r9, rdi); // Backup rdi as it is going to be trashed.
1434 __ LoadTransitionedArrayMapConditional(FAST_SMI_ONLY_ELEMENTS, 1434 __ LoadTransitionedArrayMapConditional(FAST_SMI_ONLY_ELEMENTS,
1435 FAST_ELEMENTS, 1435 FAST_ELEMENTS,
1436 rbx, 1436 rbx,
1437 rdi, 1437 rdi,
1438 &call_builtin); 1438 &call_builtin);
1439 ElementsTransitionGenerator::GenerateSmiOnlyToObject(masm()); 1439 ElementsTransitionGenerator::GenerateMapChangeElementTransition(masm());
1440 __ movq(rdi, r9); 1440 __ movq(rdi, r9);
1441 __ bind(&fast_object); 1441 __ bind(&fast_object);
1442 } else { 1442 } else {
1443 __ CheckFastObjectElements(rbx, &call_builtin); 1443 __ CheckFastObjectElements(rbx, &call_builtin);
1444 } 1444 }
1445 1445
1446 // Save new length. 1446 // Save new length.
1447 __ Integer32ToSmiField(FieldOperand(rdx, JSArray::kLengthOffset), rax); 1447 __ Integer32ToSmiField(FieldOperand(rdx, JSArray::kLengthOffset), rax);
1448 1448
1449 // Store the value. 1449 // Store the value.
(...skipping 2375 matching lines...) Expand 10 before | Expand all | Expand 10 after
3825 __ jmp(ic_slow, RelocInfo::CODE_TARGET); 3825 __ jmp(ic_slow, RelocInfo::CODE_TARGET);
3826 } 3826 }
3827 } 3827 }
3828 3828
3829 3829
3830 #undef __ 3830 #undef __
3831 3831
3832 } } // namespace v8::internal 3832 } } // namespace v8::internal
3833 3833
3834 #endif // V8_TARGET_ARCH_X64 3834 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/objects.cc ('K') | « src/x64/ic-x64.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698