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

Side by Side Diff: src/isolate.h

Issue 240213002: Removed Isolate::EnterDefaultIsolate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/isolate.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 return isolate_key_; 563 return isolate_key_;
564 } 564 }
565 565
566 // Returns the key used to store process-wide thread IDs. 566 // Returns the key used to store process-wide thread IDs.
567 static Thread::LocalStorageKey thread_id_key() { 567 static Thread::LocalStorageKey thread_id_key() {
568 return thread_id_key_; 568 return thread_id_key_;
569 } 569 }
570 570
571 static Thread::LocalStorageKey per_isolate_thread_data_key(); 571 static Thread::LocalStorageKey per_isolate_thread_data_key();
572 572
573 // If a client attempts to create a Locker without specifying an isolate,
574 // we assume that the client is using legacy behavior. Set up the current
575 // thread to be inside the implicit isolate (or fail a check if we have
576 // switched to non-legacy behavior).
577 static void EnterDefaultIsolate();
578
579 // Mutex for serializing access to break control structures. 573 // Mutex for serializing access to break control structures.
580 RecursiveMutex* break_access() { return &break_access_; } 574 RecursiveMutex* break_access() { return &break_access_; }
581 575
582 // Mutex for serializing access to debugger. 576 // Mutex for serializing access to debugger.
583 RecursiveMutex* debugger_access() { return &debugger_access_; } 577 RecursiveMutex* debugger_access() { return &debugger_access_; }
584 578
585 Address get_address_from_id(AddressId id); 579 Address get_address_from_id(AddressId id);
586 580
587 // Access to top context (where the current function object was created). 581 // Access to top context (where the current function object was created).
588 Context* context() { return thread_local_top_.context_; } 582 Context* context() { return thread_local_top_.context_; }
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
1556 } 1550 }
1557 1551
1558 EmbeddedVector<char, 128> filename_; 1552 EmbeddedVector<char, 128> filename_;
1559 FILE* file_; 1553 FILE* file_;
1560 int scope_depth_; 1554 int scope_depth_;
1561 }; 1555 };
1562 1556
1563 } } // namespace v8::internal 1557 } } // namespace v8::internal
1564 1558
1565 #endif // V8_ISOLATE_H_ 1559 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « no previous file | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698