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 4242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4253 // must be an internalized string. | 4253 // must be an internalized string. |
4254 int FunctionContextSlotIndex(String* name, VariableMode* mode); | 4254 int FunctionContextSlotIndex(String* name, VariableMode* mode); |
4255 | 4255 |
4256 | 4256 |
4257 // Copies all the context locals into an object used to materialize a scope. | 4257 // Copies all the context locals into an object used to materialize a scope. |
4258 static bool CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info, | 4258 static bool CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info, |
4259 Handle<Context> context, | 4259 Handle<Context> context, |
4260 Handle<JSObject> scope_object); | 4260 Handle<JSObject> scope_object); |
4261 | 4261 |
4262 | 4262 |
4263 static Handle<ScopeInfo> Create(Scope* scope, Zone* zone); | 4263 static Handle<ScopeInfo> Create(Isolate* isolate, Zone* zone, Scope* scope); |
4264 | 4264 |
4265 // Serializes empty scope info. | 4265 // Serializes empty scope info. |
4266 static ScopeInfo* Empty(Isolate* isolate); | 4266 static ScopeInfo* Empty(Isolate* isolate); |
4267 | 4267 |
4268 #ifdef DEBUG | 4268 #ifdef DEBUG |
4269 void Print(); | 4269 void Print(); |
4270 #endif | 4270 #endif |
4271 | 4271 |
4272 // The layout of the static part of a ScopeInfo is as follows. Each entry is | 4272 // The layout of the static part of a ScopeInfo is as follows. Each entry is |
4273 // numeric and occupies one array slot. | 4273 // numeric and occupies one array slot. |
(...skipping 6654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10928 } else { | 10928 } else { |
10929 value &= ~(1 << bit_position); | 10929 value &= ~(1 << bit_position); |
10930 } | 10930 } |
10931 return value; | 10931 return value; |
10932 } | 10932 } |
10933 }; | 10933 }; |
10934 | 10934 |
10935 } } // namespace v8::internal | 10935 } } // namespace v8::internal |
10936 | 10936 |
10937 #endif // V8_OBJECTS_H_ | 10937 #endif // V8_OBJECTS_H_ |
OLD | NEW |