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

Unified Diff: src/signature.h

Issue 2094563002: [wasm] Complete separation of compilation and instantiation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Incorporated Feedback Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects-inl.h ('k') | src/wasm/wasm-js.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/signature.h
diff --git a/src/signature.h b/src/signature.h
index 076d17a7e2ddb7c16e87780c41d6157761ae1567..3fa5f8290f285586bbfda1fd391e25bcadb8d52e 100644
--- a/src/signature.h
+++ b/src/signature.h
@@ -14,7 +14,7 @@ namespace internal {
template <typename T>
class Signature : public ZoneObject {
public:
- Signature(size_t return_count, size_t parameter_count, T* reps)
+ Signature(size_t return_count, size_t parameter_count, const T* reps)
: return_count_(return_count),
parameter_count_(parameter_count),
reps_(reps) {}
@@ -32,6 +32,8 @@ class Signature : public ZoneObject {
return reps_[index];
}
+ const T* raw_data() const { return reps_; }
+
// For incrementally building signatures.
class Builder {
public:
@@ -71,7 +73,7 @@ class Signature : public ZoneObject {
protected:
size_t return_count_;
size_t parameter_count_;
- T* reps_;
+ const T* reps_;
};
} // namespace internal
« no previous file with comments | « src/objects-inl.h ('k') | src/wasm/wasm-js.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698