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

Side by Side Diff: src/platform.h

Issue 67197: Start addressing massive arrays on the stack. There is hardly ever... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 8 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 | « no previous file | src/platform-freebsd.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 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 // Walk the stack. 201 // Walk the stack.
202 static const int kStackWalkError = -1; 202 static const int kStackWalkError = -1;
203 static const int kStackWalkMaxNameLen = 256; 203 static const int kStackWalkMaxNameLen = 256;
204 static const int kStackWalkMaxTextLen = 256; 204 static const int kStackWalkMaxTextLen = 256;
205 struct StackFrame { 205 struct StackFrame {
206 void* address; 206 void* address;
207 char text[kStackWalkMaxTextLen]; 207 char text[kStackWalkMaxTextLen];
208 }; 208 };
209 209
210 static int StackWalk(StackFrame* frames, int frames_size); 210 static int StackWalk(Vector<StackFrame> frames);
211 211
212 // Factory method for creating platform dependent Mutex. 212 // Factory method for creating platform dependent Mutex.
213 // Please use delete to reclaim the storage for the returned Mutex. 213 // Please use delete to reclaim the storage for the returned Mutex.
214 static Mutex* CreateMutex(); 214 static Mutex* CreateMutex();
215 215
216 // Factory method for creating platform dependent Semaphore. 216 // Factory method for creating platform dependent Semaphore.
217 // Please use delete to reclaim the storage for the returned Semaphore. 217 // Please use delete to reclaim the storage for the returned Semaphore.
218 static Semaphore* CreateSemaphore(int count); 218 static Semaphore* CreateSemaphore(int count);
219 219
220 // Factory method for creating platform dependent Socket. 220 // Factory method for creating platform dependent Socket.
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 bool active_; 519 bool active_;
520 PlatformData* data_; // Platform specific data. 520 PlatformData* data_; // Platform specific data.
521 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); 521 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler);
522 }; 522 };
523 523
524 #endif // ENABLE_LOGGING_AND_PROFILING 524 #endif // ENABLE_LOGGING_AND_PROFILING
525 525
526 } } // namespace v8::internal 526 } } // namespace v8::internal
527 527
528 #endif // V8_PLATFORM_H_ 528 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « no previous file | src/platform-freebsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698