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

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

Issue 7992003: Porting r9392 to x64 (smi-only arrays). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: save one memory access. Created 9 years, 3 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 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 // Compare instance type for map. 840 // Compare instance type for map.
841 // Always use unsigned comparisons: above and below, not less and greater. 841 // Always use unsigned comparisons: above and below, not less and greater.
842 void CmpInstanceType(Register map, InstanceType type); 842 void CmpInstanceType(Register map, InstanceType type);
843 843
844 // Check if a map for a JSObject indicates that the object has fast elements. 844 // Check if a map for a JSObject indicates that the object has fast elements.
845 // Jump to the specified label if it does not. 845 // Jump to the specified label if it does not.
846 void CheckFastElements(Register map, 846 void CheckFastElements(Register map,
847 Label* fail, 847 Label* fail,
848 Label::Distance distance = Label::kFar); 848 Label::Distance distance = Label::kFar);
849 849
850 // Check if a map for a JSObject indicates that the object can have both smi
851 // and HeapObject elements. Jump to the specified label if it does not.
852 void CheckFastObjectElements(Register map,
853 Label* fail,
854 Label::Distance distance = Label::kFar);
855
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.
858 void CheckFastSmiOnlyElements(Register map,
859 Label* fail,
860 Label::Distance distance = Label::kFar);
861
850 // Check if the map of an object is equal to a specified map and 862 // Check if the map of an object is equal to a specified map and
851 // branch to label if not. Skip the smi check if not required 863 // branch to label if not. Skip the smi check if not required
852 // (object is known to be a heap object) 864 // (object is known to be a heap object)
853 void CheckMap(Register obj, 865 void CheckMap(Register obj,
854 Handle<Map> map, 866 Handle<Map> map,
855 Label* fail, 867 Label* fail,
856 SmiCheckType smi_check_type); 868 SmiCheckType smi_check_type);
857 869
858 // Check if the map of an object is equal to a specified map and branch to a 870 // Check if the map of an object is equal to a specified map and branch to a
859 // specified target if equal. Skip the smi check if not required (object is 871 // 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
1420 masm->popfd(); \ 1432 masm->popfd(); \
1421 } \ 1433 } \
1422 masm-> 1434 masm->
1423 #else 1435 #else
1424 #define ACCESS_MASM(masm) masm-> 1436 #define ACCESS_MASM(masm) masm->
1425 #endif 1437 #endif
1426 1438
1427 } } // namespace v8::internal 1439 } } // namespace v8::internal
1428 1440
1429 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1441 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698