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 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1861 HInstruction* BuildCheckPrototypeMaps(Handle<JSObject> prototype, | 1861 HInstruction* BuildCheckPrototypeMaps(Handle<JSObject> prototype, |
1862 Handle<JSObject> holder); | 1862 Handle<JSObject> holder); |
1863 | 1863 |
1864 HInstruction* BuildGetNativeContext(HValue* closure); | 1864 HInstruction* BuildGetNativeContext(HValue* closure); |
1865 HInstruction* BuildGetNativeContext(); | 1865 HInstruction* BuildGetNativeContext(); |
1866 HInstruction* BuildGetScriptContext(int context_index); | 1866 HInstruction* BuildGetScriptContext(int context_index); |
1867 HInstruction* BuildGetArrayFunction(); | 1867 HInstruction* BuildGetArrayFunction(); |
1868 | 1868 |
1869 protected: | 1869 protected: |
1870 void SetSourcePosition(int position) { | 1870 void SetSourcePosition(int position) { |
1871 DCHECK(position != RelocInfo::kNoPosition); | 1871 if (position != RelocInfo::kNoPosition) { |
adamk
2015/03/24 15:57:41
Was this for/let desugaring really the first place
Dmitry Lomov (no reviews)
2015/03/24 16:42:52
Seems to be. This for/let desugaring added compari
| |
1872 position_.set_position(position - start_position_); | 1872 position_.set_position(position - start_position_); |
1873 } | |
1874 // Otherwise position remains unknown. | |
1873 } | 1875 } |
1874 | 1876 |
1875 void EnterInlinedSource(int start_position, int id) { | 1877 void EnterInlinedSource(int start_position, int id) { |
1876 if (top_info()->is_tracking_positions()) { | 1878 if (top_info()->is_tracking_positions()) { |
1877 start_position_ = start_position; | 1879 start_position_ = start_position; |
1878 position_.set_inlining_id(id); | 1880 position_.set_inlining_id(id); |
1879 } | 1881 } |
1880 } | 1882 } |
1881 | 1883 |
1882 // Convert the given absolute offset from the start of the script to | 1884 // Convert the given absolute offset from the start of the script to |
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3030 } | 3032 } |
3031 | 3033 |
3032 private: | 3034 private: |
3033 HGraphBuilder* builder_; | 3035 HGraphBuilder* builder_; |
3034 }; | 3036 }; |
3035 | 3037 |
3036 | 3038 |
3037 } } // namespace v8::internal | 3039 } } // namespace v8::internal |
3038 | 3040 |
3039 #endif // V8_HYDROGEN_H_ | 3041 #endif // V8_HYDROGEN_H_ |
OLD | NEW |