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

Side by Side Diff: src/scopeinfo.h

Issue 6685119: [Arguments] Remove the arguments shadow symbol. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/arguments
Patch Set: Created 9 years, 9 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
« src/ia32/full-codegen-ia32.cc ('K') | « src/runtime-profiler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 public : 105 public :
106 106
107 static SerializedScopeInfo* cast(Object* object) { 107 static SerializedScopeInfo* cast(Object* object) {
108 ASSERT(object->IsFixedArray()); 108 ASSERT(object->IsFixedArray());
109 return reinterpret_cast<SerializedScopeInfo*>(object); 109 return reinterpret_cast<SerializedScopeInfo*>(object);
110 } 110 }
111 111
112 // Does this scope call eval? 112 // Does this scope call eval?
113 bool CallsEval(); 113 bool CallsEval();
114 114
115 // Does this scope have an arguments shadow?
116 bool HasArgumentsShadow() {
117 return StackSlotIndex(Heap::arguments_shadow_symbol()) >= 0;
118 }
119
120 // Return the number of stack slots for code. 115 // Return the number of stack slots for code.
121 int NumberOfStackSlots(); 116 int NumberOfStackSlots();
122 117
123 // Return the number of context slots for code. 118 // Return the number of context slots for code.
124 int NumberOfContextSlots(); 119 int NumberOfContextSlots();
125 120
126 // Return if this has context slots besides MIN_CONTEXT_SLOTS; 121 // Return if this has context slots besides MIN_CONTEXT_SLOTS;
127 bool HasHeapAllocatedLocals(); 122 bool HasHeapAllocatedLocals();
128 123
129 // Lookup support for serialized scope info. Returns the 124 // Lookup support for serialized scope info. Returns the
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 }; 224 };
230 225
231 static Key keys_[kLength]; 226 static Key keys_[kLength];
232 static uint32_t values_[kLength]; 227 static uint32_t values_[kLength];
233 }; 228 };
234 229
235 230
236 } } // namespace v8::internal 231 } } // namespace v8::internal
237 232
238 #endif // V8_SCOPEINFO_H_ 233 #endif // V8_SCOPEINFO_H_
OLDNEW
« src/ia32/full-codegen-ia32.cc ('K') | « src/runtime-profiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698