OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1254 | 1254 |
1255 void Logger::LogCodeObject(Object* object) { | 1255 void Logger::LogCodeObject(Object* object) { |
1256 if (FLAG_log_code) { | 1256 if (FLAG_log_code) { |
1257 Code* code_object = Code::cast(object); | 1257 Code* code_object = Code::cast(object); |
1258 LogEventsAndTags tag = Logger::STUB_TAG; | 1258 LogEventsAndTags tag = Logger::STUB_TAG; |
1259 const char* description = "Unknown code from the snapshot"; | 1259 const char* description = "Unknown code from the snapshot"; |
1260 switch (code_object->kind()) { | 1260 switch (code_object->kind()) { |
1261 case Code::FUNCTION: | 1261 case Code::FUNCTION: |
1262 return; // We log this later using LogCompiledFunctions. | 1262 return; // We log this later using LogCompiledFunctions. |
1263 case Code::STUB: | 1263 case Code::STUB: |
1264 description = CodeStub::MajorName(code_object->major_key()); | 1264 description = CodeStub::MajorName(code_object->major_key(), true); |
| 1265 if (description == NULL) |
| 1266 description = "A stub from the snapshot"; |
1265 tag = Logger::STUB_TAG; | 1267 tag = Logger::STUB_TAG; |
1266 break; | 1268 break; |
1267 case Code::BUILTIN: | 1269 case Code::BUILTIN: |
1268 description = "A builtin from the snapshot"; | 1270 description = "A builtin from the snapshot"; |
1269 tag = Logger::BUILTIN_TAG; | 1271 tag = Logger::BUILTIN_TAG; |
1270 break; | 1272 break; |
1271 case Code::KEYED_LOAD_IC: | 1273 case Code::KEYED_LOAD_IC: |
1272 description = "A keyed load IC from the snapshot"; | 1274 description = "A keyed load IC from the snapshot"; |
1273 tag = Logger::KEYED_LOAD_IC_TAG; | 1275 tag = Logger::KEYED_LOAD_IC_TAG; |
1274 break; | 1276 break; |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1541 // Otherwise, if the sliding state window computation has not been | 1543 // Otherwise, if the sliding state window computation has not been |
1542 // started we do it now. | 1544 // started we do it now. |
1543 if (sliding_state_window_ == NULL) { | 1545 if (sliding_state_window_ == NULL) { |
1544 sliding_state_window_ = new SlidingStateWindow(); | 1546 sliding_state_window_ = new SlidingStateWindow(); |
1545 } | 1547 } |
1546 #endif | 1548 #endif |
1547 } | 1549 } |
1548 | 1550 |
1549 | 1551 |
1550 } } // namespace v8::internal | 1552 } } // namespace v8::internal |
OLD | NEW |