Commit 49c01feb authored by Lu Yahan's avatar Lu Yahan Committed by V8 LUCI CQ

[cctest] Fix build failed when is_component_build is true

Bug: v8:12543

Change-Id: I6dc98dea4e713323c18666ecfff459cbd55d90d5
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3383514Reviewed-by: 's avatarMaya Lekova <mslekova@chromium.org>
Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Commit-Queue: Yahan Lu <yahan@iscas.ac.cn>
Cr-Commit-Position: refs/heads/main@{#78639}
parent 4155b5b6
......@@ -106,11 +106,6 @@ void SimulatorData::RegisterFunctionsAndSignatures(
}
}
void SimulatorData::AddSignatureForTarget(Address target,
const EncodedCSignature& signature) {
target_to_signature_table_[target] = signature;
}
const EncodedCSignature& SimulatorData::GetSignatureForTarget(Address target) {
base::MutexGuard guard(&signature_map_mutex_);
auto entry = target_to_signature_table_.find(target);
......
......@@ -222,7 +222,9 @@ class SimulatorData {
private:
void AddSignatureForTarget(Address target,
const EncodedCSignature& signature);
const EncodedCSignature& signature) {
target_to_signature_table_[target] = signature;
}
v8::base::Mutex signature_map_mutex_;
typedef std::unordered_map<Address, EncodedCSignature> TargetToSignatureTable;
......
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