Index: src/frames.cc |
diff --git a/src/frames.cc b/src/frames.cc |
index be537c96e92a8c3512135c38ea7f4f3dc71ef1c0..7780f01dc389f9fbc59d38cadb462d3f96562519 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" |
@@ -1380,12 +1381,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]; |
} |