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

Side by Side Diff: src/pending-compilation-error-handler.h

Issue 2502633002: [parser] Only log messages using the pending error handling (Closed)
Patch Set: Delete more unused code Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_PENDING_COMPILATION_ERROR_HANDLER_H_ 5 #ifndef V8_PENDING_COMPILATION_ERROR_HANDLER_H_
6 #define V8_PENDING_COMPILATION_ERROR_HANDLER_H_ 6 #define V8_PENDING_COMPILATION_ERROR_HANDLER_H_
7 7
8 #include "src/base/macros.h" 8 #include "src/base/macros.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 #include "src/handles.h" 10 #include "src/handles.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 message_ = message; 68 message_ = message;
69 char_arg_ = nullptr; 69 char_arg_ = nullptr;
70 arg_ = nullptr; 70 arg_ = nullptr;
71 handle_arg_ = arg; 71 handle_arg_ = arg;
72 error_type_ = error_type; 72 error_type_ = error_type;
73 } 73 }
74 74
75 bool has_pending_error() const { return has_pending_error_; } 75 bool has_pending_error() const { return has_pending_error_; }
76 76
77 void ThrowPendingError(Isolate* isolate, Handle<Script> script); 77 void ThrowPendingError(Isolate* isolate, Handle<Script> script);
78 Handle<String> FormatMessage(Isolate* isolate);
78 79
79 private: 80 private:
81 Handle<String> ArgumentString(Isolate* isolate);
82
80 bool has_pending_error_; 83 bool has_pending_error_;
81 int start_position_; 84 int start_position_;
82 int end_position_; 85 int end_position_;
83 MessageTemplate::Template message_; 86 MessageTemplate::Template message_;
84 const AstRawString* arg_; 87 const AstRawString* arg_;
85 const char* char_arg_; 88 const char* char_arg_;
86 Handle<String> handle_arg_; 89 Handle<String> handle_arg_;
87 ParseErrorType error_type_; 90 ParseErrorType error_type_;
88 91
89 DISALLOW_COPY_AND_ASSIGN(PendingCompilationErrorHandler); 92 DISALLOW_COPY_AND_ASSIGN(PendingCompilationErrorHandler);
90 }; 93 };
91 94
92 } // namespace internal 95 } // namespace internal
93 } // namespace v8 96 } // namespace v8
94 #endif // V8_PENDING_COMPILATION_ERROR_HANDLER_H_ 97 #endif // V8_PENDING_COMPILATION_ERROR_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698