Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 4279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4290 | 4290 |
| 4291 // Location of the function variable for named function expressions. | 4291 // Location of the function variable for named function expressions. |
| 4292 enum FunctionVariableInfo { | 4292 enum FunctionVariableInfo { |
| 4293 NONE, // No function name present. | 4293 NONE, // No function name present. |
| 4294 STACK, // Function | 4294 STACK, // Function |
| 4295 CONTEXT, | 4295 CONTEXT, |
| 4296 UNUSED | 4296 UNUSED |
| 4297 }; | 4297 }; |
| 4298 | 4298 |
| 4299 // Properties of scopes. | 4299 // Properties of scopes. |
| 4300 class ScopeTypeField: public BitField<ScopeType, 0, 3> {}; | 4300 class ScopeTypeField: public BitField<ScopeType, 0, 4> {}; |
| 4301 class CallsEvalField: public BitField<bool, 3, 1> {}; | 4301 class CallsEvalField: public BitField<bool, 4, 1> {}; |
| 4302 class StrictModeField: public BitField<StrictMode, 4, 1> {}; | 4302 class StrictModeField: public BitField<StrictMode, 5, 1> {}; |
| 4303 class FunctionVariableField: public BitField<FunctionVariableInfo, 5, 2> {}; | 4303 class FunctionVariableField: public BitField<FunctionVariableInfo, 6, 2> {}; |
| 4304 class FunctionVariableMode: public BitField<VariableMode, 7, 3> {}; | 4304 class FunctionVariableMode: public BitField<VariableMode, 8, 3> {}; |
| 4305 class AsmModuleField : public BitField<bool, 10, 1> {}; | 4305 class AsmModuleField : public BitField<bool, 11, 1> {}; |
|
rossberg
2014/10/15 12:56:32
Nit: while you're here, reformat these to match th
aperez
2014/10/15 17:09:51
Acknowledged.
| |
| 4306 class AsmFunctionField : public BitField<bool, 11, 1> {}; | 4306 class AsmFunctionField : public BitField<bool, 12, 1> {}; |
| 4307 | 4307 |
| 4308 // BitFields representing the encoded information for context locals in the | 4308 // BitFields representing the encoded information for context locals in the |
| 4309 // ContextLocalInfoEntries part. | 4309 // ContextLocalInfoEntries part. |
| 4310 class ContextLocalMode: public BitField<VariableMode, 0, 3> {}; | 4310 class ContextLocalMode: public BitField<VariableMode, 0, 3> {}; |
| 4311 class ContextLocalInitFlag: public BitField<InitializationFlag, 3, 1> {}; | 4311 class ContextLocalInitFlag: public BitField<InitializationFlag, 3, 1> {}; |
| 4312 class ContextLocalMaybeAssignedFlag | 4312 class ContextLocalMaybeAssignedFlag |
| 4313 : public BitField<MaybeAssignedFlag, 4, 1> {}; | 4313 : public BitField<MaybeAssignedFlag, 4, 1> {}; |
| 4314 }; | 4314 }; |
| 4315 | 4315 |
| 4316 | 4316 |
| (...skipping 6524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 10841 } else { | 10841 } else { |
| 10842 value &= ~(1 << bit_position); | 10842 value &= ~(1 << bit_position); |
| 10843 } | 10843 } |
| 10844 return value; | 10844 return value; |
| 10845 } | 10845 } |
| 10846 }; | 10846 }; |
| 10847 | 10847 |
| 10848 } } // namespace v8::internal | 10848 } } // namespace v8::internal |
| 10849 | 10849 |
| 10850 #endif // V8_OBJECTS_H_ | 10850 #endif // V8_OBJECTS_H_ |
| OLD | NEW |