OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_HYDROGEN_H_ | 5 #ifndef V8_HYDROGEN_H_ |
6 #define V8_HYDROGEN_H_ | 6 #define V8_HYDROGEN_H_ |
7 | 7 |
8 #include "v8.h" | 8 #include "v8.h" |
9 | 9 |
10 #include "accessors.h" | 10 #include "accessors.h" |
(...skipping 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1291 | 1291 |
1292 void AddSimulate(BailoutId id, RemovableSimulate removable = FIXED_SIMULATE); | 1292 void AddSimulate(BailoutId id, RemovableSimulate removable = FIXED_SIMULATE); |
1293 | 1293 |
1294 protected: | 1294 protected: |
1295 virtual bool BuildGraph() = 0; | 1295 virtual bool BuildGraph() = 0; |
1296 | 1296 |
1297 HBasicBlock* CreateBasicBlock(HEnvironment* env); | 1297 HBasicBlock* CreateBasicBlock(HEnvironment* env); |
1298 HBasicBlock* CreateLoopHeaderBlock(); | 1298 HBasicBlock* CreateLoopHeaderBlock(); |
1299 | 1299 |
1300 HValue* BuildCheckHeapObject(HValue* object); | 1300 HValue* BuildCheckHeapObject(HValue* object); |
1301 HValue* BuildCheckMap(HValue* obj, Handle<Map> map); | |
1302 HValue* BuildCheckString(HValue* string); | 1301 HValue* BuildCheckString(HValue* string); |
1303 HValue* BuildWrapReceiver(HValue* object, HValue* function); | 1302 HValue* BuildWrapReceiver(HValue* object, HValue* function); |
1304 | 1303 |
1305 // Building common constructs | 1304 // Building common constructs |
1306 HValue* BuildCheckForCapacityGrow(HValue* object, | 1305 HValue* BuildCheckForCapacityGrow(HValue* object, |
1307 HValue* elements, | 1306 HValue* elements, |
1308 ElementsKind kind, | 1307 ElementsKind kind, |
1309 HValue* length, | 1308 HValue* length, |
1310 HValue* key, | 1309 HValue* key, |
1311 bool is_js_array, | 1310 bool is_js_array, |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1774 | 1773 |
1775 void BuildCompareNil( | 1774 void BuildCompareNil( |
1776 HValue* value, | 1775 HValue* value, |
1777 Type* type, | 1776 Type* type, |
1778 HIfContinuation* continuation); | 1777 HIfContinuation* continuation); |
1779 | 1778 |
1780 void BuildCreateAllocationMemento(HValue* previous_object, | 1779 void BuildCreateAllocationMemento(HValue* previous_object, |
1781 HValue* previous_object_size, | 1780 HValue* previous_object_size, |
1782 HValue* payload); | 1781 HValue* payload); |
1783 | 1782 |
1784 HInstruction* BuildConstantMapCheck(Handle<JSObject> constant, | 1783 HInstruction* BuildConstantMapCheck(Handle<JSObject> constant); |
1785 CompilationInfo* info); | |
1786 HInstruction* BuildCheckPrototypeMaps(Handle<JSObject> prototype, | 1784 HInstruction* BuildCheckPrototypeMaps(Handle<JSObject> prototype, |
1787 Handle<JSObject> holder); | 1785 Handle<JSObject> holder); |
1788 | 1786 |
1789 HInstruction* BuildGetNativeContext(HValue* closure); | 1787 HInstruction* BuildGetNativeContext(HValue* closure); |
1790 HInstruction* BuildGetNativeContext(); | 1788 HInstruction* BuildGetNativeContext(); |
1791 HInstruction* BuildGetArrayFunction(); | 1789 HInstruction* BuildGetArrayFunction(); |
1792 | 1790 |
1793 protected: | 1791 protected: |
1794 void SetSourcePosition(int position) { | 1792 void SetSourcePosition(int position) { |
1795 ASSERT(position != RelocInfo::kNoPosition); | 1793 ASSERT(position != RelocInfo::kNoPosition); |
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2782 } | 2780 } |
2783 | 2781 |
2784 private: | 2782 private: |
2785 HGraphBuilder* builder_; | 2783 HGraphBuilder* builder_; |
2786 }; | 2784 }; |
2787 | 2785 |
2788 | 2786 |
2789 } } // namespace v8::internal | 2787 } } // namespace v8::internal |
2790 | 2788 |
2791 #endif // V8_HYDROGEN_H_ | 2789 #endif // V8_HYDROGEN_H_ |
OLD | NEW |