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

Side by Side Diff: src/top.h

Issue 12826: RegExp stack and zone limits. (Closed)
Patch Set: Created 12 years 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
« src/parser.cc ('K') | « src/parser.cc ('k') | src/top.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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 return Handle<type>(context()->global_context()->name()); \ 264 return Handle<type>(context()->global_context()->name()); \
265 } 265 }
266 GLOBAL_CONTEXT_FIELDS(TOP_GLOBAL_CONTEXT_FIELD_ACCESSOR) 266 GLOBAL_CONTEXT_FIELDS(TOP_GLOBAL_CONTEXT_FIELD_ACCESSOR)
267 #undef TOP_GLOBAL_CONTEXT_FIELD_ACCESSOR 267 #undef TOP_GLOBAL_CONTEXT_FIELD_ACCESSOR
268 268
269 static inline ThreadLocalTop* GetCurrentThread() { return &thread_local_; } 269 static inline ThreadLocalTop* GetCurrentThread() { return &thread_local_; }
270 static int ArchiveSpacePerThread() { return sizeof(ThreadLocalTop); } 270 static int ArchiveSpacePerThread() { return sizeof(ThreadLocalTop); }
271 static char* ArchiveThread(char* to); 271 static char* ArchiveThread(char* to);
272 static char* RestoreThread(char* from); 272 static char* RestoreThread(char* from);
273 273
274 static const char* kStackOverflowMessage;
275
274 private: 276 private:
275 // The context that initiated this JS execution. 277 // The context that initiated this JS execution.
276 static ThreadLocalTop thread_local_; 278 static ThreadLocalTop thread_local_;
277 static void InitializeThreadLocal(); 279 static void InitializeThreadLocal();
278 static void PrintStackTrace(FILE* out, ThreadLocalTop* thread); 280 static void PrintStackTrace(FILE* out, ThreadLocalTop* thread);
279 static void MarkCompactPrologue(ThreadLocalTop* archived_thread_data); 281 static void MarkCompactPrologue(ThreadLocalTop* archived_thread_data);
280 static void MarkCompactEpilogue(ThreadLocalTop* archived_thread_data); 282 static void MarkCompactEpilogue(ThreadLocalTop* archived_thread_data);
281 283
282 // Debug. 284 // Debug.
283 // Mutex for serializing access to break control structures. 285 // Mutex for serializing access to break control structures.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 366
365 class ExecutionAccess BASE_EMBEDDED { 367 class ExecutionAccess BASE_EMBEDDED {
366 public: 368 public:
367 ExecutionAccess(); 369 ExecutionAccess();
368 ~ExecutionAccess(); 370 ~ExecutionAccess();
369 }; 371 };
370 372
371 } } // namespace v8::internal 373 } } // namespace v8::internal
372 374
373 #endif // V8_TOP_H_ 375 #endif // V8_TOP_H_
OLDNEW
« src/parser.cc ('K') | « src/parser.cc ('k') | src/top.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698