Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: src/conversions.h

Issue 1038313004: fix special index parsing (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: NaN test Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/conversions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698