| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index 8dbe46490318ed6c0f68452383824fd88e9e9245..f2428bf50764be8d017fb11c5bbe81920bbb30af 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -35,6 +35,7 @@
|
| #include "src/hydrogen-store-elimination.h"
|
| #include "src/hydrogen-uint32-analysis.h"
|
| #include "src/ic/call-optimization.h"
|
| +#include "src/ic/ic.h"
|
| // GetRootConstructor
|
| #include "src/ic/ic-inl.h"
|
| #include "src/lithium-allocator.h"
|
| @@ -4510,6 +4511,11 @@ void HOptimizedGraphBuilder::SetUpScope(Scope* scope) {
|
| }
|
|
|
|
|
| +Type* HOptimizedGraphBuilder::ToType(Handle<Map> map) {
|
| + return IC::MapToType<Type>(map, zone());
|
| +}
|
| +
|
| +
|
| void HOptimizedGraphBuilder::VisitStatements(ZoneList<Statement*>* statements) {
|
| for (int i = 0; i < statements->length(); i++) {
|
| Statement* stmt = statements->at(i);
|
| @@ -6393,8 +6399,8 @@ static bool ComputeReceiverTypes(Expression* expr,
|
| types->FilterForPossibleTransitions(root_map);
|
| monomorphic = types->length() == 1;
|
| }
|
| - return monomorphic && CanInlinePropertyAccess(
|
| - IC::MapToType<Type>(types->first(), zone));
|
| + return monomorphic &&
|
| + CanInlinePropertyAccess(IC::MapToType<Type>(types->first(), zone));
|
| }
|
|
|
|
|
|
|