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

Side by Side Diff: src/objects.h

Issue 422923004: Track usage of "this" and "arguments" in Scope (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Do not propagate inner_uses_$foo out of normal functions, more tests Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/globals.h ('k') | src/preparser.h » ('j') | src/scopes.cc » ('J')
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 4279 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/preparser.h » ('j') | src/scopes.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698