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 | 1255 |
1256 void Logger::LogCodeObject(Object* object) { | 1256 void Logger::LogCodeObject(Object* object) { |
1257 if (FLAG_log_code) { | 1257 if (FLAG_log_code) { |
1258 Code* code_object = Code::cast(object); | 1258 Code* code_object = Code::cast(object); |
1259 LogEventsAndTags tag = Logger::STUB_TAG; | 1259 LogEventsAndTags tag = Logger::STUB_TAG; |
1260 const char* description = "Unknown code from the snapshot"; | 1260 const char* description = "Unknown code from the snapshot"; |
1261 switch (code_object->kind()) { | 1261 switch (code_object->kind()) { |
1262 case Code::FUNCTION: | 1262 case Code::FUNCTION: |
1263 return; // We log this later using LogCompiledFunctions. | 1263 return; // We log this later using LogCompiledFunctions. |
| 1264 case Code::BINARY_OP_IC: |
| 1265 // fall through |
1264 case Code::STUB: | 1266 case Code::STUB: |
1265 description = CodeStub::MajorName(code_object->major_key(), true); | 1267 description = CodeStub::MajorName(code_object->major_key(), true); |
1266 if (description == NULL) | 1268 if (description == NULL) |
1267 description = "A stub from the snapshot"; | 1269 description = "A stub from the snapshot"; |
1268 tag = Logger::STUB_TAG; | 1270 tag = Logger::STUB_TAG; |
1269 break; | 1271 break; |
1270 case Code::BUILTIN: | 1272 case Code::BUILTIN: |
1271 description = "A builtin from the snapshot"; | 1273 description = "A builtin from the snapshot"; |
1272 tag = Logger::BUILTIN_TAG; | 1274 tag = Logger::BUILTIN_TAG; |
1273 break; | 1275 break; |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1544 // Otherwise, if the sliding state window computation has not been | 1546 // Otherwise, if the sliding state window computation has not been |
1545 // started we do it now. | 1547 // started we do it now. |
1546 if (sliding_state_window_ == NULL) { | 1548 if (sliding_state_window_ == NULL) { |
1547 sliding_state_window_ = new SlidingStateWindow(); | 1549 sliding_state_window_ = new SlidingStateWindow(); |
1548 } | 1550 } |
1549 #endif | 1551 #endif |
1550 } | 1552 } |
1551 | 1553 |
1552 | 1554 |
1553 } } // namespace v8::internal | 1555 } } // namespace v8::internal |
OLD | NEW |