| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_CONVERSIONS_H_ | 5 #ifndef V8_CONVERSIONS_H_ |
| 6 #define V8_CONVERSIONS_H_ | 6 #define V8_CONVERSIONS_H_ |
| 7 | 7 |
| 8 #include <limits> | 8 #include <limits> |
| 9 | 9 |
| 10 #include "src/base/logging.h" | 10 #include "src/base/logging.h" |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 // Converts a number into size_t. | 230 // Converts a number into size_t. |
| 231 inline size_t NumberToSize(Isolate* isolate, | 231 inline size_t NumberToSize(Isolate* isolate, |
| 232 Object* number) { | 232 Object* number) { |
| 233 size_t result = 0; | 233 size_t result = 0; |
| 234 bool is_valid = TryNumberToSize(isolate, number, &result); | 234 bool is_valid = TryNumberToSize(isolate, number, &result); |
| 235 CHECK(is_valid); | 235 CHECK(is_valid); |
| 236 return result; | 236 return result; |
| 237 } | 237 } |
| 238 | 238 |
| 239 | 239 |
| 240 bool IsNonArrayIndexInteger(String* string); | 240 // returns DoubleToString(StringToDouble(string)) == string |
| 241 bool IsSpecialIndex(UnicodeCache* unicode_cache, String* string); |
| 241 } } // namespace v8::internal | 242 } } // namespace v8::internal |
| 242 | 243 |
| 243 #endif // V8_CONVERSIONS_H_ | 244 #endif // V8_CONVERSIONS_H_ |
| OLD | NEW |