| 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_; }
|
|
|
|
|