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

Side by Side Diff: src/objects.h

Issue 1180043004: 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 4070 matching lines...) Expand 10 before | Expand all | Expand 10 after
4081 bool block_scope_is_class_scope(); 4081 bool block_scope_is_class_scope();
4082 FunctionKind function_kind(); 4082 FunctionKind function_kind();
4083 4083
4084 // Copies all the context locals into an object used to materialize a scope. 4084 // Copies all the context locals into an object used to materialize a scope.
4085 static bool CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info, 4085 static bool CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info,
4086 Handle<Context> context, 4086 Handle<Context> context,
4087 Handle<JSObject> scope_object); 4087 Handle<JSObject> scope_object);
4088 4088
4089 4089
4090 static Handle<ScopeInfo> Create(Isolate* isolate, Zone* zone, Scope* scope); 4090 static Handle<ScopeInfo> Create(Isolate* isolate, Zone* zone, Scope* scope);
4091 static Handle<ScopeInfo> CreateGlobalThisBinding(Isolate* isolate);
4092 4091
4093 // Serializes empty scope info. 4092 // Serializes empty scope info.
4094 static ScopeInfo* Empty(Isolate* isolate); 4093 static ScopeInfo* Empty(Isolate* isolate);
4095 4094
4096 #ifdef DEBUG 4095 #ifdef DEBUG
4097 void Print(); 4096 void Print();
4098 #endif 4097 #endif
4099 4098
4100 // The layout of the static part of a ScopeInfo is as follows. Each entry is 4099 // The layout of the static part of a ScopeInfo is as follows. Each entry is
4101 // numeric and occupies one array slot. 4100 // numeric and occupies one array slot.
(...skipping 6778 matching lines...) Expand 10 before | Expand all | Expand 10 after
10880 } else { 10879 } else {
10881 value &= ~(1 << bit_position); 10880 value &= ~(1 << bit_position);
10882 } 10881 }
10883 return value; 10882 return value;
10884 } 10883 }
10885 }; 10884 };
10886 10885
10887 } } // namespace v8::internal 10886 } } // namespace v8::internal
10888 10887
10889 #endif // V8_OBJECTS_H_ 10888 #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