Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/log.cc

Issue 551093: Implementing inline caches for GenericBinaryOpStub. ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« src/ic.cc ('K') | « src/ic.cc ('k') | src/objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 1179
1180 1180
1181 void Logger::LogCodeObject(Object* object) { 1181 void Logger::LogCodeObject(Object* object) {
1182 if (FLAG_log_code) { 1182 if (FLAG_log_code) {
1183 Code* code_object = Code::cast(object); 1183 Code* code_object = Code::cast(object);
1184 LogEventsAndTags tag = Logger::STUB_TAG; 1184 LogEventsAndTags tag = Logger::STUB_TAG;
1185 const char* description = "Unknown code from the snapshot"; 1185 const char* description = "Unknown code from the snapshot";
1186 switch (code_object->kind()) { 1186 switch (code_object->kind()) {
1187 case Code::FUNCTION: 1187 case Code::FUNCTION:
1188 return; // We log this later using LogCompiledFunctions. 1188 return; // We log this later using LogCompiledFunctions.
1189 case Code::BINARY_OP_IC:
1190 // fall through
1189 case Code::STUB: 1191 case Code::STUB:
1190 description = CodeStub::MajorName(code_object->major_key()); 1192 description = CodeStub::MajorName(code_object->major_key());
1191 tag = Logger::STUB_TAG; 1193 tag = Logger::STUB_TAG;
1192 break; 1194 break;
1193 case Code::BUILTIN: 1195 case Code::BUILTIN:
1194 description = "A builtin from the snapshot"; 1196 description = "A builtin from the snapshot";
1195 tag = Logger::BUILTIN_TAG; 1197 tag = Logger::BUILTIN_TAG;
1196 break; 1198 break;
1197 case Code::KEYED_LOAD_IC: 1199 case Code::KEYED_LOAD_IC:
1198 description = "A keyed load IC from the snapshot"; 1200 description = "A keyed load IC from the snapshot";
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
1448 // Otherwise, if the sliding state window computation has not been 1450 // Otherwise, if the sliding state window computation has not been
1449 // started we do it now. 1451 // started we do it now.
1450 if (sliding_state_window_ == NULL) { 1452 if (sliding_state_window_ == NULL) {
1451 sliding_state_window_ = new SlidingStateWindow(); 1453 sliding_state_window_ = new SlidingStateWindow();
1452 } 1454 }
1453 #endif 1455 #endif
1454 } 1456 }
1455 1457
1456 1458
1457 } } // namespace v8::internal 1459 } } // namespace v8::internal
OLDNEW
« src/ic.cc ('K') | « src/ic.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698