| 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/compiler/type-cache.h" |
| 10 #include "src/field-index-inl.h" | 11 #include "src/field-index-inl.h" |
| 11 #include "src/field-type.h" | 12 #include "src/field-type.h" |
| 12 #include "src/objects-inl.h" | 13 #include "src/objects-inl.h" |
| 13 #include "src/type-cache.h" | |
| 14 | 14 |
| 15 namespace v8 { | 15 namespace v8 { |
| 16 namespace internal { | 16 namespace internal { |
| 17 namespace compiler { | 17 namespace compiler { |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 bool CanInlineElementAccess(Handle<Map> map) { | 21 bool CanInlineElementAccess(Handle<Map> map) { |
| 22 if (!map->IsJSObjectMap()) return false; | 22 if (!map->IsJSObjectMap()) return false; |
| 23 if (map->is_access_check_needed()) return false; | 23 if (map->is_access_check_needed()) return false; |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 } | 499 } |
| 500 return false; | 500 return false; |
| 501 } | 501 } |
| 502 | 502 |
| 503 | 503 |
| 504 Factory* AccessInfoFactory::factory() const { return isolate()->factory(); } | 504 Factory* AccessInfoFactory::factory() const { return isolate()->factory(); } |
| 505 | 505 |
| 506 } // namespace compiler | 506 } // namespace compiler |
| 507 } // namespace internal | 507 } // namespace internal |
| 508 } // namespace v8 | 508 } // namespace v8 |
| OLD | NEW |