Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: src/hydrogen.h

Issue 1032653002: Do not assign positions to parser-generated desugarings. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased for landing Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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) {
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698