| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <ostream> | 5 #include <ostream> |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/compilation-dependencies.h" | 8 #include "src/compilation-dependencies.h" |
| 9 #include "src/compiler/access-info.h" | 9 #include "src/compiler/access-info.h" |
| 10 #include "src/field-index-inl.h" | 10 #include "src/field-index-inl.h" |
| 11 #include "src/objects-inl.h" // TODO(mstarzinger): Temporary cycle breaker! | 11 #include "src/objects-inl.h" // TODO(mstarzinger): Temporary cycle breaker! |
| 12 #include "src/type-cache.h" | 12 #include "src/type-cache.h" |
| 13 #include "src/types-inl.h" | |
| 14 | 13 |
| 15 namespace v8 { | 14 namespace v8 { |
| 16 namespace internal { | 15 namespace internal { |
| 17 namespace compiler { | 16 namespace compiler { |
| 18 | 17 |
| 19 namespace { | 18 namespace { |
| 20 | 19 |
| 21 bool CanInlineElementAccess(Handle<Map> map) { | 20 bool CanInlineElementAccess(Handle<Map> map) { |
| 22 if (!map->IsJSObjectMap()) return false; | 21 if (!map->IsJSObjectMap()) return false; |
| 23 if (map->is_access_check_needed()) return false; | 22 if (map->is_access_check_needed()) return false; |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 } | 474 } |
| 476 return false; | 475 return false; |
| 477 } | 476 } |
| 478 | 477 |
| 479 | 478 |
| 480 Factory* AccessInfoFactory::factory() const { return isolate()->factory(); } | 479 Factory* AccessInfoFactory::factory() const { return isolate()->factory(); } |
| 481 | 480 |
| 482 } // namespace compiler | 481 } // namespace compiler |
| 483 } // namespace internal | 482 } // namespace internal |
| 484 } // namespace v8 | 483 } // namespace v8 |
| OLD | NEW |