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

Side by Side Diff: src/preparse-data.h

Issue 214883002: Two-threaded parser (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: . Created 6 years, 8 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 13 matching lines...) Expand all
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifndef V8_PREPARSE_DATA_H_ 28 #ifndef V8_PREPARSE_DATA_H_
29 #define V8_PREPARSE_DATA_H_ 29 #define V8_PREPARSE_DATA_H_
30 30
31 #include "allocation.h" 31 #include "allocation.h"
32 #include "hashmap.h" 32 #include "hashmap.h"
33 #include "utils-inl.h" 33 #include "utils-inl.h"
34 #include "preparse-data-format.h"
Michael Starzinger 2014/04/23 09:07:10 nit: Is it possible to alpha-sort includes here?
34 35
35 namespace v8 { 36 namespace v8 {
36 namespace internal { 37 namespace internal {
37 38
38 39
39 // Abstract interface for preparse data recorder. 40 // Abstract interface for preparse data recorder.
40 class ParserRecorder { 41 class ParserRecorder {
41 public: 42 public:
42 ParserRecorder() { } 43 ParserRecorder() { }
43 virtual ~ParserRecorder() { } 44 virtual ~ParserRecorder() { }
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 } 121 }
121 int properties() const { 122 int properties() const {
122 ASSERT(!has_error_); 123 ASSERT(!has_error_);
123 return properties_; 124 return properties_;
124 } 125 }
125 StrictMode strict_mode() const { 126 StrictMode strict_mode() const {
126 ASSERT(!has_error_); 127 ASSERT(!has_error_);
127 return strict_mode_; 128 return strict_mode_;
128 } 129 }
129 int is_reference_error() const { return is_reference_error_; } 130 int is_reference_error() const { return is_reference_error_; }
130 const char* message() { 131 const char* message() const {
131 ASSERT(has_error_); 132 ASSERT(has_error_);
132 return message_; 133 return message_;
133 } 134 }
134 const char* argument_opt() const { 135 const char* argument_opt() const {
135 ASSERT(has_error_); 136 ASSERT(has_error_);
136 return argument_opt_; 137 return argument_opt_;
137 } 138 }
138 139
139 private: 140 private:
140 bool has_error_; 141 bool has_error_;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 Collector<byte> symbol_store_; 216 Collector<byte> symbol_store_;
216 Collector<Key> symbol_keys_; 217 Collector<Key> symbol_keys_;
217 HashMap string_table_; 218 HashMap string_table_;
218 int symbol_id_; 219 int symbol_id_;
219 }; 220 };
220 221
221 222
222 } } // namespace v8::internal. 223 } } // namespace v8::internal.
223 224
224 #endif // V8_PREPARSE_DATA_H_ 225 #endif // V8_PREPARSE_DATA_H_
OLDNEW
« src/parser-thread.cc ('K') | « src/parser-thread.cc ('k') | src/preparser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698