| OLD | NEW |
| 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 1904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1915 if (kind == Code::FUNCTION || | 1915 if (kind == Code::FUNCTION || |
| 1916 (kind == Code::BUILTIN && // Abort in-flight compilation. | 1916 (kind == Code::BUILTIN && // Abort in-flight compilation. |
| 1917 (function->IsInOptimizationQueue() || | 1917 (function->IsInOptimizationQueue() || |
| 1918 function->IsMarkedForOptimization() || | 1918 function->IsMarkedForOptimization() || |
| 1919 function->IsMarkedForConcurrentOptimization()))) { | 1919 function->IsMarkedForConcurrentOptimization()))) { |
| 1920 function->ReplaceCode(fallback); | 1920 function->ReplaceCode(fallback); |
| 1921 } | 1921 } |
| 1922 if (kind == Code::OPTIMIZED_FUNCTION) { | 1922 if (kind == Code::OPTIMIZED_FUNCTION) { |
| 1923 // Optimized code can only get here if DeoptimizeAll did not | 1923 // Optimized code can only get here if DeoptimizeAll did not |
| 1924 // deoptimize turbo fan code. | 1924 // deoptimize turbo fan code. |
| 1925 DCHECK(!FLAG_turbo_deoptimization); | 1925 DCHECK(!FLAG_turbo_asm_deoptimization); |
| 1926 DCHECK(function->shared()->asm_function()); |
| 1926 DCHECK(function->code()->is_turbofanned()); | 1927 DCHECK(function->code()->is_turbofanned()); |
| 1927 function->ReplaceCode(fallback); | 1928 function->ReplaceCode(fallback); |
| 1928 } | 1929 } |
| 1929 } else if (obj->IsJSGeneratorObject()) { | 1930 } else if (obj->IsJSGeneratorObject()) { |
| 1930 JSGeneratorObject* gen = JSGeneratorObject::cast(obj); | 1931 JSGeneratorObject* gen = JSGeneratorObject::cast(obj); |
| 1931 if (!gen->is_suspended()) continue; | 1932 if (!gen->is_suspended()) continue; |
| 1932 | 1933 |
| 1933 JSFunction* fun = gen->function(); | 1934 JSFunction* fun = gen->function(); |
| 1934 DCHECK_EQ(fun->code()->kind(), Code::FUNCTION); | 1935 DCHECK_EQ(fun->code()->kind(), Code::FUNCTION); |
| 1935 if (fun->code()->has_debug_break_slots()) continue; | 1936 if (fun->code()->has_debug_break_slots()) continue; |
| (...skipping 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3401 logger_->DebugEvent("Put", message.text()); | 3402 logger_->DebugEvent("Put", message.text()); |
| 3402 } | 3403 } |
| 3403 | 3404 |
| 3404 | 3405 |
| 3405 void LockingCommandMessageQueue::Clear() { | 3406 void LockingCommandMessageQueue::Clear() { |
| 3406 base::LockGuard<base::Mutex> lock_guard(&mutex_); | 3407 base::LockGuard<base::Mutex> lock_guard(&mutex_); |
| 3407 queue_.Clear(); | 3408 queue_.Clear(); |
| 3408 } | 3409 } |
| 3409 | 3410 |
| 3410 } } // namespace v8::internal | 3411 } } // namespace v8::internal |
| OLD | NEW |