Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Unified Diff: src/compiler.cc

Issue 1868553003: [compiler] Simplify GetLazyCode for asm functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-compiler-simplify-1
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 27cabfd259b405cdfa84d506442ec04f16401c15..082d4cd9e4065ea629148106a6b200de02ad296f 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -1099,20 +1099,11 @@ MaybeHandle<Code> GetLazyCode(Handle<JSFunction> function) {
if (FLAG_turbo_asm && function->shared()->asm_function() &&
(FLAG_turbo_asm_deoptimization || !isolate->debug()->is_active()) &&
!FLAG_turbo_osr) {
- CompilationInfoWithZone info(function);
-
- VMState<COMPILER> state(isolate);
- PostponeInterruptsScope postpone(isolate);
-
- info.SetOptimizing();
-
- if (GetOptimizedCodeNow(&info)) {
+ Handle<Code> code;
+ if (GetOptimizedCode(function, Compiler::NOT_CONCURRENT).ToHandle(&code)) {
DCHECK(function->shared()->is_compiled());
- return info.code();
+ return code;
}
- // We have failed compilation. If there was an exception clear it so that
- // we can compile unoptimized code.
- if (isolate->has_pending_exception()) isolate->clear_pending_exception();
}
if (function->shared()->is_compiled()) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698