| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #include <stdarg.h> | 28 #include <stdarg.h> |
| 29 #include <limits.h> | 29 #include <limits.h> |
| 30 | 30 |
| 31 #include "v8.h" | 31 #include "v8.h" |
| 32 | 32 |
| 33 #include "conversions-inl.h" | 33 #include "conversions-inl.h" |
| 34 #include "v8conversions.h" | 34 #include "v8conversions.h" |
| 35 #include "dtoa.h" | 35 #include "dtoa.h" |
| 36 #include "factory.h" | 36 #include "factory.h" |
| 37 #include "scanner-base.h" | |
| 38 #include "strtod.h" | 37 #include "strtod.h" |
| 39 | 38 |
| 40 namespace v8 { | 39 namespace v8 { |
| 41 namespace internal { | 40 namespace internal { |
| 42 | 41 |
| 43 namespace { | 42 namespace { |
| 44 | 43 |
| 45 // C++-style iterator adaptor for StringInputBuffer | 44 // C++-style iterator adaptor for StringInputBuffer |
| 46 // (unlike C++ iterators the end-marker has different type). | 45 // (unlike C++ iterators the end-marker has different type). |
| 47 class StringInputBufferIterator { | 46 class StringInputBufferIterator { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 } else { | 119 } else { |
| 121 StringInputBuffer buffer(str); | 120 StringInputBuffer buffer(str); |
| 122 return InternalStringToInt(unicode_cache, | 121 return InternalStringToInt(unicode_cache, |
| 123 StringInputBufferIterator(&buffer), | 122 StringInputBufferIterator(&buffer), |
| 124 StringInputBufferIterator::EndMarker(), | 123 StringInputBufferIterator::EndMarker(), |
| 125 radix); | 124 radix); |
| 126 } | 125 } |
| 127 } | 126 } |
| 128 | 127 |
| 129 } } // namespace v8::internal | 128 } } // namespace v8::internal |
| OLD | NEW |