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

Side by Side Diff: src/full-codegen/full-codegen.cc

Issue 1895973002: Remove all non-function-name uses of CONST_LEGACY (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove now-unused bits in TF and CS Created 4 years, 8 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
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 #include "src/full-codegen/full-codegen.h" 5 #include "src/full-codegen/full-codegen.h"
6 6
7 #include "src/ast/ast-numbering.h" 7 #include "src/ast/ast-numbering.h"
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/prettyprinter.h" 9 #include "src/ast/prettyprinter.h"
10 #include "src/ast/scopeinfo.h" 10 #include "src/ast/scopeinfo.h"
(...skipping 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after
1927 DCHECK(literal() != nullptr && 1927 DCHECK(literal() != nullptr &&
1928 (literal()->kind() & kSubclassConstructor) != 0); 1928 (literal()->kind() & kSubclassConstructor) != 0);
1929 // TODO(littledan): implement 'this' hole check elimination. 1929 // TODO(littledan): implement 'this' hole check elimination.
1930 return true; 1930 return true;
1931 } 1931 }
1932 1932
1933 // Check that we always have valid source position. 1933 // Check that we always have valid source position.
1934 DCHECK(var->initializer_position() != RelocInfo::kNoPosition); 1934 DCHECK(var->initializer_position() != RelocInfo::kNoPosition);
1935 DCHECK(proxy->position() != RelocInfo::kNoPosition); 1935 DCHECK(proxy->position() != RelocInfo::kNoPosition);
1936 1936
1937 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || 1937 return var->scope()->is_nonlinear() ||
1938 var->initializer_position() >= proxy->position(); 1938 var->initializer_position() >= proxy->position();
1939 } 1939 }
1940 1940
1941 1941
1942 #undef __ 1942 #undef __
1943 1943
1944 1944
1945 } // namespace internal 1945 } // namespace internal
1946 } // namespace v8 1946 } // namespace v8
OLDNEW
« no previous file with comments | « src/full-codegen/arm64/full-codegen-arm64.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698