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

Side by Side Diff: src/objects.h

Issue 994043003: [strong] More scoping related errors: object literal methods. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: moar code reviews 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
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_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 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 4360 matching lines...) Expand 10 before | Expand all | Expand 10 after
4371 class LanguageModeField : public BitField<LanguageMode, 5, 2> {}; 4371 class LanguageModeField : public BitField<LanguageMode, 5, 2> {};
4372 class FunctionVariableField : public BitField<FunctionVariableInfo, 7, 2> {}; 4372 class FunctionVariableField : public BitField<FunctionVariableInfo, 7, 2> {};
4373 class FunctionVariableMode : public BitField<VariableMode, 9, 3> {}; 4373 class FunctionVariableMode : public BitField<VariableMode, 9, 3> {};
4374 class AsmModuleField : public BitField<bool, 12, 1> {}; 4374 class AsmModuleField : public BitField<bool, 12, 1> {};
4375 class AsmFunctionField : public BitField<bool, 13, 1> {}; 4375 class AsmFunctionField : public BitField<bool, 13, 1> {};
4376 class IsSimpleParameterListField 4376 class IsSimpleParameterListField
4377 : public BitField<bool, AsmFunctionField::kNext, 1> {}; 4377 : public BitField<bool, AsmFunctionField::kNext, 1> {};
4378 class BlockScopeIsClassScopeField 4378 class BlockScopeIsClassScopeField
4379 : public BitField<bool, IsSimpleParameterListField::kNext, 1> {}; 4379 : public BitField<bool, IsSimpleParameterListField::kNext, 1> {};
4380 class FunctionKindField 4380 class FunctionKindField
4381 : public BitField<FunctionKind, BlockScopeIsClassScopeField::kNext, 7> {}; 4381 : public BitField<FunctionKind, BlockScopeIsClassScopeField::kNext, 8> {};
4382 4382
4383 // BitFields representing the encoded information for context locals in the 4383 // BitFields representing the encoded information for context locals in the
4384 // ContextLocalInfoEntries part. 4384 // ContextLocalInfoEntries part.
4385 class ContextLocalMode: public BitField<VariableMode, 0, 3> {}; 4385 class ContextLocalMode: public BitField<VariableMode, 0, 3> {};
4386 class ContextLocalInitFlag: public BitField<InitializationFlag, 3, 1> {}; 4386 class ContextLocalInitFlag: public BitField<InitializationFlag, 3, 1> {};
4387 class ContextLocalMaybeAssignedFlag 4387 class ContextLocalMaybeAssignedFlag
4388 : public BitField<MaybeAssignedFlag, 4, 1> {}; 4388 : public BitField<MaybeAssignedFlag, 4, 1> {};
4389 }; 4389 };
4390 4390
4391 4391
(...skipping 2782 matching lines...) Expand 10 before | Expand all | Expand 10 after
7174 kIsFunction, 7174 kIsFunction,
7175 kDontCache, 7175 kDontCache,
7176 kDontFlush, 7176 kDontFlush,
7177 kIsArrow, 7177 kIsArrow,
7178 kIsGenerator, 7178 kIsGenerator,
7179 kIsConciseMethod, 7179 kIsConciseMethod,
7180 kIsAccessorFunction, 7180 kIsAccessorFunction,
7181 kIsDefaultConstructor, 7181 kIsDefaultConstructor,
7182 kIsSubclassConstructor, 7182 kIsSubclassConstructor,
7183 kIsBaseConstructor, 7183 kIsBaseConstructor,
7184 kInClassLiteral,
7184 kIsAsmFunction, 7185 kIsAsmFunction,
7185 kDeserialized, 7186 kDeserialized,
7186 kCompilerHintsCount // Pseudo entry 7187 kCompilerHintsCount // Pseudo entry
7187 }; 7188 };
7188 // Add hints for other modes when they're added. 7189 // Add hints for other modes when they're added.
7189 STATIC_ASSERT(LANGUAGE_END == 3); 7190 STATIC_ASSERT(LANGUAGE_END == 3);
7190 7191
7191 class FunctionKindBits : public BitField<FunctionKind, kIsArrow, 7> {}; 7192 class FunctionKindBits : public BitField<FunctionKind, kIsArrow, 8> {};
7192 7193
7193 class DeoptCountBits : public BitField<int, 0, 4> {}; 7194 class DeoptCountBits : public BitField<int, 0, 4> {};
7194 class OptReenableTriesBits : public BitField<int, 4, 18> {}; 7195 class OptReenableTriesBits : public BitField<int, 4, 18> {};
7195 class ICAgeBits : public BitField<int, 22, 8> {}; 7196 class ICAgeBits : public BitField<int, 22, 8> {};
7196 7197
7197 class OptCountBits : public BitField<int, 0, 22> {}; 7198 class OptCountBits : public BitField<int, 0, 22> {};
7198 class DisabledOptimizationReasonBits : public BitField<int, 22, 8> {}; 7199 class DisabledOptimizationReasonBits : public BitField<int, 22, 8> {};
7199 7200
7200 private: 7201 private:
7201 #if V8_HOST_ARCH_32_BIT 7202 #if V8_HOST_ARCH_32_BIT
(...skipping 3728 matching lines...) Expand 10 before | Expand all | Expand 10 after
10930 } else { 10931 } else {
10931 value &= ~(1 << bit_position); 10932 value &= ~(1 << bit_position);
10932 } 10933 }
10933 return value; 10934 return value;
10934 } 10935 }
10935 }; 10936 };
10936 10937
10937 } } // namespace v8::internal 10938 } } // namespace v8::internal
10938 10939
10939 #endif // V8_OBJECTS_H_ 10940 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698