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

Side by Side Diff: src/isolate.h

Issue 10872084: Allocate block-scoped global bindings to global context. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 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 | « src/heap.cc ('k') | src/isolate.cc » ('j') | src/objects.cc » ('J')
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 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 Failure* TerminateExecution(); 757 Failure* TerminateExecution();
758 758
759 // Administration 759 // Administration
760 void Iterate(ObjectVisitor* v); 760 void Iterate(ObjectVisitor* v);
761 void Iterate(ObjectVisitor* v, ThreadLocalTop* t); 761 void Iterate(ObjectVisitor* v, ThreadLocalTop* t);
762 char* Iterate(ObjectVisitor* v, char* t); 762 char* Iterate(ObjectVisitor* v, char* t);
763 void IterateThread(ThreadVisitor* v); 763 void IterateThread(ThreadVisitor* v);
764 void IterateThread(ThreadVisitor* v, char* t); 764 void IterateThread(ThreadVisitor* v, char* t);
765 765
766 766
767 // Returns the current native context. 767 // Returns the current native and global context.
768 Handle<Context> native_context(); 768 Handle<Context> native_context();
769 Handle<Context> global_context();
769 770
770 // Returns the native context of the calling JavaScript code. That 771 // Returns the native context of the calling JavaScript code. That
771 // is, the native context of the top-most JavaScript frame. 772 // is, the native context of the top-most JavaScript frame.
772 Handle<Context> GetCallingNativeContext(); 773 Handle<Context> GetCallingNativeContext();
773 774
774 void RegisterTryCatchHandler(v8::TryCatch* that); 775 void RegisterTryCatchHandler(v8::TryCatch* that);
775 void UnregisterTryCatchHandler(v8::TryCatch* that); 776 void UnregisterTryCatchHandler(v8::TryCatch* that);
776 777
777 char* ArchiveThread(char* to); 778 char* ArchiveThread(char* to);
778 char* RestoreThread(char* from); 779 char* RestoreThread(char* from);
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
1442 1443
1443 // Mark the native context with out of memory. 1444 // Mark the native context with out of memory.
1444 inline void Context::mark_out_of_memory() { 1445 inline void Context::mark_out_of_memory() {
1445 native_context()->set_out_of_memory(HEAP->true_value()); 1446 native_context()->set_out_of_memory(HEAP->true_value());
1446 } 1447 }
1447 1448
1448 1449
1449 } } // namespace v8::internal 1450 } } // namespace v8::internal
1450 1451
1451 #endif // V8_ISOLATE_H_ 1452 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/isolate.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698