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

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

Issue 2416243002: Make unittests work in component build (Closed)
Patch Set: updates 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-opcodes.h ('k') | test/unittests/BUILD.gn » ('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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } else { 75 } else {
76 os << result.error_msg.get() << " @+" << offset; 76 os << result.error_msg.get() << " @+" << offset;
77 } 77 }
78 } else { 78 } else {
79 os << result.error_code; 79 os << result.error_code;
80 } 80 }
81 os << std::endl; 81 os << std::endl;
82 return os; 82 return os;
83 } 83 }
84 84
85 std::ostream& operator<<(std::ostream& os, const ErrorCode& error_code); 85 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os,
86 const ErrorCode& error_code);
86 87
87 // A helper for generating error messages that bubble up to JS exceptions. 88 // A helper for generating error messages that bubble up to JS exceptions.
88 class V8_EXPORT_PRIVATE ErrorThrower { 89 class V8_EXPORT_PRIVATE ErrorThrower {
89 public: 90 public:
90 ErrorThrower(i::Isolate* isolate, const char* context) 91 ErrorThrower(i::Isolate* isolate, const char* context)
91 : isolate_(isolate), context_(context) {} 92 : isolate_(isolate), context_(context) {}
92 ~ErrorThrower(); 93 ~ErrorThrower();
93 94
94 PRINTF_FORMAT(2, 3) void TypeError(const char* fmt, ...); 95 PRINTF_FORMAT(2, 3) void TypeError(const char* fmt, ...);
95 PRINTF_FORMAT(2, 3) void RangeError(const char* fmt, ...); 96 PRINTF_FORMAT(2, 3) void RangeError(const char* fmt, ...);
(...skipping 20 matching lines...) Expand all
116 117
117 i::Isolate* isolate_; 118 i::Isolate* isolate_;
118 const char* context_; 119 const char* context_;
119 i::Handle<i::Object> exception_; 120 i::Handle<i::Object> exception_;
120 }; 121 };
121 } // namespace wasm 122 } // namespace wasm
122 } // namespace internal 123 } // namespace internal
123 } // namespace v8 124 } // namespace v8
124 125
125 #endif 126 #endif
OLDNEW
« no previous file with comments | « src/wasm/wasm-opcodes.h ('k') | test/unittests/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698