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 #ifndef V8_IC_INL_H_ | 5 #ifndef V8_IC_INL_H_ |
6 #define V8_IC_INL_H_ | 6 #define V8_IC_INL_H_ |
7 | 7 |
8 #include "src/ic/ic.h" | 8 #include "src/ic/ic.h" |
9 | 9 |
10 #include "src/compiler.h" | |
11 #include "src/debug/debug.h" | 10 #include "src/debug/debug.h" |
12 #include "src/macro-assembler.h" | 11 #include "src/macro-assembler.h" |
13 #include "src/prototype.h" | 12 #include "src/prototype.h" |
14 | 13 |
15 namespace v8 { | 14 namespace v8 { |
16 namespace internal { | 15 namespace internal { |
17 | 16 |
18 | 17 |
19 Address IC::address() const { | 18 Address IC::address() const { |
20 // Get the address of the call. | 19 // Get the address of the call. |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 bool IC::AddressIsDeoptimizedCode(Isolate* isolate, Address address) { | 142 bool IC::AddressIsDeoptimizedCode(Isolate* isolate, Address address) { |
144 Code* host = | 143 Code* host = |
145 isolate->inner_pointer_to_code_cache()->GetCacheEntry(address)->code; | 144 isolate->inner_pointer_to_code_cache()->GetCacheEntry(address)->code; |
146 return (host->kind() == Code::OPTIMIZED_FUNCTION && | 145 return (host->kind() == Code::OPTIMIZED_FUNCTION && |
147 host->marked_for_deoptimization()); | 146 host->marked_for_deoptimization()); |
148 } | 147 } |
149 } // namespace internal | 148 } // namespace internal |
150 } // namespace v8 | 149 } // namespace v8 |
151 | 150 |
152 #endif // V8_IC_INL_H_ | 151 #endif // V8_IC_INL_H_ |
OLD | NEW |