| 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 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1130 unsigned int num_bits_set; | 1130 unsigned int num_bits_set; |
| 1131 for (num_bits_set = 0; x; x >>= 1) { | 1131 for (num_bits_set = 0; x; x >>= 1) { |
| 1132 num_bits_set += x & 1; | 1132 num_bits_set += x & 1; |
| 1133 } | 1133 } |
| 1134 return num_bits_set; | 1134 return num_bits_set; |
| 1135 } | 1135 } |
| 1136 | 1136 |
| 1137 bool EvalComparison(Token::Value op, double op1, double op2); | 1137 bool EvalComparison(Token::Value op, double op1, double op2); |
| 1138 | 1138 |
| 1139 // Computes pow(x, y) with the special cases in the spec for Math.pow. | 1139 // Computes pow(x, y) with the special cases in the spec for Math.pow. |
| 1140 double power_helper(double x, double y); | 1140 double power_helper(Isolate* isolate, double x, double y); |
| 1141 double power_double_int(double x, int y); | 1141 double power_double_int(double x, int y); |
| 1142 double power_double_double(double x, double y); | 1142 double power_double_double(double x, double y); |
| 1143 | 1143 |
| 1144 // Helper class for generating code or data associated with the code | 1144 // Helper class for generating code or data associated with the code |
| 1145 // right after a call instruction. As an example this can be used to | 1145 // right after a call instruction. As an example this can be used to |
| 1146 // generate safepoint data after calls for crankshaft. | 1146 // generate safepoint data after calls for crankshaft. |
| 1147 class CallWrapper { | 1147 class CallWrapper { |
| 1148 public: | 1148 public: |
| 1149 CallWrapper() { } | 1149 CallWrapper() { } |
| 1150 virtual ~CallWrapper() { } | 1150 virtual ~CallWrapper() { } |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1279 std::vector<ConstantPoolEntry> shared_entries; | 1279 std::vector<ConstantPoolEntry> shared_entries; |
| 1280 }; | 1280 }; |
| 1281 | 1281 |
| 1282 Label emitted_label_; // Records pc_offset of emitted pool | 1282 Label emitted_label_; // Records pc_offset of emitted pool |
| 1283 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; | 1283 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; |
| 1284 }; | 1284 }; |
| 1285 | 1285 |
| 1286 } // namespace internal | 1286 } // namespace internal |
| 1287 } // namespace v8 | 1287 } // namespace v8 |
| 1288 #endif // V8_ASSEMBLER_H_ | 1288 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |