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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 ExtraICState extra_state = new_target->extra_ic_state(); | 87 ExtraICState extra_state = new_target->extra_ic_state(); |
88 const char* modifier = ""; | 88 const char* modifier = ""; |
89 if (new_target->kind() == Code::KEYED_STORE_IC) { | 89 if (new_target->kind() == Code::KEYED_STORE_IC) { |
90 modifier = GetTransitionMarkModifier( | 90 modifier = GetTransitionMarkModifier( |
91 KeyedStoreIC::GetKeyedAccessStoreMode(extra_state)); | 91 KeyedStoreIC::GetKeyedAccessStoreMode(extra_state)); |
92 } | 92 } |
93 PrintF(" (%c->%c%s)", | 93 PrintF(" (%c->%c%s)", |
94 TransitionMarkFromState(state()), | 94 TransitionMarkFromState(state()), |
95 TransitionMarkFromState(new_state), | 95 TransitionMarkFromState(new_state), |
96 modifier); | 96 modifier); |
| 97 #ifdef OBJECT_PRINT |
97 OFStream os(stdout); | 98 OFStream os(stdout); |
98 name->Print(os); | 99 name->Print(os); |
| 100 #else |
| 101 name->ShortPrint(stdout); |
| 102 #endif |
99 PrintF("]\n"); | 103 PrintF("]\n"); |
100 } | 104 } |
101 } | 105 } |
102 | 106 |
103 #define TRACE_IC(type, name) TraceIC(type, name) | 107 #define TRACE_IC(type, name) TraceIC(type, name) |
104 | 108 |
105 | 109 |
106 IC::IC(FrameDepth depth, Isolate* isolate) | 110 IC::IC(FrameDepth depth, Isolate* isolate) |
107 : isolate_(isolate), | 111 : isolate_(isolate), |
108 target_set_(false), | 112 target_set_(false), |
(...skipping 2973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3082 #undef ADDR | 3086 #undef ADDR |
3083 }; | 3087 }; |
3084 | 3088 |
3085 | 3089 |
3086 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 3090 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
3087 return IC_utilities[id]; | 3091 return IC_utilities[id]; |
3088 } | 3092 } |
3089 | 3093 |
3090 | 3094 |
3091 } } // namespace v8::internal | 3095 } } // namespace v8::internal |
OLD | NEW |