OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 for (num_bits_set = 0; x; x >>= 1) { | 836 for (num_bits_set = 0; x; x >>= 1) { |
837 num_bits_set += x & 1; | 837 num_bits_set += x & 1; |
838 } | 838 } |
839 return num_bits_set; | 839 return num_bits_set; |
840 } | 840 } |
841 | 841 |
842 // Computes pow(x, y) with the special cases in the spec for Math.pow. | 842 // Computes pow(x, y) with the special cases in the spec for Math.pow. |
843 double power_double_int(double x, int y); | 843 double power_double_int(double x, int y); |
844 double power_double_double(double x, double y); | 844 double power_double_double(double x, double y); |
845 | 845 |
| 846 // Helper class for generating code or data associated with the code |
| 847 // right after a call instruction. As an example this can be used to |
| 848 // generate safepoint data after calls for crankshaft. |
| 849 class CallWrapper { |
| 850 public: |
| 851 CallWrapper() { } |
| 852 virtual ~CallWrapper() { } |
| 853 // Called just before emitting a call. Argument is the size of the generated |
| 854 // call code. |
| 855 virtual void BeforeCall(int call_size) = 0; |
| 856 // Called just after emitting a call, i.e., at the return site for the call. |
| 857 virtual void AfterCall() = 0; |
| 858 }; |
| 859 |
846 } } // namespace v8::internal | 860 } } // namespace v8::internal |
847 | 861 |
848 #endif // V8_ASSEMBLER_H_ | 862 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |