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

Side by Side Diff: src/scopeinfo.h

Issue 7187007: Merge arguments branch to bleeding edge (second try). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Undelete external-array test. Created 9 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 | Annotate | Revision Log
« no previous file with comments | « src/runtime-profiler.cc ('k') | src/scopes.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 ASSERT(object->IsFixedArray()); 110 ASSERT(object->IsFixedArray());
111 return reinterpret_cast<SerializedScopeInfo*>(object); 111 return reinterpret_cast<SerializedScopeInfo*>(object);
112 } 112 }
113 113
114 // Does this scope call eval? 114 // Does this scope call eval?
115 bool CallsEval(); 115 bool CallsEval();
116 116
117 // Is this scope a strict mode scope? 117 // Is this scope a strict mode scope?
118 bool IsStrictMode(); 118 bool IsStrictMode();
119 119
120 // Does this scope have an arguments shadow?
121 bool HasArgumentsShadow() {
122 return StackSlotIndex(GetHeap()->arguments_shadow_symbol()) >= 0;
123 }
124
125 // Return the number of stack slots for code. 120 // Return the number of stack slots for code.
126 int NumberOfStackSlots(); 121 int NumberOfStackSlots();
127 122
128 // Return the number of context slots for code. 123 // Return the number of context slots for code.
129 int NumberOfContextSlots(); 124 int NumberOfContextSlots();
130 125
131 // Return if this has context slots besides MIN_CONTEXT_SLOTS; 126 // Return if this has context slots besides MIN_CONTEXT_SLOTS;
132 bool HasHeapAllocatedLocals(); 127 bool HasHeapAllocatedLocals();
133 128
134 // Lookup support for serialized scope info. Returns the 129 // Lookup support for serialized scope info. Returns the
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 uint32_t values_[kLength]; 240 uint32_t values_[kLength];
246 241
247 friend class Isolate; 242 friend class Isolate;
248 DISALLOW_COPY_AND_ASSIGN(ContextSlotCache); 243 DISALLOW_COPY_AND_ASSIGN(ContextSlotCache);
249 }; 244 };
250 245
251 246
252 } } // namespace v8::internal 247 } } // namespace v8::internal
253 248
254 #endif // V8_SCOPEINFO_H_ 249 #endif // V8_SCOPEINFO_H_
OLDNEW
« no previous file with comments | « src/runtime-profiler.cc ('k') | src/scopes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698