OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #ifndef V8_HYDROGEN_H_ | 5 #ifndef V8_HYDROGEN_H_ |
6 #define V8_HYDROGEN_H_ | 6 #define V8_HYDROGEN_H_ |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
(...skipping 2500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2511 Handle<JSObject> holder() { return holder_; } | 2511 Handle<JSObject> holder() { return holder_; } |
2512 Handle<JSFunction> accessor() { return accessor_; } | 2512 Handle<JSFunction> accessor() { return accessor_; } |
2513 Handle<Object> constant() { return constant_; } | 2513 Handle<Object> constant() { return constant_; } |
2514 Handle<Map> transition() { return handle(lookup_.GetTransitionTarget()); } | 2514 Handle<Map> transition() { return handle(lookup_.GetTransitionTarget()); } |
2515 SmallMapList* field_maps() { return &field_maps_; } | 2515 SmallMapList* field_maps() { return &field_maps_; } |
2516 HType field_type() const { return field_type_; } | 2516 HType field_type() const { return field_type_; } |
2517 HObjectAccess access() { return access_; } | 2517 HObjectAccess access() { return access_; } |
2518 | 2518 |
2519 bool IsFound() const { return lookup_.IsFound(); } | 2519 bool IsFound() const { return lookup_.IsFound(); } |
2520 bool IsProperty() const { return lookup_.IsProperty(); } | 2520 bool IsProperty() const { return lookup_.IsProperty(); } |
2521 bool IsField() const { return lookup_.IsField(); } | 2521 bool IsDataField() const { return lookup_.IsDataField(); } |
2522 bool IsConstant() const { return lookup_.IsConstant(); } | 2522 bool IsDataConstant() const { return lookup_.IsDataConstant(); } |
2523 bool IsAccessor() const { return lookup_.IsPropertyCallbacks(); } | 2523 bool IsAccessorConstant() const { return lookup_.IsAccessorConstant(); } |
2524 bool IsTransition() const { return lookup_.IsTransition(); } | 2524 bool IsTransition() const { return lookup_.IsTransition(); } |
2525 | 2525 |
2526 bool IsConfigurable() const { return lookup_.IsConfigurable(); } | 2526 bool IsConfigurable() const { return lookup_.IsConfigurable(); } |
2527 bool IsReadOnly() const { return lookup_.IsReadOnly(); } | 2527 bool IsReadOnly() const { return lookup_.IsReadOnly(); } |
2528 | 2528 |
2529 private: | 2529 private: |
2530 Handle<Object> GetAccessorsFromMap(Handle<Map> map) const { | 2530 Handle<Object> GetAccessorsFromMap(Handle<Map> map) const { |
2531 return handle(lookup_.GetValueFromMap(*map), isolate()); | 2531 return handle(lookup_.GetValueFromMap(*map), isolate()); |
2532 } | 2532 } |
2533 Handle<Object> GetConstantFromMap(Handle<Map> map) const { | 2533 Handle<Object> GetConstantFromMap(Handle<Map> map) const { |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2942 } | 2942 } |
2943 | 2943 |
2944 private: | 2944 private: |
2945 HGraphBuilder* builder_; | 2945 HGraphBuilder* builder_; |
2946 }; | 2946 }; |
2947 | 2947 |
2948 | 2948 |
2949 } } // namespace v8::internal | 2949 } } // namespace v8::internal |
2950 | 2950 |
2951 #endif // V8_HYDROGEN_H_ | 2951 #endif // V8_HYDROGEN_H_ |
OLD | NEW |