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

Side by Side Diff: src/objects.h

Issue 885643004: new classes: assert that constructors are not callable and rewrite 'return;' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix bit width Created 5 years, 10 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/messages.js ('k') | src/parser.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 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 7177 matching lines...) Expand 10 before | Expand all | Expand 10 after
7188 kIsAnonymous, 7188 kIsAnonymous,
7189 kNameShouldPrintAsAnonymous, 7189 kNameShouldPrintAsAnonymous,
7190 kIsFunction, 7190 kIsFunction,
7191 kDontCache, 7191 kDontCache,
7192 kDontFlush, 7192 kDontFlush,
7193 kIsArrow, 7193 kIsArrow,
7194 kIsGenerator, 7194 kIsGenerator,
7195 kIsConciseMethod, 7195 kIsConciseMethod,
7196 kIsAccessorFunction, 7196 kIsAccessorFunction,
7197 kIsDefaultConstructor, 7197 kIsDefaultConstructor,
7198 kIsBaseConstructor,
7198 kIsSubclassConstructor, 7199 kIsSubclassConstructor,
7199 kIsAsmFunction, 7200 kIsAsmFunction,
7200 kDeserialized, 7201 kDeserialized,
7201 kCompilerHintsCount // Pseudo entry 7202 kCompilerHintsCount // Pseudo entry
7202 }; 7203 };
7203 // Add hints for other modes when they're added. 7204 // Add hints for other modes when they're added.
7204 STATIC_ASSERT(LANGUAGE_END == 3); 7205 STATIC_ASSERT(LANGUAGE_END == 3);
7205 7206
7206 class FunctionKindBits : public BitField<FunctionKind, kIsArrow, 6> {}; 7207 class FunctionKindBits : public BitField<FunctionKind, kIsArrow, 7> {};
7207 7208
7208 class DeoptCountBits : public BitField<int, 0, 4> {}; 7209 class DeoptCountBits : public BitField<int, 0, 4> {};
7209 class OptReenableTriesBits : public BitField<int, 4, 18> {}; 7210 class OptReenableTriesBits : public BitField<int, 4, 18> {};
7210 class ICAgeBits : public BitField<int, 22, 8> {}; 7211 class ICAgeBits : public BitField<int, 22, 8> {};
7211 7212
7212 class OptCountBits : public BitField<int, 0, 22> {}; 7213 class OptCountBits : public BitField<int, 0, 22> {};
7213 class DisabledOptimizationReasonBits : public BitField<int, 22, 8> {}; 7214 class DisabledOptimizationReasonBits : public BitField<int, 22, 8> {};
7214 7215
7215 private: 7216 private:
7216 #if V8_HOST_ARCH_32_BIT 7217 #if V8_HOST_ARCH_32_BIT
(...skipping 3738 matching lines...) Expand 10 before | Expand all | Expand 10 after
10955 } else { 10956 } else {
10956 value &= ~(1 << bit_position); 10957 value &= ~(1 << bit_position);
10957 } 10958 }
10958 return value; 10959 return value;
10959 } 10960 }
10960 }; 10961 };
10961 10962
10962 } } // namespace v8::internal 10963 } } // namespace v8::internal
10963 10964
10964 #endif // V8_OBJECTS_H_ 10965 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698