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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 JavaScriptFrame::PrintFunctionAndOffset(function, function->code(), pc(), | 115 JavaScriptFrame::PrintFunctionAndOffset(function, function->code(), pc(), |
116 stdout, true); | 116 stdout, true); |
117 } | 117 } |
118 | 118 |
119 ExtraICState extra_state = new_target->extra_ic_state(); | 119 ExtraICState extra_state = new_target->extra_ic_state(); |
120 const char* modifier = ""; | 120 const char* modifier = ""; |
121 if (new_target->kind() == Code::KEYED_STORE_IC) { | 121 if (new_target->kind() == Code::KEYED_STORE_IC) { |
122 modifier = GetTransitionMarkModifier( | 122 modifier = GetTransitionMarkModifier( |
123 KeyedStoreIC::GetKeyedAccessStoreMode(extra_state)); | 123 KeyedStoreIC::GetKeyedAccessStoreMode(extra_state)); |
124 } | 124 } |
125 PrintF(" (%c->%c%s)", TransitionMarkFromState(old_state), | 125 PrintF(" (%c->%c%s) ", TransitionMarkFromState(old_state), |
126 TransitionMarkFromState(new_state), modifier); | 126 TransitionMarkFromState(new_state), modifier); |
127 #ifdef OBJECT_PRINT | 127 #ifdef OBJECT_PRINT |
128 OFStream os(stdout); | 128 OFStream os(stdout); |
129 name->Print(os); | 129 name->Print(os); |
130 #else | 130 #else |
131 name->ShortPrint(stdout); | 131 name->ShortPrint(stdout); |
132 #endif | 132 #endif |
133 PrintF("]\n"); | 133 PrintF("]\n"); |
134 } | 134 } |
135 } | 135 } |
(...skipping 2563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2699 static const Address IC_utilities[] = { | 2699 static const Address IC_utilities[] = { |
2700 #define ADDR(name) FUNCTION_ADDR(name), | 2700 #define ADDR(name) FUNCTION_ADDR(name), |
2701 IC_UTIL_LIST(ADDR) NULL | 2701 IC_UTIL_LIST(ADDR) NULL |
2702 #undef ADDR | 2702 #undef ADDR |
2703 }; | 2703 }; |
2704 | 2704 |
2705 | 2705 |
2706 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } | 2706 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } |
2707 } | 2707 } |
2708 } // namespace v8::internal | 2708 } // namespace v8::internal |
OLD | NEW |