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

Unified Diff: src/top.h

Issue 11563: Fixing the detection of aliased eval so that it is exact.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years, 1 month 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/runtime.cc ('k') | src/top.cc » ('j') | test/cctest/test-api.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/top.h
===================================================================
--- src/top.h (revision 805)
+++ src/top.h (working copy)
@@ -67,6 +67,10 @@
// Call back function to report unsafe JS accesses.
v8::FailedAccessCheckCallback failed_access_check_callback_;
+
+ // Flag for whether we are currently in a call that the static analysis
+ // marked as a potentially direct eval.
+ bool in_potentially_direct_eval_;
};
#define TOP_ADDRESS_LIST(C) \
@@ -165,6 +169,14 @@
}
static inline Address* handler_address() { return &thread_local_.handler_; }
+ static inline void set_in_potentially_direct_eval(bool b) {
+ thread_local_.in_potentially_direct_eval_ = b;
+ }
+
+ static inline bool is_in_potentially_direct_eval() {
+ return thread_local_.in_potentially_direct_eval_;
+ }
+
// Generated code scratch locations.
static void* formal_count_address() { return &thread_local_.formal_count_; }
« no previous file with comments | « src/runtime.cc ('k') | src/top.cc » ('j') | test/cctest/test-api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698