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 1864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |