Commit 75da45ff authored by Clemens Hammacher's avatar Clemens Hammacher Committed by Commit Bot

[wasm][iwyu] Remove unneeded heavy-weight includes

R=ahaas@chromium.org

Bug: v8:8238, v8:7490
Change-Id: I27a57a43ad767d77e64764eda1d9017db87bdfcb
Reviewed-on: https://chromium-review.googlesource.com/c/1317588Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57237}
parent 166e74d5
...@@ -5,13 +5,21 @@ ...@@ -5,13 +5,21 @@
#ifndef V8_WASM_STREAMING_DECODER_H_ #ifndef V8_WASM_STREAMING_DECODER_H_
#define V8_WASM_STREAMING_DECODER_H_ #define V8_WASM_STREAMING_DECODER_H_
#include <memory>
#include <vector> #include <vector>
#include "src/isolate.h"
#include "src/wasm/module-decoder.h" #include "src/base/macros.h"
#include "src/wasm/wasm-objects.h" #include "src/vector.h"
#include "src/wasm/wasm-constants.h"
#include "src/wasm/wasm-result.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
template <typename T>
class Handle;
class WasmModuleObject;
namespace wasm { namespace wasm {
// This class is an interface for the StreamingDecoder to start the processing // This class is an interface for the StreamingDecoder to start the processing
...@@ -46,7 +54,7 @@ class V8_EXPORT_PRIVATE StreamingProcessor { ...@@ -46,7 +54,7 @@ class V8_EXPORT_PRIVATE StreamingProcessor {
// empty array is passed. // empty array is passed.
virtual void OnFinishedStream(OwnedVector<uint8_t> bytes) = 0; virtual void OnFinishedStream(OwnedVector<uint8_t> bytes) = 0;
// Report an error detected in the StreamingDecoder. // Report an error detected in the StreamingDecoder.
virtual void OnError(DecodeResult result) = 0; virtual void OnError(VoidResult result) = 0;
// Report the abortion of the stream. // Report the abortion of the stream.
virtual void OnAbort() = 0; virtual void OnAbort() = 0;
...@@ -217,14 +225,14 @@ class V8_EXPORT_PRIVATE StreamingDecoder { ...@@ -217,14 +225,14 @@ class V8_EXPORT_PRIVATE StreamingDecoder {
return section_buffers_.back().get(); return section_buffers_.back().get();
} }
std::unique_ptr<DecodingState> Error(DecodeResult result) { std::unique_ptr<DecodingState> Error(VoidResult result) {
if (ok_) processor_->OnError(std::move(result)); if (ok_) processor_->OnError(std::move(result));
ok_ = false; ok_ = false;
return std::unique_ptr<DecodingState>(nullptr); return std::unique_ptr<DecodingState>(nullptr);
} }
std::unique_ptr<DecodingState> Error(std::string message) { std::unique_ptr<DecodingState> Error(std::string message) {
return Error(DecodeResult::Error(module_offset_ - 1, std::move(message))); return Error(VoidResult::Error(module_offset_ - 1, std::move(message)));
} }
void ProcessModuleHeader() { void ProcessModuleHeader() {
......
...@@ -12,12 +12,13 @@ ...@@ -12,12 +12,13 @@
#include "src/utils.h" #include "src/utils.h"
#include "src/globals.h" #include "src/globals.h"
#include "src/handles.h"
namespace v8 { namespace v8 {
namespace internal { namespace internal {
class Isolate; class Isolate;
template <typename T>
class Handle;
namespace wasm { namespace wasm {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment