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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 // are the same register). It leaves the heap object in the heap_object | 579 // are the same register). It leaves the heap object in the heap_object |
580 // register unless the heap_object register is the same register as one of the | 580 // register unless the heap_object register is the same register as one of the |
581 // other registers. | 581 // other registers. |
582 void CompareObjectType(Register heap_object, | 582 void CompareObjectType(Register heap_object, |
583 Register map, | 583 Register map, |
584 Register type_reg, | 584 Register type_reg, |
585 InstanceType type); | 585 InstanceType type); |
586 | 586 |
587 // Compare instance type in a map. map contains a valid map object whose | 587 // Compare instance type in a map. map contains a valid map object whose |
588 // object type should be compared with the given type. This both | 588 // object type should be compared with the given type. This both |
589 // sets the flags and leaves the object type in the type_reg register. It | 589 // sets the flags and leaves the object type in the type_reg register. |
590 // leaves the heap object in the heap_object register unless the heap_object | |
591 // register is the same register as type_reg. | |
592 void CompareInstanceType(Register map, | 590 void CompareInstanceType(Register map, |
593 Register type_reg, | 591 Register type_reg, |
594 InstanceType type); | 592 InstanceType type); |
595 | 593 |
596 | 594 |
597 // Check if a map for a JSObject indicates that the object has fast elements. | 595 // Check if a map for a JSObject indicates that the object has fast elements. |
598 // Jump to the specified label if it does not. | 596 // Jump to the specified label if it does not. |
599 void CheckFastElements(Register map, | 597 void CheckFastElements(Register map, |
600 Register scratch, | 598 Register scratch, |
601 Label* fail); | 599 Label* fail); |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1137 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1135 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1138 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1136 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1139 #else | 1137 #else |
1140 #define ACCESS_MASM(masm) masm-> | 1138 #define ACCESS_MASM(masm) masm-> |
1141 #endif | 1139 #endif |
1142 | 1140 |
1143 | 1141 |
1144 } } // namespace v8::internal | 1142 } } // namespace v8::internal |
1145 | 1143 |
1146 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1144 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |