Index: src/frames.cc |
diff --git a/src/frames.cc b/src/frames.cc |
index 0571a813f5e56b45922ac6ee3a76dc78940749ad..591128441f6d7104fbafaf813ffaab533e434199 100644 |
--- a/src/frames.cc |
+++ b/src/frames.cc |
@@ -1369,24 +1369,23 @@ int NumRegs(RegList reglist) { |
struct JSCallerSavedCodeData { |
- JSCallerSavedCodeData() { |
- int i = 0; |
- for (int r = 0; r < kNumRegs; r++) |
- if ((kJSCallerSaved & (1 << r)) != 0) |
- reg_code[i++] = r; |
- |
- ASSERT(i == kNumJSCallerSaved); |
- } |
int reg_code[kNumJSCallerSaved]; |
}; |
+JSCallerSavedCodeData caller_saved_code_data; |
-static LazyInstance<JSCallerSavedCodeData>::type caller_saved_code_data = |
- LAZY_INSTANCE_INITIALIZER; |
+void SetUpJSCallerSavedCodeData() { |
+ int i = 0; |
+ for (int r = 0; r < kNumRegs; r++) |
+ if ((kJSCallerSaved & (1 << r)) != 0) |
+ caller_saved_code_data.reg_code[i++] = r; |
+ |
+ ASSERT(i == kNumJSCallerSaved); |
+} |
int JSCallerSavedCode(int n) { |
ASSERT(0 <= n && n < kNumJSCallerSaved); |
- return caller_saved_code_data.Get().reg_code[n]; |
+ return caller_saved_code_data.reg_code[n]; |
} |