| Index: src/compiler/access-info.cc
|
| diff --git a/src/compiler/access-info.cc b/src/compiler/access-info.cc
|
| index 1603804d8e8f1d65d001f1839524dcfcd3ef90ea..ea93ed1ecb32c83369a9fd2f88fe75e13b5ddd9a 100644
|
| --- a/src/compiler/access-info.cc
|
| +++ b/src/compiler/access-info.cc
|
| @@ -28,8 +28,7 @@ bool CanInlineElementAccess(Handle<Map> map) {
|
|
|
|
|
| bool CanInlinePropertyAccess(Handle<Map> map) {
|
| - // TODO(bmeurer): Add support for Number primitives.
|
| - // if (map->instance_type() == HEAP_NUMBER_TYPE) return false;
|
| + if (map->instance_type() == HEAP_NUMBER_TYPE) return true;
|
| if (map->instance_type() < FIRST_NONSTRING_TYPE) return true;
|
| return map->IsJSObjectMap() && !map->is_dictionary_map() &&
|
| !map->has_named_interceptor() &&
|
|
|