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

Side by Side Diff: src/log.cc

Issue 669061: First take on custom call generators. (Closed)
Patch Set: Ultimate version Created 10 years, 9 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
« no previous file with comments | « src/ia32/stub-cache-ia32.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 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 *script_name, line_num + 1)); 1339 *script_name, line_num + 1));
1340 } else { 1340 } else {
1341 // Can't distinguish enum and script here, so always use Script. 1341 // Can't distinguish enum and script here, so always use Script.
1342 LOG(CodeCreateEvent(Logger::SCRIPT_TAG, 1342 LOG(CodeCreateEvent(Logger::SCRIPT_TAG,
1343 shared->code(), *script_name)); 1343 shared->code(), *script_name));
1344 } 1344 }
1345 } else { 1345 } else {
1346 LOG(CodeCreateEvent( 1346 LOG(CodeCreateEvent(
1347 Logger::LAZY_COMPILE_TAG, shared->code(), *func_name)); 1347 Logger::LAZY_COMPILE_TAG, shared->code(), *func_name));
1348 } 1348 }
1349 } else if (shared->function_data()->IsFunctionTemplateInfo()) { 1349 } else if (shared->IsApiFunction()) {
1350 // API function. 1350 // API function.
1351 FunctionTemplateInfo* fun_data = 1351 FunctionTemplateInfo* fun_data = shared->get_api_func_data();
1352 FunctionTemplateInfo::cast(shared->function_data());
1353 Object* raw_call_data = fun_data->call_code(); 1352 Object* raw_call_data = fun_data->call_code();
1354 if (!raw_call_data->IsUndefined()) { 1353 if (!raw_call_data->IsUndefined()) {
1355 CallHandlerInfo* call_data = CallHandlerInfo::cast(raw_call_data); 1354 CallHandlerInfo* call_data = CallHandlerInfo::cast(raw_call_data);
1356 Object* callback_obj = call_data->callback(); 1355 Object* callback_obj = call_data->callback();
1357 Address entry_point = v8::ToCData<Address>(callback_obj); 1356 Address entry_point = v8::ToCData<Address>(callback_obj);
1358 LOG(CallbackEvent(*func_name, entry_point)); 1357 LOG(CallbackEvent(*func_name, entry_point));
1359 } 1358 }
1360 } else { 1359 } else {
1361 LOG(CodeCreateEvent( 1360 LOG(CodeCreateEvent(
1362 Logger::LAZY_COMPILE_TAG, shared->code(), *func_name)); 1361 Logger::LAZY_COMPILE_TAG, shared->code(), *func_name));
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1554 // Otherwise, if the sliding state window computation has not been 1553 // Otherwise, if the sliding state window computation has not been
1555 // started we do it now. 1554 // started we do it now.
1556 if (sliding_state_window_ == NULL) { 1555 if (sliding_state_window_ == NULL) {
1557 sliding_state_window_ = new SlidingStateWindow(); 1556 sliding_state_window_ = new SlidingStateWindow();
1558 } 1557 }
1559 #endif 1558 #endif
1560 } 1559 }
1561 1560
1562 1561
1563 } } // namespace v8::internal 1562 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698