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

Side by Side Diff: src/objects.cc

Issue 19956004: Flush parallel recompilation queues on context dispose notification. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | « src/liveedit.cc ('k') | src/optimizing-compiler-thread.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 9216 matching lines...) Expand 10 before | Expand all | Expand 10 after
9227 set_code_no_write_barrier( 9227 set_code_no_write_barrier(
9228 GetIsolate()->builtins()->builtin(Builtins::kLazyRecompile)); 9228 GetIsolate()->builtins()->builtin(Builtins::kLazyRecompile));
9229 // No write barrier required, since the builtin is part of the root set. 9229 // No write barrier required, since the builtin is part of the root set.
9230 } 9230 }
9231 9231
9232 9232
9233 void JSFunction::MarkForParallelRecompilation() { 9233 void JSFunction::MarkForParallelRecompilation() {
9234 ASSERT(is_compiled() || GetIsolate()->DebuggerHasBreakPoints()); 9234 ASSERT(is_compiled() || GetIsolate()->DebuggerHasBreakPoints());
9235 ASSERT(!IsOptimized()); 9235 ASSERT(!IsOptimized());
9236 ASSERT(shared()->allows_lazy_compilation() || code()->optimizable()); 9236 ASSERT(shared()->allows_lazy_compilation() || code()->optimizable());
9237 if (!FLAG_parallel_recompilation) { 9237 ASSERT(FLAG_parallel_recompilation);
9238 JSFunction::MarkForLazyRecompilation();
9239 return;
9240 }
9241 if (FLAG_trace_parallel_recompilation) { 9238 if (FLAG_trace_parallel_recompilation) {
9242 PrintF(" ** Marking "); 9239 PrintF(" ** Marking ");
9243 PrintName(); 9240 PrintName();
9244 PrintF(" for parallel recompilation.\n"); 9241 PrintF(" for parallel recompilation.\n");
9245 } 9242 }
9246 set_code_no_write_barrier( 9243 set_code_no_write_barrier(
9247 GetIsolate()->builtins()->builtin(Builtins::kParallelRecompile)); 9244 GetIsolate()->builtins()->builtin(Builtins::kParallelRecompile));
9248 // No write barrier required, since the builtin is part of the root set. 9245 // No write barrier required, since the builtin is part of the root set.
9249 } 9246 }
9250 9247
(...skipping 6716 matching lines...) Expand 10 before | Expand all | Expand 10 after
15967 15964
15968 void PropertyCell::AddDependentCode(Handle<Code> code) { 15965 void PropertyCell::AddDependentCode(Handle<Code> code) {
15969 Handle<DependentCode> codes = DependentCode::Insert( 15966 Handle<DependentCode> codes = DependentCode::Insert(
15970 Handle<DependentCode>(dependent_code()), 15967 Handle<DependentCode>(dependent_code()),
15971 DependentCode::kPropertyCellChangedGroup, code); 15968 DependentCode::kPropertyCellChangedGroup, code);
15972 if (*codes != dependent_code()) set_dependent_code(*codes); 15969 if (*codes != dependent_code()) set_dependent_code(*codes);
15973 } 15970 }
15974 15971
15975 15972
15976 } } // namespace v8::internal 15973 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/liveedit.cc ('k') | src/optimizing-compiler-thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698