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

Unified Diff: src/contexts-inl.h

Issue 2435023002: Use a different map to distinguish eval contexts (Closed)
Patch Set: Changes from review Created 4 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/contexts.cc ('k') | src/crankshaft/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/contexts-inl.h
diff --git a/src/contexts-inl.h b/src/contexts-inl.h
index cdcb7cf4aa26ccab94fb1e72a3cec6848bc85b67..a51b31257db21b5a6378ad9013ace4c6b46364c8 100644
--- a/src/contexts-inl.h
+++ b/src/contexts-inl.h
@@ -118,6 +118,10 @@ bool Context::IsModuleContext() {
return map == map->GetHeap()->module_context_map();
}
+bool Context::IsEvalContext() {
+ Map* map = this->map();
+ return map == map->GetHeap()->eval_context_map();
+}
bool Context::IsScriptContext() {
Map* map = this->map();
« no previous file with comments | « src/contexts.cc ('k') | src/crankshaft/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698