Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index c8ad03057c47a55f1658ecc024867c09d52865ce..7a97e4ea7aff111f3688719beb027be987649a7b 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -2182,7 +2182,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetCode) { |
Handle<JSFunction> fun = Handle<JSFunction>::cast(code); |
Handle<SharedFunctionInfo> shared(fun->shared()); |
- if (!SharedFunctionInfo::EnsureCompiled(shared, KEEP_EXCEPTION)) { |
+ if (!JSFunction::CompileLazy(fun, KEEP_EXCEPTION)) { |
return Failure::Exception(); |
} |
// Since we don't store the source for this we should never |
@@ -12504,7 +12504,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugDisassembleFunction) { |
// Get the function and make sure it is compiled. |
CONVERT_ARG_HANDLE_CHECKED(JSFunction, func, 0); |
Handle<SharedFunctionInfo> shared(func->shared()); |
Michael Starzinger
2012/06/05 12:07:41
The shared function is no longer needed, just drop
ulan
2012/06/05 13:14:16
Done.
|
- if (!SharedFunctionInfo::EnsureCompiled(shared, KEEP_EXCEPTION)) { |
+ if (!JSFunction::CompileLazy(func, KEEP_EXCEPTION)) { |
return Failure::Exception(); |
} |
func->code()->PrintLn(); |
@@ -12520,7 +12520,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugDisassembleConstructor) { |
// Get the function and make sure it is compiled. |
CONVERT_ARG_HANDLE_CHECKED(JSFunction, func, 0); |
Handle<SharedFunctionInfo> shared(func->shared()); |
Michael Starzinger
2012/06/05 12:07:41
Likewise.
ulan
2012/06/05 13:14:16
Done.
|
- if (!SharedFunctionInfo::EnsureCompiled(shared, KEEP_EXCEPTION)) { |
+ if (!JSFunction::CompileLazy(func, KEEP_EXCEPTION)) { |
return Failure::Exception(); |
} |
shared->construct_stub()->PrintLn(); |
Michael Starzinger
2012/06/05 12:07:41
Just inline the func->shared() here.
ulan
2012/06/05 13:14:16
Done.
|