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

Side by Side Diff: src/objects.h

Issue 2314483002: Store the ScopeInfo in WithContexts (Closed)
Patch Set: updates Created 4 years, 3 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/interpreter/interpreter.cc ('k') | src/runtime/runtime.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #include <memory> 9 #include <memory>
10 10
(...skipping 4374 matching lines...) Expand 10 before | Expand all | Expand 10 after
4385 int FunctionContextSlotIndex(String* name); 4385 int FunctionContextSlotIndex(String* name);
4386 4386
4387 // Lookup support for serialized scope info. Returns the receiver context 4387 // Lookup support for serialized scope info. Returns the receiver context
4388 // slot index if scope has a "this" binding, and the binding is 4388 // slot index if scope has a "this" binding, and the binding is
4389 // context-allocated. Otherwise returns a value < 0. 4389 // context-allocated. Otherwise returns a value < 0.
4390 int ReceiverContextSlotIndex(); 4390 int ReceiverContextSlotIndex();
4391 4391
4392 FunctionKind function_kind(); 4392 FunctionKind function_kind();
4393 4393
4394 static Handle<ScopeInfo> Create(Isolate* isolate, Zone* zone, Scope* scope); 4394 static Handle<ScopeInfo> Create(Isolate* isolate, Zone* zone, Scope* scope);
4395 static Handle<ScopeInfo> CreateForWithScope(Isolate* isolate);
4395 static Handle<ScopeInfo> CreateGlobalThisBinding(Isolate* isolate); 4396 static Handle<ScopeInfo> CreateGlobalThisBinding(Isolate* isolate);
4396 4397
4397 // Serializes empty scope info. 4398 // Serializes empty scope info.
4398 static ScopeInfo* Empty(Isolate* isolate); 4399 static ScopeInfo* Empty(Isolate* isolate);
4399 4400
4400 #ifdef DEBUG 4401 #ifdef DEBUG
4401 void Print(); 4402 void Print();
4402 #endif 4403 #endif
4403 4404
4404 // The layout of the static part of a ScopeInfo is as follows. Each entry is 4405 // The layout of the static part of a ScopeInfo is as follows. Each entry is
(...skipping 6798 matching lines...) Expand 10 before | Expand all | Expand 10 after
11203 } 11204 }
11204 return value; 11205 return value;
11205 } 11206 }
11206 }; 11207 };
11207 11208
11208 11209
11209 } // NOLINT, false-positive due to second-order macros. 11210 } // NOLINT, false-positive due to second-order macros.
11210 } // NOLINT, false-positive due to second-order macros. 11211 } // NOLINT, false-positive due to second-order macros.
11211 11212
11212 #endif // V8_OBJECTS_H_ 11213 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698