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

Unified Diff: src/parsing/parser.h

Issue 1490783002: [bootstrapper] add checks for variable bindings in native scripts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/js/date.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser.h
diff --git a/src/parsing/parser.h b/src/parsing/parser.h
index 1ff58572f3f266f9f0b1c17901ca680da33c9152..73b1277260b40d89b5abcd9412b159211b226a87 100644
--- a/src/parsing/parser.h
+++ b/src/parsing/parser.h
@@ -151,6 +151,10 @@ class ParseInfo {
context_ = Handle<Context>(*context_);
}
+#ifdef DEBUG
+ bool script_is_native() { return script_->type() == Script::TYPE_NATIVE; }
+#endif // DEBUG
+
private:
// Various configuration flags for parsing.
enum Flag {
« no previous file with comments | « src/js/date.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698