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

Unified Diff: src/hydrogen.h

Issue 152603002: Return a valid map for PropertyAccessInfos with Boolean type. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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 | test/mjsunit/regress/regress-crbug-340064.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.h
diff --git a/src/hydrogen.h b/src/hydrogen.h
index 508912eff9988a8a2ac1a1e65cd6fb58372eda4d..a1676f7590d07ba4bad7ee794cdff0720e4135d9 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -2291,6 +2291,10 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor {
Context* context = current_info()->closure()->context();
context = context->native_context();
return handle(context->number_function()->initial_map());
+ } else if (type_->Is(HeapType::Boolean())) {
+ Context* context = current_info()->closure()->context();
+ context = context->native_context();
+ return handle(context->boolean_function()->initial_map());
} else if (type_->Is(HeapType::String())) {
Context* context = current_info()->closure()->context();
context = context->native_context();
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-340064.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698