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 945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
956 void Push(HValue* value) { environment()->Push(value); } | 956 void Push(HValue* value) { environment()->Push(value); } |
957 HValue* Pop() { return environment()->Pop(); } | 957 HValue* Pop() { return environment()->Pop(); } |
958 | 958 |
959 // Adding instructions. | 959 // Adding instructions. |
960 HInstruction* AddInstruction(HInstruction* instr); | 960 HInstruction* AddInstruction(HInstruction* instr); |
961 void AddSimulate(BailoutId id, | 961 void AddSimulate(BailoutId id, |
962 RemovableSimulate removable = FIXED_SIMULATE); | 962 RemovableSimulate removable = FIXED_SIMULATE); |
963 HBoundsCheck* AddBoundsCheck( | 963 HBoundsCheck* AddBoundsCheck( |
964 HValue* index, | 964 HValue* index, |
965 HValue* length, | 965 HValue* length, |
966 BoundsCheckKeyMode key_mode = DONT_ALLOW_SMI_KEY, | 966 BoundsCheckKeyMode key_mode = DONT_ALLOW_SMI_KEY); |
967 Representation r = Representation::None()); | |
968 | 967 |
969 HReturn* AddReturn(HValue* value); | 968 HReturn* AddReturn(HValue* value); |
970 | 969 |
971 void IncrementInNoSideEffectsScope() { | 970 void IncrementInNoSideEffectsScope() { |
972 no_side_effects_scope_count_++; | 971 no_side_effects_scope_count_++; |
973 } | 972 } |
974 | 973 |
975 void DecrementInNoSideEffectsScope() { | 974 void DecrementInNoSideEffectsScope() { |
976 no_side_effects_scope_count_--; | 975 no_side_effects_scope_count_--; |
977 } | 976 } |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1018 | 1017 |
1019 HInstruction* BuildUncheckedMonomorphicElementAccess( | 1018 HInstruction* BuildUncheckedMonomorphicElementAccess( |
1020 HValue* object, | 1019 HValue* object, |
1021 HValue* key, | 1020 HValue* key, |
1022 HValue* val, | 1021 HValue* val, |
1023 HCheckMaps* mapcheck, | 1022 HCheckMaps* mapcheck, |
1024 bool is_js_array, | 1023 bool is_js_array, |
1025 ElementsKind elements_kind, | 1024 ElementsKind elements_kind, |
1026 bool is_store, | 1025 bool is_store, |
1027 LoadKeyedHoleMode load_mode, | 1026 LoadKeyedHoleMode load_mode, |
1028 KeyedAccessStoreMode store_mode, | 1027 KeyedAccessStoreMode store_mode); |
1029 Representation checked_index_representation = Representation::None()); | |
1030 | 1028 |
1031 HLoadNamedField* AddLoad( | 1029 HLoadNamedField* AddLoad( |
1032 HValue *object, | 1030 HValue *object, |
1033 HObjectAccess access, | 1031 HObjectAccess access, |
1034 HValue *typecheck = NULL, | 1032 HValue *typecheck = NULL, |
1035 Representation representation = Representation::Tagged()); | 1033 Representation representation = Representation::Tagged()); |
1036 | 1034 |
1037 HLoadNamedField* BuildLoadNamedField( | 1035 HLoadNamedField* BuildLoadNamedField( |
1038 HValue* object, | 1036 HValue* object, |
1039 HObjectAccess access, | 1037 HObjectAccess access, |
(...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2027 EmbeddedVector<char, 64> filename_; | 2025 EmbeddedVector<char, 64> filename_; |
2028 HeapStringAllocator string_allocator_; | 2026 HeapStringAllocator string_allocator_; |
2029 StringStream trace_; | 2027 StringStream trace_; |
2030 int indent_; | 2028 int indent_; |
2031 }; | 2029 }; |
2032 | 2030 |
2033 | 2031 |
2034 } } // namespace v8::internal | 2032 } } // namespace v8::internal |
2035 | 2033 |
2036 #endif // V8_HYDROGEN_H_ | 2034 #endif // V8_HYDROGEN_H_ |
OLD | NEW |