| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 3059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3070 unibrow::byte* util_buffer, | 3070 unibrow::byte* util_buffer, |
| 3071 unsigned capacity, | 3071 unsigned capacity, |
| 3072 unsigned* remaining, | 3072 unsigned* remaining, |
| 3073 unsigned* offset); | 3073 unsigned* offset); |
| 3074 | 3074 |
| 3075 // Helper function for flattening strings. | 3075 // Helper function for flattening strings. |
| 3076 static void Flatten(String* source, | 3076 static void Flatten(String* source, |
| 3077 String* sink, | 3077 String* sink, |
| 3078 int from, | 3078 int from, |
| 3079 int to, | 3079 int to, |
| 3080 int sink_offset, | 3080 int sink_offset); |
| 3081 StringHasher* hasher); | |
| 3082 | 3081 |
| 3083 protected: | 3082 protected: |
| 3084 class ReadBlockBuffer { | 3083 class ReadBlockBuffer { |
| 3085 public: | 3084 public: |
| 3086 ReadBlockBuffer(unibrow::byte* util_buffer_, | 3085 ReadBlockBuffer(unibrow::byte* util_buffer_, |
| 3087 unsigned cursor_, | 3086 unsigned cursor_, |
| 3088 unsigned capacity_, | 3087 unsigned capacity_, |
| 3089 unsigned remaining_) : | 3088 unsigned remaining_) : |
| 3090 util_buffer(util_buffer_), | 3089 util_buffer(util_buffer_), |
| 3091 cursor(cursor_), | 3090 cursor(cursor_), |
| (...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3973 } else { | 3972 } else { |
| 3974 value &= ~(1 << bit_position); | 3973 value &= ~(1 << bit_position); |
| 3975 } | 3974 } |
| 3976 return value; | 3975 return value; |
| 3977 } | 3976 } |
| 3978 }; | 3977 }; |
| 3979 | 3978 |
| 3980 } } // namespace v8::internal | 3979 } } // namespace v8::internal |
| 3981 | 3980 |
| 3982 #endif // V8_OBJECTS_H_ | 3981 #endif // V8_OBJECTS_H_ |
| OLD | NEW |