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 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
905 HValue* val, | 905 HValue* val, |
906 HCheckMaps* mapcheck, | 906 HCheckMaps* mapcheck, |
907 bool is_js_array, | 907 bool is_js_array, |
908 ElementsKind elements_kind, | 908 ElementsKind elements_kind, |
909 bool is_store, | 909 bool is_store, |
910 Representation checked_index_representation = Representation::None()); | 910 Representation checked_index_representation = Representation::None()); |
911 | 911 |
912 HInstruction* BuildStoreMap(HValue* object, HValue* map, BailoutId id); | 912 HInstruction* BuildStoreMap(HValue* object, HValue* map, BailoutId id); |
913 HInstruction* BuildStoreMap(HValue* object, Handle<Map> map, BailoutId id); | 913 HInstruction* BuildStoreMap(HValue* object, Handle<Map> map, BailoutId id); |
914 | 914 |
915 class CheckBuilder { | |
916 public: | |
917 CheckBuilder(HGraphBuilder* builder, | |
918 BailoutId id = BailoutId::StubEntry()); | |
919 ~CheckBuilder() { | |
920 if (!finished_) End(); | |
921 } | |
922 | |
923 void CheckNotUndefined(HValue* value); | |
924 void CheckIntegerEq(HValue* left, HValue* right); | |
925 void End(); | |
926 | |
927 private: | |
928 HGraphBuilder* builder_; | |
929 bool finished_; | |
930 HBasicBlock* failure_block_; | |
931 HBasicBlock* merge_block_; | |
932 BailoutId id_; | |
933 | |
934 Zone* zone() { return builder_->zone(); } | |
Jakob Kummerow
2013/02/08 12:45:49
nit: methods before properties
Michael Starzinger
2013/02/11 12:13:22
Done (also for the other builders below).
| |
935 }; | |
936 | |
915 class IfBuilder { | 937 class IfBuilder { |
916 public: | 938 public: |
917 IfBuilder(HGraphBuilder* builder, | 939 IfBuilder(HGraphBuilder* builder, |
918 BailoutId id = BailoutId::StubEntry()); | 940 BailoutId id = BailoutId::StubEntry()); |
919 ~IfBuilder() { | 941 ~IfBuilder() { |
920 if (!finished_) End(); | 942 if (!finished_) End(); |
921 } | 943 } |
922 | 944 |
923 void BeginTrue(HValue* left, HValue* right, Token::Value token); | 945 void BeginTrue(HValue* left, HValue* right, Token::Value token); |
924 void BeginFalse(); | 946 void BeginFalse(); |
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1654 const char* filename_; | 1676 const char* filename_; |
1655 HeapStringAllocator string_allocator_; | 1677 HeapStringAllocator string_allocator_; |
1656 StringStream trace_; | 1678 StringStream trace_; |
1657 int indent_; | 1679 int indent_; |
1658 }; | 1680 }; |
1659 | 1681 |
1660 | 1682 |
1661 } } // namespace v8::internal | 1683 } } // namespace v8::internal |
1662 | 1684 |
1663 #endif // V8_HYDROGEN_H_ | 1685 #endif // V8_HYDROGEN_H_ |
OLD | NEW |