| Index: src/wasm/encoder.h
|
| diff --git a/src/wasm/encoder.h b/src/wasm/encoder.h
|
| index e07021ded6324cbbbe4a19cea5761fac1f9513b7..7b651bf95eaf1874196f0af7b676fa7e2354006d 100644
|
| --- a/src/wasm/encoder.h
|
| +++ b/src/wasm/encoder.h
|
| @@ -47,7 +47,7 @@ class WasmFunctionEncoder : public ZoneObject {
|
| local_f64_count_) > 0;
|
| }
|
|
|
| - bool HasName() const { return exported_ && name_.size() > 0; }
|
| + bool HasName() const { return (exported_ || external_) && name_.size() > 0; }
|
| };
|
|
|
| class WasmFunctionBuilder : public ZoneObject {
|
| @@ -133,12 +133,12 @@ class WasmModuleBuilder : public ZoneObject {
|
| void AddIndirectFunction(uint16_t index);
|
| WasmModuleWriter* Build(Zone* zone);
|
|
|
| - private:
|
| struct CompareFunctionSigs {
|
| bool operator()(FunctionSig* a, FunctionSig* b) const;
|
| };
|
| typedef ZoneMap<FunctionSig*, uint16_t, CompareFunctionSigs> SignatureMap;
|
|
|
| + private:
|
| Zone* zone_;
|
| ZoneVector<FunctionSig*> signatures_;
|
| ZoneVector<WasmFunctionBuilder*> functions_;
|
|
|