OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 6995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7006 start_ = content.ToUC16Vector().start(); | 7006 start_ = content.ToUC16Vector().start(); |
7007 } | 7007 } |
7008 } | 7008 } |
7009 | 7009 |
7010 | 7010 |
7011 void StringInputBuffer::Seek(unsigned pos) { | 7011 void StringInputBuffer::Seek(unsigned pos) { |
7012 Reset(pos, input_); | 7012 Reset(pos, input_); |
7013 } | 7013 } |
7014 | 7014 |
7015 | 7015 |
7016 void SafeStringInputBuffer::Seek(unsigned pos) { | |
7017 Reset(pos, input_); | |
7018 } | |
7019 | |
7020 | |
7021 // This method determines the type of string involved and then copies | 7016 // This method determines the type of string involved and then copies |
7022 // a whole chunk of characters into a buffer. It can be used with strings | 7017 // a whole chunk of characters into a buffer. It can be used with strings |
7023 // that have been glued together to form a ConsString and which must cooperate | 7018 // that have been glued together to form a ConsString and which must cooperate |
7024 // to fill up a buffer. | 7019 // to fill up a buffer. |
7025 void String::ReadBlockIntoBuffer(String* input, | 7020 void String::ReadBlockIntoBuffer(String* input, |
7026 ReadBlockBuffer* rbb, | 7021 ReadBlockBuffer* rbb, |
7027 unsigned* offset_ptr, | 7022 unsigned* offset_ptr, |
7028 unsigned max_chars) { | 7023 unsigned max_chars) { |
7029 ASSERT(*offset_ptr <= (unsigned)input->length()); | 7024 ASSERT(*offset_ptr <= (unsigned)input->length()); |
7030 if (max_chars == 0) return; | 7025 if (max_chars == 0) return; |
(...skipping 6841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13872 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 13867 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
13873 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 13868 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
13874 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 13869 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
13875 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 13870 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
13876 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 13871 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
13877 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 13872 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
13878 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 13873 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
13879 } | 13874 } |
13880 | 13875 |
13881 } } // namespace v8::internal | 13876 } } // namespace v8::internal |
OLD | NEW |