| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |