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

Side by Side Diff: src/objects.cc

Issue 21156009: Re-revert "Flush parallel recompilation queues on context dispose notification" (r15883). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | « 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 v->VisitCodeEntry(this->address() + kCodeEntryOffset); 9227 v->VisitCodeEntry(this->address() + kCodeEntryOffset);
9228 IteratePointers(v, kCodeEntryOffset + kPointerSize, object_size); 9228 IteratePointers(v, kCodeEntryOffset + kPointerSize, object_size);
9229 } 9229 }
9230 9230
9231 9231
9232 void JSFunction::MarkForLazyRecompilation() { 9232 void JSFunction::MarkForLazyRecompilation() {
9233 ASSERT(is_compiled() || GetIsolate()->DebuggerHasBreakPoints()); 9233 ASSERT(is_compiled() || GetIsolate()->DebuggerHasBreakPoints());
9234 ASSERT(!IsOptimized()); 9234 ASSERT(!IsOptimized());
9235 ASSERT(shared()->allows_lazy_compilation() || 9235 ASSERT(shared()->allows_lazy_compilation() ||
9236 code()->optimizable()); 9236 code()->optimizable());
9237 ASSERT(!shared()->is_generator());
9238 set_code_no_write_barrier( 9237 set_code_no_write_barrier(
9239 GetIsolate()->builtins()->builtin(Builtins::kLazyRecompile)); 9238 GetIsolate()->builtins()->builtin(Builtins::kLazyRecompile));
9240 // No write barrier required, since the builtin is part of the root set. 9239 // No write barrier required, since the builtin is part of the root set.
9241 } 9240 }
9242 9241
9243 9242
9244 void JSFunction::MarkForParallelRecompilation() { 9243 void JSFunction::MarkForParallelRecompilation() {
9245 ASSERT(is_compiled() || GetIsolate()->DebuggerHasBreakPoints()); 9244 ASSERT(is_compiled() || GetIsolate()->DebuggerHasBreakPoints());
9246 ASSERT(!IsOptimized()); 9245 ASSERT(!IsOptimized());
9247 ASSERT(shared()->allows_lazy_compilation() || code()->optimizable()); 9246 ASSERT(shared()->allows_lazy_compilation() || code()->optimizable());
9248 ASSERT(!shared()->is_generator()); 9247 if (!FLAG_parallel_recompilation) {
9249 ASSERT(FLAG_parallel_recompilation); 9248 JSFunction::MarkForLazyRecompilation();
9249 return;
9250 }
9250 if (FLAG_trace_parallel_recompilation) { 9251 if (FLAG_trace_parallel_recompilation) {
9251 PrintF(" ** Marking "); 9252 PrintF(" ** Marking ");
9252 PrintName(); 9253 PrintName();
9253 PrintF(" for parallel recompilation.\n"); 9254 PrintF(" for parallel recompilation.\n");
9254 } 9255 }
9255 set_code_no_write_barrier( 9256 set_code_no_write_barrier(
9256 GetIsolate()->builtins()->builtin(Builtins::kParallelRecompile)); 9257 GetIsolate()->builtins()->builtin(Builtins::kParallelRecompile));
9257 // No write barrier required, since the builtin is part of the root set. 9258 // No write barrier required, since the builtin is part of the root set.
9258 } 9259 }
9259 9260
(...skipping 6711 matching lines...) Expand 10 before | Expand all | Expand 10 after
15971 15972
15972 void PropertyCell::AddDependentCode(Handle<Code> code) { 15973 void PropertyCell::AddDependentCode(Handle<Code> code) {
15973 Handle<DependentCode> codes = DependentCode::Insert( 15974 Handle<DependentCode> codes = DependentCode::Insert(
15974 Handle<DependentCode>(dependent_code()), 15975 Handle<DependentCode>(dependent_code()),
15975 DependentCode::kPropertyCellChangedGroup, code); 15976 DependentCode::kPropertyCellChangedGroup, code);
15976 if (*codes != dependent_code()) set_dependent_code(*codes); 15977 if (*codes != dependent_code()) set_dependent_code(*codes);
15977 } 15978 }
15978 15979
15979 15980
15980 } } // namespace v8::internal 15981 } } // 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