| Index: src/hydrogen.h
|
| diff --git a/src/hydrogen.h b/src/hydrogen.h
|
| index a49fef72007013a745049b5e387daad99e724684..bb9366739042fa975d0d96b0f21fbb439e1837ae 100644
|
| --- a/src/hydrogen.h
|
| +++ b/src/hydrogen.h
|
| @@ -2466,23 +2466,7 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor {
|
| // PropertyAccessInfo is built for types->first().
|
| bool CanAccessAsMonomorphic(SmallMapList* types);
|
|
|
| - Handle<Map> map() {
|
| - if (type_->Is(Type::Number())) {
|
| - Context* context = current_info()->closure()->context();
|
| - context = context->native_context();
|
| - return handle(context->number_function()->initial_map());
|
| - } else if (type_->Is(Type::Boolean())) {
|
| - Context* context = current_info()->closure()->context();
|
| - context = context->native_context();
|
| - return handle(context->boolean_function()->initial_map());
|
| - } else if (type_->Is(Type::String())) {
|
| - Context* context = current_info()->closure()->context();
|
| - context = context->native_context();
|
| - return handle(context->string_function()->initial_map());
|
| - } else {
|
| - return type_->AsClass()->Map();
|
| - }
|
| - }
|
| + Handle<Map> map();
|
| Type* type() const { return type_; }
|
| Handle<String> name() const { return name_; }
|
|
|
|
|