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" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 } | 86 } |
87 | 87 |
88 // static | 88 // static |
89 PropertyAccessInfo PropertyAccessInfo::AccessorConstant( | 89 PropertyAccessInfo PropertyAccessInfo::AccessorConstant( |
90 MapList const& receiver_maps, Handle<Object> constant, | 90 MapList const& receiver_maps, Handle<Object> constant, |
91 MaybeHandle<JSObject> holder) { | 91 MaybeHandle<JSObject> holder) { |
92 return PropertyAccessInfo(kAccessorConstant, holder, constant, receiver_maps); | 92 return PropertyAccessInfo(kAccessorConstant, holder, constant, receiver_maps); |
93 } | 93 } |
94 | 94 |
95 PropertyAccessInfo::PropertyAccessInfo() | 95 PropertyAccessInfo::PropertyAccessInfo() |
96 : kind_(kInvalid), field_type_(Type::Any()) {} | 96 : kind_(kInvalid), field_type_(Type::None()) {} |
97 | 97 |
98 PropertyAccessInfo::PropertyAccessInfo(MaybeHandle<JSObject> holder, | 98 PropertyAccessInfo::PropertyAccessInfo(MaybeHandle<JSObject> holder, |
99 MapList const& receiver_maps) | 99 MapList const& receiver_maps) |
100 : kind_(kNotFound), | 100 : kind_(kNotFound), |
101 receiver_maps_(receiver_maps), | 101 receiver_maps_(receiver_maps), |
102 holder_(holder), | 102 holder_(holder), |
103 field_type_(Type::Any()) {} | 103 field_type_(Type::None()) {} |
104 | 104 |
105 PropertyAccessInfo::PropertyAccessInfo(Kind kind, MaybeHandle<JSObject> holder, | 105 PropertyAccessInfo::PropertyAccessInfo(Kind kind, MaybeHandle<JSObject> holder, |
106 Handle<Object> constant, | 106 Handle<Object> constant, |
107 MapList const& receiver_maps) | 107 MapList const& receiver_maps) |
108 : kind_(kind), | 108 : kind_(kind), |
109 receiver_maps_(receiver_maps), | 109 receiver_maps_(receiver_maps), |
110 constant_(constant), | 110 constant_(constant), |
111 holder_(holder), | 111 holder_(holder), |
112 field_type_(Type::Any()) {} | 112 field_type_(Type::Any()) {} |
113 | 113 |
(...skipping 385 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 |