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 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1399 Maybe<int> fixed_right_arg, | 1399 Maybe<int> fixed_right_arg, |
1400 HAllocationMode allocation_mode); | 1400 HAllocationMode allocation_mode); |
1401 | 1401 |
1402 HLoadNamedField* AddLoadFixedArrayLength(HValue *object); | 1402 HLoadNamedField* AddLoadFixedArrayLength(HValue *object); |
1403 | 1403 |
1404 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin); | 1404 HValue* AddLoadJSBuiltin(Builtins::JavaScript builtin); |
1405 | 1405 |
1406 HValue* EnforceNumberType(HValue* number, Type* expected); | 1406 HValue* EnforceNumberType(HValue* number, Type* expected); |
1407 HValue* TruncateToNumber(HValue* value, Type** expected); | 1407 HValue* TruncateToNumber(HValue* value, Type** expected); |
1408 | 1408 |
1409 void FinishExitWithHardDeoptimization(const char* reason, | 1409 void FinishExitWithHardDeoptimization(const char* reason); |
1410 HBasicBlock* continuation); | |
1411 | 1410 |
1412 void AddIncrementCounter(StatsCounter* counter); | 1411 void AddIncrementCounter(StatsCounter* counter); |
1413 | 1412 |
1414 class IfBuilder V8_FINAL { | 1413 class IfBuilder V8_FINAL { |
1415 public: | 1414 public: |
1416 explicit IfBuilder(HGraphBuilder* builder); | 1415 explicit IfBuilder(HGraphBuilder* builder); |
1417 IfBuilder(HGraphBuilder* builder, | 1416 IfBuilder(HGraphBuilder* builder, |
1418 HIfContinuation* continuation); | 1417 HIfContinuation* continuation); |
1419 | 1418 |
1420 ~IfBuilder() { | 1419 ~IfBuilder() { |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1791 private: | 1790 private: |
1792 HGraphBuilder(); | 1791 HGraphBuilder(); |
1793 | 1792 |
1794 HValue* BuildUncheckedDictionaryElementLoadHelper( | 1793 HValue* BuildUncheckedDictionaryElementLoadHelper( |
1795 HValue* elements, | 1794 HValue* elements, |
1796 HValue* key, | 1795 HValue* key, |
1797 HValue* hash, | 1796 HValue* hash, |
1798 HValue* mask, | 1797 HValue* mask, |
1799 int current_probe); | 1798 int current_probe); |
1800 | 1799 |
1801 void PadEnvironmentForContinuation(HBasicBlock* from, | |
1802 HBasicBlock* continuation); | |
1803 | |
1804 template <class I> | 1800 template <class I> |
1805 I* AddInstructionTyped(I* instr) { | 1801 I* AddInstructionTyped(I* instr) { |
1806 return I::cast(AddInstruction(instr)); | 1802 return I::cast(AddInstruction(instr)); |
1807 } | 1803 } |
1808 | 1804 |
1809 CompilationInfo* info_; | 1805 CompilationInfo* info_; |
1810 HGraph* graph_; | 1806 HGraph* graph_; |
1811 HBasicBlock* current_block_; | 1807 HBasicBlock* current_block_; |
1812 int position_; | 1808 int position_; |
1813 }; | 1809 }; |
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2739 } | 2735 } |
2740 | 2736 |
2741 private: | 2737 private: |
2742 HGraphBuilder* builder_; | 2738 HGraphBuilder* builder_; |
2743 }; | 2739 }; |
2744 | 2740 |
2745 | 2741 |
2746 } } // namespace v8::internal | 2742 } } // namespace v8::internal |
2747 | 2743 |
2748 #endif // V8_HYDROGEN_H_ | 2744 #endif // V8_HYDROGEN_H_ |
OLD | NEW |