OLD | NEW |
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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 Register type_reg, | 693 Register type_reg, |
694 InstanceType type); | 694 InstanceType type); |
695 | 695 |
696 | 696 |
697 // Check if a map for a JSObject indicates that the object has fast elements. | 697 // Check if a map for a JSObject indicates that the object has fast elements. |
698 // Jump to the specified label if it does not. | 698 // Jump to the specified label if it does not. |
699 void CheckFastElements(Register map, | 699 void CheckFastElements(Register map, |
700 Register scratch, | 700 Register scratch, |
701 Label* fail); | 701 Label* fail); |
702 | 702 |
| 703 // Check if a map for a JSObject indicates that the object can have both smi |
| 704 // and HeapObject elements. Jump to the specified label if it does not. |
| 705 void CheckFastObjectElements(Register map, |
| 706 Register scratch, |
| 707 Label* fail); |
| 708 |
| 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. |
| 711 void CheckFastSmiOnlyElements(Register map, |
| 712 Register scratch, |
| 713 Label* fail); |
| 714 |
703 // Check if the map of an object is equal to a specified map (either | 715 // Check if the map of an object is equal to a specified map (either |
704 // given directly or as an index into the root list) and branch to | 716 // given directly or as an index into the root list) and branch to |
705 // label if not. Skip the smi check if not required (object is known | 717 // label if not. Skip the smi check if not required (object is known |
706 // to be a heap object) | 718 // to be a heap object) |
707 void CheckMap(Register obj, | 719 void CheckMap(Register obj, |
708 Register scratch, | 720 Register scratch, |
709 Handle<Map> map, | 721 Handle<Map> map, |
710 Label* fail, | 722 Label* fail, |
711 SmiCheckType smi_check_type); | 723 SmiCheckType smi_check_type); |
712 | 724 |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1254 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1266 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1255 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1267 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1256 #else | 1268 #else |
1257 #define ACCESS_MASM(masm) masm-> | 1269 #define ACCESS_MASM(masm) masm-> |
1258 #endif | 1270 #endif |
1259 | 1271 |
1260 | 1272 |
1261 } } // namespace v8::internal | 1273 } } // namespace v8::internal |
1262 | 1274 |
1263 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1275 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |