| 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 3428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3439 inline SafeStringInputBuffer() | 3439 inline SafeStringInputBuffer() |
| 3440 : unibrow::InputBuffer<String, String**, 256>() {} | 3440 : unibrow::InputBuffer<String, String**, 256>() {} |
| 3441 inline SafeStringInputBuffer(String** backing) | 3441 inline SafeStringInputBuffer(String** backing) |
| 3442 : unibrow::InputBuffer<String, String**, 256>(backing) {} | 3442 : unibrow::InputBuffer<String, String**, 256>(backing) {} |
| 3443 }; | 3443 }; |
| 3444 | 3444 |
| 3445 | 3445 |
| 3446 template <typename T> | 3446 template <typename T> |
| 3447 class VectorIterator { | 3447 class VectorIterator { |
| 3448 public: | 3448 public: |
| 3449 VectorIterator(T* d, int l) : data_(Vector<T>(d, l)), index_(0) { } | 3449 VectorIterator(T* d, int l) : data_(Vector<const T>(d, l)), index_(0) { } |
| 3450 explicit VectorIterator(Vector<T> data) : data_(data), index_(0) { } | 3450 explicit VectorIterator(Vector<const T> data) : data_(data), index_(0) { } |
| 3451 T GetNext() { return data_[index_++]; } | 3451 T GetNext() { return data_[index_++]; } |
| 3452 bool has_more() { return index_ < data_.length(); } | 3452 bool has_more() { return index_ < data_.length(); } |
| 3453 private: | 3453 private: |
| 3454 Vector<T> data_; | 3454 Vector<const T> data_; |
| 3455 int index_; | 3455 int index_; |
| 3456 }; | 3456 }; |
| 3457 | 3457 |
| 3458 | 3458 |
| 3459 // The Oddball describes objects null, undefined, true, and false. | 3459 // The Oddball describes objects null, undefined, true, and false. |
| 3460 class Oddball: public HeapObject { | 3460 class Oddball: public HeapObject { |
| 3461 public: | 3461 public: |
| 3462 // [to_string]: Cached to_string computed at startup. | 3462 // [to_string]: Cached to_string computed at startup. |
| 3463 DECL_ACCESSORS(to_string, String) | 3463 DECL_ACCESSORS(to_string, String) |
| 3464 | 3464 |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3997 } else { | 3997 } else { |
| 3998 value &= ~(1 << bit_position); | 3998 value &= ~(1 << bit_position); |
| 3999 } | 3999 } |
| 4000 return value; | 4000 return value; |
| 4001 } | 4001 } |
| 4002 }; | 4002 }; |
| 4003 | 4003 |
| 4004 } } // namespace v8::internal | 4004 } } // namespace v8::internal |
| 4005 | 4005 |
| 4006 #endif // V8_OBJECTS_H_ | 4006 #endif // V8_OBJECTS_H_ |
| OLD | NEW |