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

Unified Diff: src/compiler/wasm-compiler.cc

Issue 2725333002: [wasm] Also unwrap exported debugged functions (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | src/wasm/wasm-module.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/wasm-compiler.cc
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
index 92f389261bdd822118fd1df271a2932dd1011ab7..b14e0844fc413a402e43e19f7ffb894e8dcc7469 100644
--- a/src/compiler/wasm-compiler.cc
+++ b/src/compiler/wasm-compiler.cc
@@ -2740,23 +2740,21 @@ Node* WasmGraphBuilder::BuildHeapNumberValueIndexConstant() {
return jsgraph()->IntPtrConstant(HeapNumber::kValueOffset - kHeapObjectTag);
}
+namespace {
bool IsJSCompatible(wasm::ValueType type) {
- return (type != wasm::kWasmI64) && (type != wasm::kWasmS128);
+ return type != wasm::kWasmI64 && type != wasm::kWasmS128;
}
bool HasJSCompatibleSignature(wasm::FunctionSig* sig) {
for (size_t i = 0; i < sig->parameter_count(); i++) {
- if (!IsJSCompatible(sig->GetParam(i))) {
- return false;
- }
+ if (!IsJSCompatible(sig->GetParam(i))) return false;
}
for (size_t i = 0; i < sig->return_count(); i++) {
- if (!IsJSCompatible(sig->GetReturn(i))) {
- return false;
- }
+ if (!IsJSCompatible(sig->GetReturn(i))) return false;
}
return true;
}
+} // namespace
void WasmGraphBuilder::BuildJSToWasmWrapper(Handle<Code> wasm_code,
wasm::FunctionSig* sig) {
« no previous file with comments | « no previous file | src/wasm/wasm-module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698