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

Side by Side Diff: src/ast/ast.h

Issue 2487483004: Only treat possible eval calls going through 'with' as special. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/ast/ast.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_AST_AST_H_ 5 #ifndef V8_AST_AST_H_
6 #define V8_AST_AST_H_ 6 #define V8_AST_AST_H_
7 7
8 #include "src/ast/ast-types.h" 8 #include "src/ast/ast-types.h"
9 #include "src/ast/ast-value-factory.h" 9 #include "src/ast/ast-value-factory.h"
10 #include "src/ast/modules.h" 10 #include "src/ast/modules.h"
(...skipping 1882 matching lines...) Expand 10 before | Expand all | Expand 10 after
1893 return IsPossiblyEvalField::decode(bit_field_); 1893 return IsPossiblyEvalField::decode(bit_field_);
1894 } 1894 }
1895 1895
1896 TailCallMode tail_call_mode() const { 1896 TailCallMode tail_call_mode() const {
1897 return IsTailField::decode(bit_field_) ? TailCallMode::kAllow 1897 return IsTailField::decode(bit_field_) ? TailCallMode::kAllow
1898 : TailCallMode::kDisallow; 1898 : TailCallMode::kDisallow;
1899 } 1899 }
1900 void MarkTail() { bit_field_ = IsTailField::update(bit_field_, true); } 1900 void MarkTail() { bit_field_ = IsTailField::update(bit_field_, true); }
1901 1901
1902 enum CallType { 1902 enum CallType {
1903 POSSIBLY_EVAL_CALL,
1904 GLOBAL_CALL, 1903 GLOBAL_CALL,
1905 WITH_CALL, 1904 WITH_CALL,
1906 NAMED_PROPERTY_CALL, 1905 NAMED_PROPERTY_CALL,
1907 KEYED_PROPERTY_CALL, 1906 KEYED_PROPERTY_CALL,
1908 NAMED_SUPER_PROPERTY_CALL, 1907 NAMED_SUPER_PROPERTY_CALL,
1909 KEYED_SUPER_PROPERTY_CALL, 1908 KEYED_SUPER_PROPERTY_CALL,
1910 SUPER_CALL, 1909 SUPER_CALL,
1911 OTHER_CALL 1910 OTHER_CALL
1912 }; 1911 };
1913 1912
(...skipping 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after
3603 : NULL; \ 3602 : NULL; \
3604 } 3603 }
3605 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) 3604 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS)
3606 #undef DECLARE_NODE_FUNCTIONS 3605 #undef DECLARE_NODE_FUNCTIONS
3607 3606
3608 3607
3609 } // namespace internal 3608 } // namespace internal
3610 } // namespace v8 3609 } // namespace v8
3611 3610
3612 #endif // V8_AST_AST_H_ 3611 #endif // V8_AST_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/ast/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698