| 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 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 975 protected: | 975 protected: |
| 976 virtual bool BuildGraph() = 0; | 976 virtual bool BuildGraph() = 0; |
| 977 | 977 |
| 978 HBasicBlock* CreateBasicBlock(HEnvironment* env); | 978 HBasicBlock* CreateBasicBlock(HEnvironment* env); |
| 979 HBasicBlock* CreateLoopHeaderBlock(); | 979 HBasicBlock* CreateLoopHeaderBlock(); |
| 980 | 980 |
| 981 HValue* BuildCheckNonSmi(HValue* object); | 981 HValue* BuildCheckNonSmi(HValue* object); |
| 982 HValue* BuildCheckMap(HValue* obj, Handle<Map> map); | 982 HValue* BuildCheckMap(HValue* obj, Handle<Map> map); |
| 983 | 983 |
| 984 // Building common constructs | 984 // Building common constructs |
| 985 HLoadNamedField* DoBuildLoadNamedField(HValue* object, | |
| 986 bool inobject, | |
| 987 Representation representation, | |
| 988 int offset); | |
| 989 | |
| 990 HInstruction* BuildExternalArrayElementAccess( | 985 HInstruction* BuildExternalArrayElementAccess( |
| 991 HValue* external_elements, | 986 HValue* external_elements, |
| 992 HValue* checked_key, | 987 HValue* checked_key, |
| 993 HValue* val, | 988 HValue* val, |
| 994 HValue* dependency, | 989 HValue* dependency, |
| 995 ElementsKind elements_kind, | 990 ElementsKind elements_kind, |
| 996 bool is_store); | 991 bool is_store); |
| 997 | 992 |
| 998 HInstruction* BuildFastElementAccess( | 993 HInstruction* BuildFastElementAccess( |
| 999 HValue* elements, | 994 HValue* elements, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 1020 HValue* object, | 1015 HValue* object, |
| 1021 HValue* key, | 1016 HValue* key, |
| 1022 HValue* val, | 1017 HValue* val, |
| 1023 HCheckMaps* mapcheck, | 1018 HCheckMaps* mapcheck, |
| 1024 bool is_js_array, | 1019 bool is_js_array, |
| 1025 ElementsKind elements_kind, | 1020 ElementsKind elements_kind, |
| 1026 bool is_store, | 1021 bool is_store, |
| 1027 KeyedAccessStoreMode store_mode, | 1022 KeyedAccessStoreMode store_mode, |
| 1028 Representation checked_index_representation = Representation::None()); | 1023 Representation checked_index_representation = Representation::None()); |
| 1029 | 1024 |
| 1030 HInstruction* BuildStoreMap(HValue* object, HValue* map); | 1025 HLoadNamedField* AddLoad( |
| 1031 HInstruction* BuildStoreMap(HValue* object, Handle<Map> map); | 1026 HValue *object, |
| 1027 HObjectAccess access, |
| 1028 HValue *typecheck = NULL, |
| 1029 Representation representation = Representation::Tagged()); |
| 1030 |
| 1031 HLoadNamedField* BuildLoadNamedField( |
| 1032 HValue* object, |
| 1033 HObjectAccess access, |
| 1034 Representation representation); |
| 1035 |
| 1036 HStoreNamedField* AddStore( |
| 1037 HValue *object, |
| 1038 HObjectAccess access, |
| 1039 HValue *val, |
| 1040 Representation representation = Representation::Tagged()); |
| 1041 |
| 1042 HStoreNamedField* AddStoreMapConstant(HValue *object, Handle<Map>); |
| 1032 | 1043 |
| 1033 HLoadNamedField* AddLoadElements(HValue *object, HValue *typecheck = NULL); | 1044 HLoadNamedField* AddLoadElements(HValue *object, HValue *typecheck = NULL); |
| 1034 | 1045 |
| 1035 class IfBuilder { | 1046 class IfBuilder { |
| 1036 public: | 1047 public: |
| 1037 explicit IfBuilder(HGraphBuilder* builder, | 1048 explicit IfBuilder(HGraphBuilder* builder, |
| 1038 int position = RelocInfo::kNoPosition); | 1049 int position = RelocInfo::kNoPosition); |
| 1039 IfBuilder(HGraphBuilder* builder, | 1050 IfBuilder(HGraphBuilder* builder, |
| 1040 HIfContinuation* continuation); | 1051 HIfContinuation* continuation); |
| 1041 | 1052 |
| (...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1673 | 1684 |
| 1674 HValue* HandleKeyedElementAccess(HValue* obj, | 1685 HValue* HandleKeyedElementAccess(HValue* obj, |
| 1675 HValue* key, | 1686 HValue* key, |
| 1676 HValue* val, | 1687 HValue* val, |
| 1677 Expression* expr, | 1688 Expression* expr, |
| 1678 BailoutId ast_id, | 1689 BailoutId ast_id, |
| 1679 int position, | 1690 int position, |
| 1680 bool is_store, | 1691 bool is_store, |
| 1681 bool* has_side_effects); | 1692 bool* has_side_effects); |
| 1682 | 1693 |
| 1683 HLoadNamedField* BuildLoadNamedField(HValue* object, | |
| 1684 Handle<Map> map, | |
| 1685 LookupResult* result); | |
| 1686 HInstruction* BuildLoadNamedGeneric(HValue* object, | 1694 HInstruction* BuildLoadNamedGeneric(HValue* object, |
| 1687 Handle<String> name, | 1695 Handle<String> name, |
| 1688 Property* expr); | 1696 Property* expr); |
| 1689 HInstruction* BuildCallGetter(HValue* object, | 1697 HInstruction* BuildCallGetter(HValue* object, |
| 1690 Handle<Map> map, | 1698 Handle<Map> map, |
| 1691 Handle<JSFunction> getter, | 1699 Handle<JSFunction> getter, |
| 1692 Handle<JSObject> holder); | 1700 Handle<JSObject> holder); |
| 1693 HInstruction* BuildLoadNamedMonomorphic(HValue* object, | 1701 HInstruction* BuildLoadNamedMonomorphic(HValue* object, |
| 1694 Handle<String> name, | 1702 Handle<String> name, |
| 1695 Property* expr, | 1703 Property* expr, |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2013 EmbeddedVector<char, 64> filename_; | 2021 EmbeddedVector<char, 64> filename_; |
| 2014 HeapStringAllocator string_allocator_; | 2022 HeapStringAllocator string_allocator_; |
| 2015 StringStream trace_; | 2023 StringStream trace_; |
| 2016 int indent_; | 2024 int indent_; |
| 2017 }; | 2025 }; |
| 2018 | 2026 |
| 2019 | 2027 |
| 2020 } } // namespace v8::internal | 2028 } } // namespace v8::internal |
| 2021 | 2029 |
| 2022 #endif // V8_HYDROGEN_H_ | 2030 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |