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

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: rebased Created 6 years, 7 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 | « src/parser-thread.cc ('k') | src/preparser.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_PREPARSE_DATA_H_ 5 #ifndef V8_PREPARSE_DATA_H_
6 #define V8_PREPARSE_DATA_H_ 6 #define V8_PREPARSE_DATA_H_
7 7
8 #include "allocation.h" 8 #include "allocation.h"
9 #include "hashmap.h" 9 #include "hashmap.h"
10 #include "preparse-data-format.h"
10 #include "utils-inl.h" 11 #include "utils-inl.h"
11 12
12 namespace v8 { 13 namespace v8 {
13 namespace internal { 14 namespace internal {
14 15
15 16
16 // Abstract interface for preparse data recorder. 17 // Abstract interface for preparse data recorder.
17 class ParserRecorder { 18 class ParserRecorder {
18 public: 19 public:
19 ParserRecorder() { } 20 ParserRecorder() { }
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 } 88 }
88 int properties() const { 89 int properties() const {
89 ASSERT(!has_error_); 90 ASSERT(!has_error_);
90 return properties_; 91 return properties_;
91 } 92 }
92 StrictMode strict_mode() const { 93 StrictMode strict_mode() const {
93 ASSERT(!has_error_); 94 ASSERT(!has_error_);
94 return strict_mode_; 95 return strict_mode_;
95 } 96 }
96 int is_reference_error() const { return is_reference_error_; } 97 int is_reference_error() const { return is_reference_error_; }
97 const char* message() { 98 const char* message() const {
98 ASSERT(has_error_); 99 ASSERT(has_error_);
99 return message_; 100 return message_;
100 } 101 }
101 const char* argument_opt() const { 102 const char* argument_opt() const {
102 ASSERT(has_error_); 103 ASSERT(has_error_);
103 return argument_opt_; 104 return argument_opt_;
104 } 105 }
105 106
106 private: 107 private:
107 bool has_error_; 108 bool has_error_;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 166
166 #ifdef DEBUG 167 #ifdef DEBUG
167 int prev_start_; 168 int prev_start_;
168 #endif 169 #endif
169 }; 170 };
170 171
171 172
172 } } // namespace v8::internal. 173 } } // namespace v8::internal.
173 174
174 #endif // V8_PREPARSE_DATA_H_ 175 #endif // V8_PREPARSE_DATA_H_
OLDNEW
« no previous file with comments | « src/parser-thread.cc ('k') | src/preparser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698