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

Side by Side Diff: src/arm/macro-assembler-arm.h

Issue 11377132: Support all fast elements kinds in the major array operations. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments (and rebased) Created 8 years, 1 month 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
« no previous file with comments | « src/arm/ic-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 void CheckFastSmiElements(Register map, 824 void CheckFastSmiElements(Register map,
825 Register scratch, 825 Register scratch,
826 Label* fail); 826 Label* fail);
827 827
828 // Check to see if maybe_number can be stored as a double in 828 // Check to see if maybe_number can be stored as a double in
829 // FastDoubleElements. If it can, store it at the index specified by key in 829 // FastDoubleElements. If it can, store it at the index specified by key in
830 // the FastDoubleElements array elements. Otherwise jump to fail, in which 830 // the FastDoubleElements array elements. Otherwise jump to fail, in which
831 // case scratch2, scratch3 and scratch4 are unmodified. 831 // case scratch2, scratch3 and scratch4 are unmodified.
832 void StoreNumberToDoubleElements(Register value_reg, 832 void StoreNumberToDoubleElements(Register value_reg,
833 Register key_reg, 833 Register key_reg,
834 Register receiver_reg,
835 // All regs below here overwritten. 834 // All regs below here overwritten.
836 Register elements_reg, 835 Register elements_reg,
837 Register scratch1, 836 Register scratch1,
838 Register scratch2, 837 Register scratch2,
839 Register scratch3, 838 Register scratch3,
840 Register scratch4, 839 Register scratch4,
841 Label* fail); 840 Label* fail,
841 int elements_offset = 0);
842 842
843 // Compare an object's map with the specified map and its transitioned 843 // Compare an object's map with the specified map and its transitioned
844 // elements maps if mode is ALLOW_ELEMENT_TRANSITION_MAPS. Condition flags are 844 // elements maps if mode is ALLOW_ELEMENT_TRANSITION_MAPS. Condition flags are
845 // set with result of map compare. If multiple map compares are required, the 845 // set with result of map compare. If multiple map compares are required, the
846 // compare sequences branches to early_success. 846 // compare sequences branches to early_success.
847 void CompareMap(Register obj, 847 void CompareMap(Register obj,
848 Register scratch, 848 Register scratch,
849 Handle<Map> map, 849 Handle<Map> map,
850 Label* early_success, 850 Label* early_success,
851 CompareMapMode mode = REQUIRE_EXACT_MAP); 851 CompareMapMode mode = REQUIRE_EXACT_MAP);
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
1420 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1420 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1421 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1421 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1422 #else 1422 #else
1423 #define ACCESS_MASM(masm) masm-> 1423 #define ACCESS_MASM(masm) masm->
1424 #endif 1424 #endif
1425 1425
1426 1426
1427 } } // namespace v8::internal 1427 } } // namespace v8::internal
1428 1428
1429 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1429 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/ic-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698