| 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 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 // Adding instructions. | 879 // Adding instructions. |
| 880 HInstruction* AddInstruction(HInstruction* instr); | 880 HInstruction* AddInstruction(HInstruction* instr); |
| 881 void AddSimulate(BailoutId id, | 881 void AddSimulate(BailoutId id, |
| 882 RemovableSimulate removable = FIXED_SIMULATE); | 882 RemovableSimulate removable = FIXED_SIMULATE); |
| 883 HBoundsCheck* AddBoundsCheck( | 883 HBoundsCheck* AddBoundsCheck( |
| 884 HValue* index, | 884 HValue* index, |
| 885 HValue* length, | 885 HValue* length, |
| 886 BoundsCheckKeyMode key_mode = DONT_ALLOW_SMI_KEY, | 886 BoundsCheckKeyMode key_mode = DONT_ALLOW_SMI_KEY, |
| 887 Representation r = Representation::None()); | 887 Representation r = Representation::None()); |
| 888 | 888 |
| 889 HReturn* AddReturn(HValue* value); |
| 890 |
| 889 protected: | 891 protected: |
| 890 virtual bool BuildGraph() = 0; | 892 virtual bool BuildGraph() = 0; |
| 891 | 893 |
| 892 HBasicBlock* CreateBasicBlock(HEnvironment* env); | 894 HBasicBlock* CreateBasicBlock(HEnvironment* env); |
| 893 HBasicBlock* CreateLoopHeaderBlock(); | 895 HBasicBlock* CreateLoopHeaderBlock(); |
| 894 | 896 |
| 895 // Building common constructs | 897 // Building common constructs |
| 896 HInstruction* BuildExternalArrayElementAccess( | 898 HInstruction* BuildExternalArrayElementAccess( |
| 897 HValue* external_elements, | 899 HValue* external_elements, |
| 898 HValue* checked_key, | 900 HValue* checked_key, |
| (...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1677 EmbeddedVector<char, 64> filename_; | 1679 EmbeddedVector<char, 64> filename_; |
| 1678 HeapStringAllocator string_allocator_; | 1680 HeapStringAllocator string_allocator_; |
| 1679 StringStream trace_; | 1681 StringStream trace_; |
| 1680 int indent_; | 1682 int indent_; |
| 1681 }; | 1683 }; |
| 1682 | 1684 |
| 1683 | 1685 |
| 1684 } } // namespace v8::internal | 1686 } } // namespace v8::internal |
| 1685 | 1687 |
| 1686 #endif // V8_HYDROGEN_H_ | 1688 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |