Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 857339db66d947282e58d237c15ab07982620f91..6075a32eba37040895128ac67da27a5ab47f2cdc 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -8086,15 +8086,9 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_LazyCompile) { |
} |
#endif |
- // Compile the target function. Here we compile using CompileLazyInLoop in |
- // order to get the optimized version. This helps code like delta-blue |
- // that calls performance-critical routines through constructors. A |
- // constructor call doesn't use a CallIC, it uses a LoadIC followed by a |
- // direct call. Since the in-loop tracking takes place through CallICs |
- // this means that things called through constructors are never known to |
- // be in loops. We compile them as if they are in loops here just in case. |
+ // Compile the target function. |
ASSERT(!function->is_compiled()); |
- if (!CompileLazyInLoop(function, KEEP_EXCEPTION)) { |
+ if (!CompileLazy(function, KEEP_EXCEPTION)) { |
return Failure::Exception(); |
} |