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

Side by Side Diff: src/heap-profiler.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
OLDNEW
1 // Copyright 2009-2010 the V8 project authors. All rights reserved. 1 // Copyright 2009-2010 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 void Print(StringStream* accumulator) const; 148 void Print(StringStream* accumulator) const;
149 // Allows null clusters to be printed. 149 // Allows null clusters to be printed.
150 void DebugPrint(StringStream* accumulator) const; 150 void DebugPrint(StringStream* accumulator) const;
151 151
152 private: 152 private:
153 static String* FromSpecialCase(SpecialCase special) { 153 static String* FromSpecialCase(SpecialCase special) {
154 // We use symbols that are illegal JS identifiers to identify special cases. 154 // We use symbols that are illegal JS identifiers to identify special cases.
155 // Their actual value is irrelevant for us. 155 // Their actual value is irrelevant for us.
156 switch (special) { 156 switch (special) {
157 case ROOTS: return Heap::result_symbol(); 157 case ROOTS: return Heap::result_symbol();
158 case GLOBAL_PROPERTY: return Heap::code_symbol(); 158 case GLOBAL_PROPERTY: return Heap::catch_var_symbol();
159 case CODE: return Heap::arguments_shadow_symbol(); 159 case CODE: return Heap::code_symbol();
160 case SELF: return Heap::catch_var_symbol(); 160 case SELF: return Heap::this_symbol();
161 default: 161 default:
162 UNREACHABLE(); 162 UNREACHABLE();
163 return NULL; 163 return NULL;
164 } 164 }
165 } 165 }
166 166
167 String* constructor_; 167 String* constructor_;
168 Object* instance_; 168 Object* instance_;
169 }; 169 };
170 170
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 private: 378 private:
379 static void DoRecordJSObjectAllocation(Object* obj); 379 static void DoRecordJSObjectAllocation(Object* obj);
380 static bool can_log_; 380 static bool can_log_;
381 }; 381 };
382 382
383 #endif // ENABLE_LOGGING_AND_PROFILING 383 #endif // ENABLE_LOGGING_AND_PROFILING
384 384
385 } } // namespace v8::internal 385 } } // namespace v8::internal
386 386
387 #endif // V8_HEAP_PROFILER_H_ 387 #endif // V8_HEAP_PROFILER_H_
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/ia32/full-codegen-ia32.cc » ('j') | src/ia32/full-codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698