OLD | NEW |
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 "utils-inl.h" | 10 #include "utils-inl.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 int end, | 51 int end, |
52 int literals, | 52 int literals, |
53 int properties, | 53 int properties, |
54 StrictMode strict_mode) { | 54 StrictMode strict_mode) { |
55 ASSERT(!has_error_); | 55 ASSERT(!has_error_); |
56 start_ = start; | 56 start_ = start; |
57 end_ = end; | 57 end_ = end; |
58 literals_ = literals; | 58 literals_ = literals; |
59 properties_ = properties; | 59 properties_ = properties; |
60 strict_mode_ = strict_mode; | 60 strict_mode_ = strict_mode; |
61 }; | 61 } |
62 | 62 |
63 // Logs an error message and marks the log as containing an error. | 63 // Logs an error message and marks the log as containing an error. |
64 // Further logging will be ignored, and ExtractData will return a vector | 64 // Further logging will be ignored, and ExtractData will return a vector |
65 // representing the error only. | 65 // representing the error only. |
66 virtual void LogMessage(int start, | 66 virtual void LogMessage(int start, |
67 int end, | 67 int end, |
68 const char* message, | 68 const char* message, |
69 const char* argument_opt, | 69 const char* argument_opt, |
70 bool is_reference_error) { | 70 bool is_reference_error) { |
71 if (has_error_) return; | 71 if (has_error_) return; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 165 |
166 #ifdef DEBUG | 166 #ifdef DEBUG |
167 int prev_start_; | 167 int prev_start_; |
168 #endif | 168 #endif |
169 }; | 169 }; |
170 | 170 |
171 | 171 |
172 } } // namespace v8::internal. | 172 } } // namespace v8::internal. |
173 | 173 |
174 #endif // V8_PREPARSE_DATA_H_ | 174 #endif // V8_PREPARSE_DATA_H_ |
OLD | NEW |