Index: src/frames.cc |
diff --git a/src/frames.cc b/src/frames.cc |
index 40df12c437281bb6006c66af0e8a55871c14623d..8ff2d10da74f8f0fe5fe27004e68cdd4c35fbd87 100644 |
--- a/src/frames.cc |
+++ b/src/frames.cc |
@@ -31,6 +31,7 @@ |
#include "deoptimizer.h" |
#include "frames-inl.h" |
#include "full-codegen.h" |
+#include "lazy-instance.h" |
#include "mark-compact.h" |
#include "safepoint-table.h" |
#include "scopeinfo.h" |
@@ -1351,12 +1352,12 @@ struct JSCallerSavedCodeData { |
}; |
-static const JSCallerSavedCodeData kCallerSavedCodeData; |
- |
+static LazyInstance<JSCallerSavedCodeData>::type caller_saved_code_data = |
+ LAZY_INSTANCE_INITIALIZER; |
int JSCallerSavedCode(int n) { |
ASSERT(0 <= n && n < kNumJSCallerSaved); |
- return kCallerSavedCodeData.reg_code[n]; |
+ return caller_saved_code_data.Get().reg_code[n]; |
} |