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

Unified Diff: src/compiler.h

Issue 3557007: Add assert to make sure that function refers to compiled code in handles.cc (Closed)
Patch Set: Created 10 years, 2 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 | src/handles.cc » ('j') | src/handles.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.h
diff --git a/src/compiler.h b/src/compiler.h
index d8eb3a68f408537ca200717c8bb5f5e83b5268cc..4e4e61300d819e0395f95238a549d073a1dde61a 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -132,6 +132,10 @@ class LazyFunctionCompilationInfo: public CompilationInfo {
return Handle<SharedFunctionInfo>(closure_->shared());
}
+ virtual Handle<JSFunction> closure() const {
+ return closure_;
+ }
+
virtual int loop_nesting() const { return loop_nesting_; }
virtual bool has_global_object() const {
« no previous file with comments | « no previous file | src/handles.cc » ('j') | src/handles.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698