| 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/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 ExtraICState extra_state = new_target->extra_ic_state(); | 70 ExtraICState extra_state = new_target->extra_ic_state(); |
| 71 const char* modifier = ""; | 71 const char* modifier = ""; |
| 72 if (new_target->kind() == Code::KEYED_STORE_IC) { | 72 if (new_target->kind() == Code::KEYED_STORE_IC) { |
| 73 modifier = GetTransitionMarkModifier( | 73 modifier = GetTransitionMarkModifier( |
| 74 KeyedStoreIC::GetKeyedAccessStoreMode(extra_state)); | 74 KeyedStoreIC::GetKeyedAccessStoreMode(extra_state)); |
| 75 } | 75 } |
| 76 PrintF(" (%c->%c%s)", | 76 PrintF(" (%c->%c%s)", |
| 77 TransitionMarkFromState(state()), | 77 TransitionMarkFromState(state()), |
| 78 TransitionMarkFromState(new_state), | 78 TransitionMarkFromState(new_state), |
| 79 modifier); | 79 modifier); |
| 80 name->Print(); | 80 OFStream os(stdout); |
| 81 name->Print(os); |
| 81 PrintF("]\n"); | 82 PrintF("]\n"); |
| 82 } | 83 } |
| 83 } | 84 } |
| 84 | 85 |
| 85 #define TRACE_GENERIC_IC(isolate, type, reason) \ | 86 #define TRACE_GENERIC_IC(isolate, type, reason) \ |
| 86 do { \ | 87 do { \ |
| 87 if (FLAG_trace_ic) { \ | 88 if (FLAG_trace_ic) { \ |
| 88 PrintF("[%s patching generic stub in ", type); \ | 89 PrintF("[%s patching generic stub in ", type); \ |
| 89 JavaScriptFrame::PrintTop(isolate, stdout, false, true); \ | 90 JavaScriptFrame::PrintTop(isolate, stdout, false, true); \ |
| 90 PrintF(" (%s)]\n", reason); \ | 91 PrintF(" (%s)]\n", reason); \ |
| (...skipping 2982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3073 #undef ADDR | 3074 #undef ADDR |
| 3074 }; | 3075 }; |
| 3075 | 3076 |
| 3076 | 3077 |
| 3077 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 3078 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
| 3078 return IC_utilities[id]; | 3079 return IC_utilities[id]; |
| 3079 } | 3080 } |
| 3080 | 3081 |
| 3081 | 3082 |
| 3082 } } // namespace v8::internal | 3083 } } // namespace v8::internal |
| OLD | NEW |