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

Side by Side Diff: src/objects.h

Issue 7027: Move const qualifies around to avoid GCC warnings. (GCC 4.3.2)... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/objects.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 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698