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

Side by Side Diff: src/api.cc

Issue 19500022: Reland "Flush parallel recompilation queues on context dispose notification." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: comment addressed Created 7 years, 5 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/compiler.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 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 if (!ApiCheck(isolate->handle_scope_implementer()->LeaveLastContext(), 763 if (!ApiCheck(isolate->handle_scope_implementer()->LeaveLastContext(),
764 "v8::Context::Exit()", 764 "v8::Context::Exit()",
765 "Cannot exit non-entered context")) { 765 "Cannot exit non-entered context")) {
766 return; 766 return;
767 } 767 }
768 768
769 // Content of 'last_context' could be NULL. 769 // Content of 'last_context' could be NULL.
770 i::Context* last_context = 770 i::Context* last_context =
771 isolate->handle_scope_implementer()->RestoreContext(); 771 isolate->handle_scope_implementer()->RestoreContext();
772 isolate->set_context(last_context); 772 isolate->set_context(last_context);
773 isolate->set_context_exit_happened(true);
774 } 773 }
775 774
776 775
777 static void* DecodeSmiToAligned(i::Object* value, const char* location) { 776 static void* DecodeSmiToAligned(i::Object* value, const char* location) {
778 ApiCheck(value->IsSmi(), location, "Not a Smi"); 777 ApiCheck(value->IsSmi(), location, "Not a Smi");
779 return reinterpret_cast<void*>(value); 778 return reinterpret_cast<void*>(value);
780 } 779 }
781 780
782 781
783 static i::Smi* EncodeAlignedAsSmi(void* value, const char* location) { 782 static i::Smi* EncodeAlignedAsSmi(void* value, const char* location) {
(...skipping 7269 matching lines...) Expand 10 before | Expand all | Expand 10 after
8053 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); 8052 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate());
8054 Address callback_address = 8053 Address callback_address =
8055 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 8054 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
8056 VMState<EXTERNAL> state(isolate); 8055 VMState<EXTERNAL> state(isolate);
8057 ExternalCallbackScope call_scope(isolate, callback_address); 8056 ExternalCallbackScope call_scope(isolate, callback_address);
8058 return callback(info); 8057 return callback(info);
8059 } 8058 }
8060 8059
8061 8060
8062 } } // namespace v8::internal 8061 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698