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

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

Issue 8054043: Porting r9456 to x64 (Optimize KeyedStoreGeneric for Smi arrays). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: minor 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
« no previous file with comments | « src/x64/ic-x64.cc ('k') | src/x64/macro-assembler-x64.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 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 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 void CheckFastObjectElements(Register map, 852 void CheckFastObjectElements(Register map,
853 Label* fail, 853 Label* fail,
854 Label::Distance distance = Label::kFar); 854 Label::Distance distance = Label::kFar);
855 855
856 // Check if a map for a JSObject indicates that the object has fast smi only 856 // Check if a map for a JSObject indicates that the object has fast smi only
857 // elements. Jump to the specified label if it does not. 857 // elements. Jump to the specified label if it does not.
858 void CheckFastSmiOnlyElements(Register map, 858 void CheckFastSmiOnlyElements(Register map,
859 Label* fail, 859 Label* fail,
860 Label::Distance distance = Label::kFar); 860 Label::Distance distance = Label::kFar);
861 861
862 // Check to see if maybe_number can be stored as a double in
863 // FastDoubleElements. If it can, store it at the index specified by key in
864 // the FastDoubleElements array elements, otherwise jump to fail.
865 // Note that key must not be smi-tagged.
866 void StoreNumberToDoubleElements(Register maybe_number,
867 Register elements,
868 Register key,
869 XMMRegister xmm_scratch,
870 Label* fail);
871
862 // Check if the map of an object is equal to a specified map and 872 // Check if the map of an object is equal to a specified map and
863 // branch to label if not. Skip the smi check if not required 873 // branch to label if not. Skip the smi check if not required
864 // (object is known to be a heap object) 874 // (object is known to be a heap object)
865 void CheckMap(Register obj, 875 void CheckMap(Register obj,
866 Handle<Map> map, 876 Handle<Map> map,
867 Label* fail, 877 Label* fail,
868 SmiCheckType smi_check_type); 878 SmiCheckType smi_check_type);
869 879
870 // Check if the map of an object is equal to a specified map and branch to a 880 // Check if the map of an object is equal to a specified map and branch to a
871 // specified target if equal. Skip the smi check if not required (object is 881 // specified target if equal. Skip the smi check if not required (object is
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
1432 masm->popfd(); \ 1442 masm->popfd(); \
1433 } \ 1443 } \
1434 masm-> 1444 masm->
1435 #else 1445 #else
1436 #define ACCESS_MASM(masm) masm-> 1446 #define ACCESS_MASM(masm) masm->
1437 #endif 1447 #endif
1438 1448
1439 } } // namespace v8::internal 1449 } } // namespace v8::internal
1440 1450
1441 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1451 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/ic-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698