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" | 10 #include "src/compiler.h" |
11 #include "src/debug.h" | 11 #include "src/debug/debug.h" |
12 #include "src/macro-assembler.h" | 12 #include "src/macro-assembler.h" |
13 #include "src/prototype.h" | 13 #include "src/prototype.h" |
14 | 14 |
15 namespace v8 { | 15 namespace v8 { |
16 namespace internal { | 16 namespace internal { |
17 | 17 |
18 | 18 |
19 Address IC::address() const { | 19 Address IC::address() const { |
20 // Get the address of the call. | 20 // Get the address of the call. |
21 return Assembler::target_address_from_return_address(pc()); | 21 return Assembler::target_address_from_return_address(pc()); |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 bool IC::AddressIsDeoptimizedCode(Isolate* isolate, Address address) { | 194 bool IC::AddressIsDeoptimizedCode(Isolate* isolate, Address address) { |
195 Code* host = | 195 Code* host = |
196 isolate->inner_pointer_to_code_cache()->GetCacheEntry(address)->code; | 196 isolate->inner_pointer_to_code_cache()->GetCacheEntry(address)->code; |
197 return (host->kind() == Code::OPTIMIZED_FUNCTION && | 197 return (host->kind() == Code::OPTIMIZED_FUNCTION && |
198 host->marked_for_deoptimization()); | 198 host->marked_for_deoptimization()); |
199 } | 199 } |
200 } | 200 } |
201 } // namespace v8::internal | 201 } // namespace v8::internal |
202 | 202 |
203 #endif // V8_IC_INL_H_ | 203 #endif // V8_IC_INL_H_ |
OLD | NEW |