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/debug.cc

Issue 1153483002: [turbofan] Enable deoptimization for non-asm.js TurboFan code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Michis comment. REBASE Created 5 years, 7 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
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | src/deoptimizer.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1864 matching lines...) Expand 10 before | Expand all | Expand 10 after
1875 if (kind == Code::FUNCTION || 1875 if (kind == Code::FUNCTION ||
1876 (kind == Code::BUILTIN && // Abort in-flight compilation. 1876 (kind == Code::BUILTIN && // Abort in-flight compilation.
1877 (function->IsInOptimizationQueue() || 1877 (function->IsInOptimizationQueue() ||
1878 function->IsMarkedForOptimization() || 1878 function->IsMarkedForOptimization() ||
1879 function->IsMarkedForConcurrentOptimization()))) { 1879 function->IsMarkedForConcurrentOptimization()))) {
1880 function->ReplaceCode(fallback); 1880 function->ReplaceCode(fallback);
1881 } 1881 }
1882 if (kind == Code::OPTIMIZED_FUNCTION) { 1882 if (kind == Code::OPTIMIZED_FUNCTION) {
1883 // Optimized code can only get here if DeoptimizeAll did not 1883 // Optimized code can only get here if DeoptimizeAll did not
1884 // deoptimize turbo fan code. 1884 // deoptimize turbo fan code.
1885 DCHECK(!FLAG_turbo_deoptimization); 1885 DCHECK(!FLAG_turbo_asm_deoptimization);
1886 DCHECK(function->shared()->asm_function());
1886 DCHECK(function->code()->is_turbofanned()); 1887 DCHECK(function->code()->is_turbofanned());
1887 function->ReplaceCode(fallback); 1888 function->ReplaceCode(fallback);
1888 } 1889 }
1889 } else if (obj->IsJSGeneratorObject()) { 1890 } else if (obj->IsJSGeneratorObject()) {
1890 JSGeneratorObject* gen = JSGeneratorObject::cast(obj); 1891 JSGeneratorObject* gen = JSGeneratorObject::cast(obj);
1891 if (!gen->is_suspended()) continue; 1892 if (!gen->is_suspended()) continue;
1892 1893
1893 JSFunction* fun = gen->function(); 1894 JSFunction* fun = gen->function();
1894 DCHECK_EQ(fun->code()->kind(), Code::FUNCTION); 1895 DCHECK_EQ(fun->code()->kind(), Code::FUNCTION);
1895 if (fun->code()->has_debug_break_slots()) continue; 1896 if (fun->code()->has_debug_break_slots()) continue;
(...skipping 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after
3361 logger_->DebugEvent("Put", message.text()); 3362 logger_->DebugEvent("Put", message.text());
3362 } 3363 }
3363 3364
3364 3365
3365 void LockingCommandMessageQueue::Clear() { 3366 void LockingCommandMessageQueue::Clear() {
3366 base::LockGuard<base::Mutex> lock_guard(&mutex_); 3367 base::LockGuard<base::Mutex> lock_guard(&mutex_);
3367 queue_.Clear(); 3368 queue_.Clear();
3368 } 3369 }
3369 3370
3370 } } // namespace v8::internal 3371 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698