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

Unified Diff: src/builtins.cc

Issue 1858773004: Revert of Correctly annotate eval origin. (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/api.cc ('k') | src/compiler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins.cc
diff --git a/src/builtins.cc b/src/builtins.cc
index a224f9c694afb575cad05071aa257b15db51c1bb..347b428d5c250d00d8d3f3f096fdb84d42926536 100644
--- a/src/builtins.cc
+++ b/src/builtins.cc
@@ -2055,12 +2055,11 @@
}
// Compile source string in the native context.
- StackTraceFrameIterator it(isolate);
- FrameSummary summary = FrameSummary::GetFirst(it.frame());
- Handle<SharedFunctionInfo> outer_info(summary.function()->shared());
- int pos = summary.abstract_code()->SourcePosition(summary.code_offset());
+ Handle<SharedFunctionInfo> outer_info(native_context->closure()->shared(),
+ isolate);
return Compiler::GetFunctionFromEval(source, outer_info, native_context,
- SLOPPY, restriction, pos);
+ SLOPPY, restriction,
+ RelocInfo::kNoPosition);
}
} // namespace
« no previous file with comments | « src/api.cc ('k') | src/compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698