| 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 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1888 // same function as current position_. | 1888 // same function as current position_. |
| 1889 SourcePosition ScriptPositionToSourcePosition(int position) { | 1889 SourcePosition ScriptPositionToSourcePosition(int position) { |
| 1890 SourcePosition pos = position_; | 1890 SourcePosition pos = position_; |
| 1891 pos.set_position(position - start_position_); | 1891 pos.set_position(position - start_position_); |
| 1892 return pos; | 1892 return pos; |
| 1893 } | 1893 } |
| 1894 | 1894 |
| 1895 SourcePosition source_position() { return position_; } | 1895 SourcePosition source_position() { return position_; } |
| 1896 void set_source_position(SourcePosition position) { position_ = position; } | 1896 void set_source_position(SourcePosition position) { position_ = position; } |
| 1897 | 1897 |
| 1898 HValue* BuildAllocateEmptyArrayBuffer(HValue* byte_length); |
| 1898 template <typename ViewClass> | 1899 template <typename ViewClass> |
| 1899 void BuildArrayBufferViewInitialization(HValue* obj, | 1900 void BuildArrayBufferViewInitialization(HValue* obj, |
| 1900 HValue* buffer, | 1901 HValue* buffer, |
| 1901 HValue* byte_offset, | 1902 HValue* byte_offset, |
| 1902 HValue* byte_length); | 1903 HValue* byte_length); |
| 1903 | 1904 |
| 1904 private: | 1905 private: |
| 1905 HGraphBuilder(); | 1906 HGraphBuilder(); |
| 1906 | 1907 |
| 1907 template <class I> | 1908 template <class I> |
| (...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3048 } | 3049 } |
| 3049 | 3050 |
| 3050 private: | 3051 private: |
| 3051 HGraphBuilder* builder_; | 3052 HGraphBuilder* builder_; |
| 3052 }; | 3053 }; |
| 3053 | 3054 |
| 3054 | 3055 |
| 3055 } } // namespace v8::internal | 3056 } } // namespace v8::internal |
| 3056 | 3057 |
| 3057 #endif // V8_HYDROGEN_H_ | 3058 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |