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 "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
(...skipping 1860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1871 void BuildCreateAllocationMemento(HValue* previous_object, | 1871 void BuildCreateAllocationMemento(HValue* previous_object, |
1872 HValue* previous_object_size, | 1872 HValue* previous_object_size, |
1873 HValue* payload); | 1873 HValue* payload); |
1874 | 1874 |
1875 HInstruction* BuildConstantMapCheck(Handle<JSObject> constant); | 1875 HInstruction* BuildConstantMapCheck(Handle<JSObject> constant); |
1876 HInstruction* BuildCheckPrototypeMaps(Handle<JSObject> prototype, | 1876 HInstruction* BuildCheckPrototypeMaps(Handle<JSObject> prototype, |
1877 Handle<JSObject> holder); | 1877 Handle<JSObject> holder); |
1878 | 1878 |
1879 HInstruction* BuildGetNativeContext(HValue* closure); | 1879 HInstruction* BuildGetNativeContext(HValue* closure); |
1880 HInstruction* BuildGetNativeContext(); | 1880 HInstruction* BuildGetNativeContext(); |
1881 HInstruction* BuildGetGlobalContext(int context_index); | 1881 HInstruction* BuildGetScriptContext(int context_index); |
1882 HInstruction* BuildGetArrayFunction(); | 1882 HInstruction* BuildGetArrayFunction(); |
1883 | 1883 |
1884 protected: | 1884 protected: |
1885 void SetSourcePosition(int position) { | 1885 void SetSourcePosition(int position) { |
1886 DCHECK(position != RelocInfo::kNoPosition); | 1886 DCHECK(position != RelocInfo::kNoPosition); |
1887 position_.set_position(position - start_position_); | 1887 position_.set_position(position - start_position_); |
1888 } | 1888 } |
1889 | 1889 |
1890 void EnterInlinedSource(int start_position, int id) { | 1890 void EnterInlinedSource(int start_position, int id) { |
1891 if (FLAG_hydrogen_track_positions) { | 1891 if (FLAG_hydrogen_track_positions) { |
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2911 } | 2911 } |
2912 | 2912 |
2913 private: | 2913 private: |
2914 HGraphBuilder* builder_; | 2914 HGraphBuilder* builder_; |
2915 }; | 2915 }; |
2916 | 2916 |
2917 | 2917 |
2918 } } // namespace v8::internal | 2918 } } // namespace v8::internal |
2919 | 2919 |
2920 #endif // V8_HYDROGEN_H_ | 2920 #endif // V8_HYDROGEN_H_ |
OLD | NEW |