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

Unified Diff: src/compiler/c-linkage.cc

Issue 2202433003: [wasm] Use a LazyInstance in wasm-linkage.cc to avoid a data race. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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/compiler/wasm-linkage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/c-linkage.cc
diff --git a/src/compiler/c-linkage.cc b/src/compiler/c-linkage.cc
index 7d05a8d42973bf68149415928ede0b6fb2dd0c13..f79497a6e1c258ebe080f72ce077a75123bcd7aa 100644
--- a/src/compiler/c-linkage.cc
+++ b/src/compiler/c-linkage.cc
@@ -191,12 +191,11 @@ CallDescriptor* Linkage::GetSimplifiedCDescriptor(
const int parameter_count = static_cast<int>(msig->parameter_count());
#ifdef PARAM_REGISTERS
- static const Register kParamRegisters[] = {PARAM_REGISTERS};
- static const int kParamRegisterCount =
- static_cast<int>(arraysize(kParamRegisters));
+ const Register kParamRegisters[] = {PARAM_REGISTERS};
+ const int kParamRegisterCount = static_cast<int>(arraysize(kParamRegisters));
#else
- static const Register* kParamRegisters = nullptr;
- static const int kParamRegisterCount = 0;
+ const Register* kParamRegisters = nullptr;
+ const int kParamRegisterCount = 0;
#endif
#ifdef STACK_SHADOW_WORDS
« no previous file with comments | « no previous file | src/compiler/wasm-linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698