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

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

Issue 13923003: Always require exact maps. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
« no previous file with comments | « src/arm/lithium-codegen-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 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 Label* fail, 827 Label* fail,
828 int elements_offset = 0); 828 int elements_offset = 0);
829 829
830 // Compare an object's map with the specified map and its transitioned 830 // Compare an object's map with the specified map and its transitioned
831 // elements maps if mode is ALLOW_ELEMENT_TRANSITION_MAPS. Condition flags are 831 // elements maps if mode is ALLOW_ELEMENT_TRANSITION_MAPS. Condition flags are
832 // set with result of map compare. If multiple map compares are required, the 832 // set with result of map compare. If multiple map compares are required, the
833 // compare sequences branches to early_success. 833 // compare sequences branches to early_success.
834 void CompareMap(Register obj, 834 void CompareMap(Register obj,
835 Register scratch, 835 Register scratch,
836 Handle<Map> map, 836 Handle<Map> map,
837 Label* early_success, 837 Label* early_success);
838 CompareMapMode mode = REQUIRE_EXACT_MAP);
839 838
840 // As above, but the map of the object is already loaded into the register 839 // As above, but the map of the object is already loaded into the register
841 // which is preserved by the code generated. 840 // which is preserved by the code generated.
842 void CompareMap(Register obj_map, 841 void CompareMap(Register obj_map,
843 Handle<Map> map, 842 Handle<Map> map,
844 Label* early_success, 843 Label* early_success);
845 CompareMapMode mode = REQUIRE_EXACT_MAP);
846 844
847 // Check if the map of an object is equal to a specified map and branch to 845 // Check if the map of an object is equal to a specified map and branch to
848 // label if not. Skip the smi check if not required (object is known to be a 846 // label if not. Skip the smi check if not required (object is known to be a
849 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match 847 // heap object). If mode is ALLOW_ELEMENT_TRANSITION_MAPS, then also match
850 // against maps that are ElementsKind transition maps of the specified map. 848 // against maps that are ElementsKind transition maps of the specified map.
851 void CheckMap(Register obj, 849 void CheckMap(Register obj,
852 Register scratch, 850 Register scratch,
853 Handle<Map> map, 851 Handle<Map> map,
854 Label* fail, 852 Label* fail,
855 SmiCheckType smi_check_type, 853 SmiCheckType smi_check_type);
856 CompareMapMode mode = REQUIRE_EXACT_MAP);
857 854
858 855
859 void CheckMap(Register obj, 856 void CheckMap(Register obj,
860 Register scratch, 857 Register scratch,
861 Heap::RootListIndex index, 858 Heap::RootListIndex index,
862 Label* fail, 859 Label* fail,
863 SmiCheckType smi_check_type); 860 SmiCheckType smi_check_type);
864 861
865 862
866 // Check if the map of an object is equal to a specified map and branch to a 863 // Check if the map of an object is equal to a specified map and branch to a
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1428 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1432 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1429 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1433 #else 1430 #else
1434 #define ACCESS_MASM(masm) masm-> 1431 #define ACCESS_MASM(masm) masm->
1435 #endif 1432 #endif
1436 1433
1437 1434
1438 } } // namespace v8::internal 1435 } } // namespace v8::internal
1439 1436
1440 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1437 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698