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

Side by Side Diff: src/wasm/wasm-result.h

Issue 2360983002: Enable component builds for fuzzers (Closed)
Patch Set: Rebase Created 4 years, 2 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
« no previous file with comments | « src/wasm/wasm-module.h ('k') | src/zone/accounting-allocator.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 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_WASM_RESULT_H_ 5 #ifndef V8_WASM_RESULT_H_
6 #define V8_WASM_RESULT_H_ 6 #define V8_WASM_RESULT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/base/compiler-specific.h" 10 #include "src/base/compiler-specific.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 } else { 90 } else {
91 os << result.error_code; 91 os << result.error_code;
92 } 92 }
93 os << std::endl; 93 os << std::endl;
94 return os; 94 return os;
95 } 95 }
96 96
97 std::ostream& operator<<(std::ostream& os, const ErrorCode& error_code); 97 std::ostream& operator<<(std::ostream& os, const ErrorCode& error_code);
98 98
99 // A helper for generating error messages that bubble up to JS exceptions. 99 // A helper for generating error messages that bubble up to JS exceptions.
100 class ErrorThrower { 100 class V8_EXPORT_PRIVATE ErrorThrower {
101 public: 101 public:
102 ErrorThrower(i::Isolate* isolate, const char* context) 102 ErrorThrower(i::Isolate* isolate, const char* context)
103 : isolate_(isolate), context_(context) {} 103 : isolate_(isolate), context_(context) {}
104 ~ErrorThrower(); 104 ~ErrorThrower();
105 105
106 PRINTF_FORMAT(2, 3) void Error(const char* fmt, ...); 106 PRINTF_FORMAT(2, 3) void Error(const char* fmt, ...);
107 PRINTF_FORMAT(2, 3) void TypeError(const char* fmt, ...); 107 PRINTF_FORMAT(2, 3) void TypeError(const char* fmt, ...);
108 PRINTF_FORMAT(2, 3) void RangeError(const char* fmt, ...); 108 PRINTF_FORMAT(2, 3) void RangeError(const char* fmt, ...);
109 109
110 template <typename T> 110 template <typename T>
(...skipping 16 matching lines...) Expand all
127 127
128 i::Isolate* isolate_; 128 i::Isolate* isolate_;
129 const char* context_; 129 const char* context_;
130 i::Handle<i::Object> exception_; 130 i::Handle<i::Object> exception_;
131 }; 131 };
132 } // namespace wasm 132 } // namespace wasm
133 } // namespace internal 133 } // namespace internal
134 } // namespace v8 134 } // namespace v8
135 135
136 #endif 136 #endif
OLDNEW
« no previous file with comments | « src/wasm/wasm-module.h ('k') | src/zone/accounting-allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698