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

Side by Side Diff: src/parser.h

Issue 11414207: Remove unused private member variables found by clang -Wunused-private-field (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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 | « src/objects.cc ('k') | src/spaces.h » ('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 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 ASSERT(backing_[kLanguageModeIndex] == CLASSIC_MODE || 89 ASSERT(backing_[kLanguageModeIndex] == CLASSIC_MODE ||
90 backing_[kLanguageModeIndex] == STRICT_MODE || 90 backing_[kLanguageModeIndex] == STRICT_MODE ||
91 backing_[kLanguageModeIndex] == EXTENDED_MODE); 91 backing_[kLanguageModeIndex] == EXTENDED_MODE);
92 return static_cast<LanguageMode>(backing_[kLanguageModeIndex]); 92 return static_cast<LanguageMode>(backing_[kLanguageModeIndex]);
93 } 93 }
94 94
95 bool is_valid() { return !backing_.is_empty(); } 95 bool is_valid() { return !backing_.is_empty(); }
96 96
97 private: 97 private:
98 Vector<unsigned> backing_; 98 Vector<unsigned> backing_;
99 bool owns_data_;
100 }; 99 };
101 100
102 101
103 class ScriptDataImpl : public ScriptData { 102 class ScriptDataImpl : public ScriptData {
104 public: 103 public:
105 explicit ScriptDataImpl(Vector<unsigned> store) 104 explicit ScriptDataImpl(Vector<unsigned> store)
106 : store_(store), 105 : store_(store),
107 owns_store_(true) { } 106 owns_store_(true) { }
108 107
109 // Create an empty ScriptDataImpl that is guaranteed to not satisfy 108 // Create an empty ScriptDataImpl that is guaranteed to not satisfy
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 private: 877 private:
879 static const int kTypeSlot = 0; 878 static const int kTypeSlot = 0;
880 static const int kElementsSlot = 1; 879 static const int kElementsSlot = 1;
881 880
882 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); 881 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue);
883 }; 882 };
884 883
885 } } // namespace v8::internal 884 } } // namespace v8::internal
886 885
887 #endif // V8_PARSER_H_ 886 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698