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

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

Issue 8065004: Porting r9456 to arm (Optimize KeyedStoreGeneric for Smi arrays). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: small change. Created 9 years, 2 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 void CheckFastObjectElements(Register map, 705 void CheckFastObjectElements(Register map,
706 Register scratch, 706 Register scratch,
707 Label* fail); 707 Label* fail);
708 708
709 // Check if a map for a JSObject indicates that the object has fast smi only 709 // Check if a map for a JSObject indicates that the object has fast smi only
710 // elements. Jump to the specified label if it does not. 710 // elements. Jump to the specified label if it does not.
711 void CheckFastSmiOnlyElements(Register map, 711 void CheckFastSmiOnlyElements(Register map,
712 Register scratch, 712 Register scratch,
713 Label* fail); 713 Label* fail);
714 714
715 // Check to see if maybe_number can be stored as a double in
716 // FastDoubleElements. If it can, store it at the index specified by key in
717 // the FastDoubleElements array elements, otherwise jump to fail.
718 void StoreNumberToDoubleElements(Register value_reg,
719 Register key_reg,
720 Register receiver_reg,
721 Register elements_reg,
722 Register scratch1,
723 Register scratch2,
724 Register scratch3,
725 Register scratch4,
726 Label* fail);
727
715 // Check if the map of an object is equal to a specified map (either 728 // Check if the map of an object is equal to a specified map (either
716 // given directly or as an index into the root list) and branch to 729 // given directly or as an index into the root list) and branch to
717 // label if not. Skip the smi check if not required (object is known 730 // label if not. Skip the smi check if not required (object is known
718 // to be a heap object) 731 // to be a heap object)
719 void CheckMap(Register obj, 732 void CheckMap(Register obj,
720 Register scratch, 733 Register scratch,
721 Handle<Map> map, 734 Handle<Map> map,
722 Label* fail, 735 Label* fail,
723 SmiCheckType smi_check_type); 736 SmiCheckType smi_check_type);
724 737
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1279 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1267 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1280 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1268 #else 1281 #else
1269 #define ACCESS_MASM(masm) masm-> 1282 #define ACCESS_MASM(masm) masm->
1270 #endif 1283 #endif
1271 1284
1272 1285
1273 } } // namespace v8::internal 1286 } } // namespace v8::internal
1274 1287
1275 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1288 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698