OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1975 bool IsStringLength() { | 1975 bool IsStringLength() { |
1976 return map_->instance_type() < FIRST_NONSTRING_TYPE && | 1976 return map_->instance_type() < FIRST_NONSTRING_TYPE && |
1977 name_->Equals(isolate()->heap()->length_string()); | 1977 name_->Equals(isolate()->heap()->length_string()); |
1978 } | 1978 } |
1979 | 1979 |
1980 bool IsArrayLength() { | 1980 bool IsArrayLength() { |
1981 return map_->instance_type() == JS_ARRAY_TYPE && | 1981 return map_->instance_type() == JS_ARRAY_TYPE && |
1982 name_->Equals(isolate()->heap()->length_string()); | 1982 name_->Equals(isolate()->heap()->length_string()); |
1983 } | 1983 } |
1984 | 1984 |
| 1985 bool IsTypedArrayLength() { |
| 1986 return map_->instance_type() == JS_TYPED_ARRAY_TYPE && |
| 1987 name_->Equals(isolate()->heap()->length_string()); |
| 1988 } |
| 1989 |
1985 bool has_holder() { return !holder_.is_null(); } | 1990 bool has_holder() { return !holder_.is_null(); } |
1986 | 1991 |
1987 LookupResult* lookup() { return &lookup_; } | 1992 LookupResult* lookup() { return &lookup_; } |
1988 Handle<Map> map() { return map_; } | 1993 Handle<Map> map() { return map_; } |
1989 Handle<JSObject> holder() { return holder_; } | 1994 Handle<JSObject> holder() { return holder_; } |
1990 Handle<JSFunction> accessor() { return accessor_; } | 1995 Handle<JSFunction> accessor() { return accessor_; } |
1991 Handle<Object> constant() { return constant_; } | 1996 Handle<Object> constant() { return constant_; } |
1992 HObjectAccess access() { return access_; } | 1997 HObjectAccess access() { return access_; } |
1993 | 1998 |
1994 private: | 1999 private: |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2365 } | 2370 } |
2366 | 2371 |
2367 private: | 2372 private: |
2368 HGraphBuilder* builder_; | 2373 HGraphBuilder* builder_; |
2369 }; | 2374 }; |
2370 | 2375 |
2371 | 2376 |
2372 } } // namespace v8::internal | 2377 } } // namespace v8::internal |
2373 | 2378 |
2374 #endif // V8_HYDROGEN_H_ | 2379 #endif // V8_HYDROGEN_H_ |
OLD | NEW |