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

Side by Side Diff: src/objects.h

Issue 1179893002: Add script context with context-allocated "const this" (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Factor out Variable::HasThisName 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);
4091 4092
4092 // Serializes empty scope info. 4093 // Serializes empty scope info.
4093 static ScopeInfo* Empty(Isolate* isolate); 4094 static ScopeInfo* Empty(Isolate* isolate);
4094 4095
4095 #ifdef DEBUG 4096 #ifdef DEBUG
4096 void Print(); 4097 void Print();
4097 #endif 4098 #endif
4098 4099
4099 // The layout of the static part of a ScopeInfo is as follows. Each entry is 4100 // The layout of the static part of a ScopeInfo is as follows. Each entry is
4100 // numeric and occupies one array slot. 4101 // numeric and occupies one array slot.
(...skipping 6778 matching lines...) Expand 10 before | Expand all | Expand 10 after
10879 } else { 10880 } else {
10880 value &= ~(1 << bit_position); 10881 value &= ~(1 << bit_position);
10881 } 10882 }
10882 return value; 10883 return value;
10883 } 10884 }
10884 }; 10885 };
10885 10886
10886 } } // namespace v8::internal 10887 } } // namespace v8::internal
10887 10888
10888 #endif // V8_OBJECTS_H_ 10889 #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