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

Side by Side Diff: src/api.cc

Issue 22379002: Re-reland "Flush parallel recompilation queues on context dispose notification" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed more comments. Created 7 years, 4 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 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 if (!ApiCheck(isolate->handle_scope_implementer()->LeaveLastContext(), 764 if (!ApiCheck(isolate->handle_scope_implementer()->LeaveLastContext(),
765 "v8::Context::Exit()", 765 "v8::Context::Exit()",
766 "Cannot exit non-entered context")) { 766 "Cannot exit non-entered context")) {
767 return; 767 return;
768 } 768 }
769 769
770 // Content of 'last_context' could be NULL. 770 // Content of 'last_context' could be NULL.
771 i::Context* last_context = 771 i::Context* last_context =
772 isolate->handle_scope_implementer()->RestoreContext(); 772 isolate->handle_scope_implementer()->RestoreContext();
773 isolate->set_context(last_context); 773 isolate->set_context(last_context);
774 isolate->set_context_exit_happened(true);
775 } 774 }
776 775
777 776
778 static void* DecodeSmiToAligned(i::Object* value, const char* location) { 777 static void* DecodeSmiToAligned(i::Object* value, const char* location) {
779 ApiCheck(value->IsSmi(), location, "Not a Smi"); 778 ApiCheck(value->IsSmi(), location, "Not a Smi");
780 return reinterpret_cast<void*>(value); 779 return reinterpret_cast<void*>(value);
781 } 780 }
782 781
783 782
784 static i::Smi* EncodeAlignedAsSmi(void* value, const char* location) { 783 static i::Smi* EncodeAlignedAsSmi(void* value, const char* location) {
(...skipping 7375 matching lines...) Expand 10 before | Expand all | Expand 10 after
8160 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); 8159 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate());
8161 Address callback_address = 8160 Address callback_address =
8162 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 8161 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
8163 VMState<EXTERNAL> state(isolate); 8162 VMState<EXTERNAL> state(isolate);
8164 ExternalCallbackScope call_scope(isolate, callback_address); 8163 ExternalCallbackScope call_scope(isolate, callback_address);
8165 return callback(info); 8164 return callback(info);
8166 } 8165 }
8167 8166
8168 8167
8169 } } // namespace v8::internal 8168 } } // 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