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/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/api.h" | 8 #include "src/api.h" |
9 #include "src/arguments.h" | 9 #include "src/arguments.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 2226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2237 set_target(*target); | 2237 set_target(*target); |
2238 | 2238 |
2239 if (FLAG_trace_ic) { | 2239 if (FLAG_trace_ic) { |
2240 OFStream os(stdout); | 2240 OFStream os(stdout); |
2241 os << "[BinaryOpIC" << old_state << " => " << state << " @ " | 2241 os << "[BinaryOpIC" << old_state << " => " << state << " @ " |
2242 << static_cast<void*>(*target) << " <- "; | 2242 << static_cast<void*>(*target) << " <- "; |
2243 JavaScriptFrame::PrintTop(isolate(), stdout, false, true); | 2243 JavaScriptFrame::PrintTop(isolate(), stdout, false, true); |
2244 if (!allocation_site.is_null()) { | 2244 if (!allocation_site.is_null()) { |
2245 os << " using allocation site " << static_cast<void*>(*allocation_site); | 2245 os << " using allocation site " << static_cast<void*>(*allocation_site); |
2246 } | 2246 } |
2247 os << "]" << endl; | 2247 os << "]" << std::endl; |
2248 } | 2248 } |
2249 | 2249 |
2250 // Patch the inlined smi code as necessary. | 2250 // Patch the inlined smi code as necessary. |
2251 if (!old_state.UseInlinedSmiCode() && state.UseInlinedSmiCode()) { | 2251 if (!old_state.UseInlinedSmiCode() && state.UseInlinedSmiCode()) { |
2252 PatchInlinedSmiCode(address(), ENABLE_INLINED_SMI_CHECK); | 2252 PatchInlinedSmiCode(address(), ENABLE_INLINED_SMI_CHECK); |
2253 } else if (old_state.UseInlinedSmiCode() && !state.UseInlinedSmiCode()) { | 2253 } else if (old_state.UseInlinedSmiCode() && !state.UseInlinedSmiCode()) { |
2254 PatchInlinedSmiCode(address(), DISABLE_INLINED_SMI_CHECK); | 2254 PatchInlinedSmiCode(address(), DISABLE_INLINED_SMI_CHECK); |
2255 } | 2255 } |
2256 | 2256 |
2257 return result; | 2257 return result; |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2656 static const Address IC_utilities[] = { | 2656 static const Address IC_utilities[] = { |
2657 #define ADDR(name) FUNCTION_ADDR(name), | 2657 #define ADDR(name) FUNCTION_ADDR(name), |
2658 IC_UTIL_LIST(ADDR) NULL | 2658 IC_UTIL_LIST(ADDR) NULL |
2659 #undef ADDR | 2659 #undef ADDR |
2660 }; | 2660 }; |
2661 | 2661 |
2662 | 2662 |
2663 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } | 2663 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } |
2664 } | 2664 } |
2665 } // namespace v8::internal | 2665 } // namespace v8::internal |
OLD | NEW |