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

Unified Diff: src/compiler.cc

Issue 1903463002: Make global eval faster by lazily computing its call position. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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 | « src/builtins.cc ('k') | src/objects.h » ('j') | 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 da4ab78eb6eaf6caa5a8c94dca7fefdc8dc4ecd2..3bda70cdc68d36c5e1c4d9c6bd1d0c4ea5e5250c 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -1260,8 +1260,7 @@ MaybeHandle<JSFunction> Compiler::GetFunctionFromEval(
}
script->set_origin_options(options);
script->set_compilation_type(Script::COMPILATION_TYPE_EVAL);
- script->set_eval_from_shared(*outer_info);
- script->set_eval_from_position(eval_position);
+ Script::SetEvalOrigin(script, outer_info, eval_position);
Zone zone(isolate->allocator());
ParseInfo parse_info(&zone, script);
« no previous file with comments | « src/builtins.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698