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

Side by Side Diff: src/objects.h

Issue 1177903004: Revert of Add script context with context-allocated "const this" (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Created 5 years, 6 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/mips64/full-codegen-mips64.cc ('k') | src/ppc/full-codegen-ppc.cc » ('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 4037 matching lines...) Expand 10 before | Expand all | Expand 10 after
4048 bool block_scope_is_class_scope(); 4048 bool block_scope_is_class_scope();
4049 FunctionKind function_kind(); 4049 FunctionKind function_kind();
4050 4050
4051 // Copies all the context locals into an object used to materialize a scope. 4051 // Copies all the context locals into an object used to materialize a scope.
4052 static bool CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info, 4052 static bool CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info,
4053 Handle<Context> context, 4053 Handle<Context> context,
4054 Handle<JSObject> scope_object); 4054 Handle<JSObject> scope_object);
4055 4055
4056 4056
4057 static Handle<ScopeInfo> Create(Isolate* isolate, Zone* zone, Scope* scope); 4057 static Handle<ScopeInfo> Create(Isolate* isolate, Zone* zone, Scope* scope);
4058 static Handle<ScopeInfo> CreateGlobalThisBinding(Isolate* isolate);
4059 4058
4060 // Serializes empty scope info. 4059 // Serializes empty scope info.
4061 static ScopeInfo* Empty(Isolate* isolate); 4060 static ScopeInfo* Empty(Isolate* isolate);
4062 4061
4063 #ifdef DEBUG 4062 #ifdef DEBUG
4064 void Print(); 4063 void Print();
4065 #endif 4064 #endif
4066 4065
4067 // The layout of the static part of a ScopeInfo is as follows. Each entry is 4066 // The layout of the static part of a ScopeInfo is as follows. Each entry is
4068 // numeric and occupies one array slot. 4067 // numeric and occupies one array slot.
(...skipping 6776 matching lines...) Expand 10 before | Expand all | Expand 10 after
10845 } else { 10844 } else {
10846 value &= ~(1 << bit_position); 10845 value &= ~(1 << bit_position);
10847 } 10846 }
10848 return value; 10847 return value;
10849 } 10848 }
10850 }; 10849 };
10851 10850
10852 } } // namespace v8::internal 10851 } } // namespace v8::internal
10853 10852
10854 #endif // V8_OBJECTS_H_ 10853 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mips64/full-codegen-mips64.cc ('k') | src/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698