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

Side by Side Diff: src/objects.h

Issue 2275943005: [modules] Minor refactorings in scopes and scopeinfos. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@modules-serialize-entry
Patch Set: Rebase. Created 4 years, 3 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/debug/liveedit.cc ('k') | src/parsing/parser-base.h » ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 4489 matching lines...) Expand 10 before | Expand all | Expand 10 after
4500 class FunctionVariableMode 4500 class FunctionVariableMode
4501 : public BitField<VariableMode, FunctionVariableField::kNext, 3> {}; 4501 : public BitField<VariableMode, FunctionVariableField::kNext, 3> {};
4502 class AsmModuleField : public BitField<bool, FunctionVariableMode::kNext, 1> { 4502 class AsmModuleField : public BitField<bool, FunctionVariableMode::kNext, 1> {
4503 }; 4503 };
4504 class AsmFunctionField : public BitField<bool, AsmModuleField::kNext, 1> {}; 4504 class AsmFunctionField : public BitField<bool, AsmModuleField::kNext, 1> {};
4505 class HasSimpleParametersField 4505 class HasSimpleParametersField
4506 : public BitField<bool, AsmFunctionField::kNext, 1> {}; 4506 : public BitField<bool, AsmFunctionField::kNext, 1> {};
4507 class FunctionKindField 4507 class FunctionKindField
4508 : public BitField<FunctionKind, HasSimpleParametersField::kNext, 9> {}; 4508 : public BitField<FunctionKind, HasSimpleParametersField::kNext, 9> {};
4509 4509
4510 // BitFields representing the encoded information for context locals in the 4510 // Properties of variables.
4511 // ContextLocalInfoEntries part. 4511 class VariableModeField : public BitField<VariableMode, 0, 3> {};
4512 class ContextLocalMode: public BitField<VariableMode, 0, 3> {}; 4512 class InitFlagField : public BitField<InitializationFlag, 3, 1> {};
4513 class ContextLocalInitFlag: public BitField<InitializationFlag, 3, 1> {}; 4513 class MaybeAssignedFlagField : public BitField<MaybeAssignedFlag, 4, 1> {};
4514 class ContextLocalMaybeAssignedFlag
4515 : public BitField<MaybeAssignedFlag, 4, 1> {};
4516 4514
4517 friend class ScopeIterator; 4515 friend class ScopeIterator;
4518 }; 4516 };
4519 4517
4520 4518
4521 // The cache for maps used by normalized (dictionary mode) objects. 4519 // The cache for maps used by normalized (dictionary mode) objects.
4522 // Such maps do not have property descriptors, so a typical program 4520 // Such maps do not have property descriptors, so a typical program
4523 // needs very limited number of distinct normalized maps. 4521 // needs very limited number of distinct normalized maps.
4524 class NormalizedMapCache: public FixedArray { 4522 class NormalizedMapCache: public FixedArray {
4525 public: 4523 public:
(...skipping 6654 matching lines...) Expand 10 before | Expand all | Expand 10 after
11180 } 11178 }
11181 return value; 11179 return value;
11182 } 11180 }
11183 }; 11181 };
11184 11182
11185 11183
11186 } // NOLINT, false-positive due to second-order macros. 11184 } // NOLINT, false-positive due to second-order macros.
11187 } // NOLINT, false-positive due to second-order macros. 11185 } // NOLINT, false-positive due to second-order macros.
11188 11186
11189 #endif // V8_OBJECTS_H_ 11187 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/debug/liveedit.cc ('k') | src/parsing/parser-base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698