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

Side by Side Diff: src/globals.h

Issue 2242583003: [Parser] Remove Variable::is_possibly_eval. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@toon_cl
Patch Set: Address comment Created 4 years, 4 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 | « src/full-codegen/full-codegen.cc ('k') | src/interpreter/bytecode-generator.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_GLOBALS_H_ 5 #ifndef V8_GLOBALS_H_
6 #define V8_GLOBALS_H_ 6 #define V8_GLOBALS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 // implemented according to ES6, section 7.1.1. 809 // implemented according to ES6, section 7.1.1.
810 enum class ToPrimitiveHint { kDefault, kNumber, kString }; 810 enum class ToPrimitiveHint { kDefault, kNumber, kString };
811 811
812 // Defines specifics about arguments object or rest parameter creation. 812 // Defines specifics about arguments object or rest parameter creation.
813 enum class CreateArgumentsType : uint8_t { 813 enum class CreateArgumentsType : uint8_t {
814 kMappedArguments, 814 kMappedArguments,
815 kUnmappedArguments, 815 kUnmappedArguments,
816 kRestParameter 816 kRestParameter
817 }; 817 };
818 818
819 enum class HandleDereferenceMode { kAllowed, kDisallowed };
820
821 inline size_t hash_value(CreateArgumentsType type) { 819 inline size_t hash_value(CreateArgumentsType type) {
822 return bit_cast<uint8_t>(type); 820 return bit_cast<uint8_t>(type);
823 } 821 }
824 822
825 inline std::ostream& operator<<(std::ostream& os, CreateArgumentsType type) { 823 inline std::ostream& operator<<(std::ostream& os, CreateArgumentsType type) {
826 switch (type) { 824 switch (type) {
827 case CreateArgumentsType::kMappedArguments: 825 case CreateArgumentsType::kMappedArguments:
828 return os << "MAPPED_ARGUMENTS"; 826 return os << "MAPPED_ARGUMENTS";
829 case CreateArgumentsType::kUnmappedArguments: 827 case CreateArgumentsType::kUnmappedArguments:
830 return os << "UNMAPPED_ARGUMENTS"; 828 return os << "UNMAPPED_ARGUMENTS";
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
1158 public: 1156 public:
1159 enum { kNone = 0x00, kSignedSmall = 0x01, kNumber = 0x3, kAny = 0x7 }; 1157 enum { kNone = 0x00, kSignedSmall = 0x01, kNumber = 0x3, kAny = 0x7 };
1160 }; 1158 };
1161 1159
1162 } // namespace internal 1160 } // namespace internal
1163 } // namespace v8 1161 } // namespace v8
1164 1162
1165 namespace i = v8::internal; 1163 namespace i = v8::internal;
1166 1164
1167 #endif // V8_GLOBALS_H_ 1165 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698