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

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

Issue 78583002: [v8-dev] ARM: Optimize TypeofIsAndBranch (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments and rebased. Created 7 years 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 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 Label* miss, 838 Label* miss,
839 bool miss_on_bound_function = false); 839 bool miss_on_bound_function = false);
840 840
841 // Compare object type for heap object. heap_object contains a non-Smi 841 // Compare object type for heap object. heap_object contains a non-Smi
842 // whose object type should be compared with the given type. This both 842 // whose object type should be compared with the given type. This both
843 // sets the flags and leaves the object type in the type_reg register. 843 // sets the flags and leaves the object type in the type_reg register.
844 // It leaves the map in the map register (unless the type_reg and map register 844 // It leaves the map in the map register (unless the type_reg and map register
845 // are the same register). It leaves the heap object in the heap_object 845 // are the same register). It leaves the heap object in the heap_object
846 // register unless the heap_object register is the same register as one of the 846 // register unless the heap_object register is the same register as one of the
847 // other registers. 847 // other registers.
848 // Type_reg can be no_reg. In that case ip is used.
848 void CompareObjectType(Register heap_object, 849 void CompareObjectType(Register heap_object,
849 Register map, 850 Register map,
850 Register type_reg, 851 Register type_reg,
851 InstanceType type); 852 InstanceType type);
852 853
854 // Compare object type for heap object. Branch to false_label if type
855 // is lower than min_type or greater than max_type.
856 // Load map into the register map.
857 void CheckObjectTypeRange(Register heap_object,
858 Register map,
859 InstanceType min_type,
860 InstanceType max_type,
861 Label* false_label);
862
853 // Compare instance type in a map. map contains a valid map object whose 863 // Compare instance type in a map. map contains a valid map object whose
854 // object type should be compared with the given type. This both 864 // object type should be compared with the given type. This both
855 // sets the flags and leaves the object type in the type_reg register. 865 // sets the flags and leaves the object type in the type_reg register.
856 void CompareInstanceType(Register map, 866 void CompareInstanceType(Register map,
857 Register type_reg, 867 Register type_reg,
858 InstanceType type); 868 InstanceType type);
859 869
860 870
861 // Check if a map for a JSObject indicates that the object has fast elements. 871 // Check if a map for a JSObject indicates that the object has fast elements.
862 // Jump to the specified label if it does not. 872 // Jump to the specified label if it does not.
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
1529 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1539 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1530 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1540 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1531 #else 1541 #else
1532 #define ACCESS_MASM(masm) masm-> 1542 #define ACCESS_MASM(masm) masm->
1533 #endif 1543 #endif
1534 1544
1535 1545
1536 } } // namespace v8::internal 1546 } } // namespace v8::internal
1537 1547
1538 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1548 #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