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

Side by Side Diff: src/compiler.cc

Issue 549020: Fix variable name when build with oprofile agent. (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
« no previous file with comments | « no previous file | no next file » | 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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 // Check for stack-overflow exception. 531 // Check for stack-overflow exception.
532 if (code.is_null()) { 532 if (code.is_null()) {
533 caller->SetStackOverflow(); 533 caller->SetStackOverflow();
534 return Handle<JSFunction>::null(); 534 return Handle<JSFunction>::null();
535 } 535 }
536 536
537 // Function compilation complete. 537 // Function compilation complete.
538 LOG(CodeCreateEvent(Logger::FUNCTION_TAG, *code, *literal->name())); 538 LOG(CodeCreateEvent(Logger::FUNCTION_TAG, *code, *literal->name()));
539 539
540 #ifdef ENABLE_OPROFILE_AGENT 540 #ifdef ENABLE_OPROFILE_AGENT
541 OProfileAgent::CreateNativeCodeRegion(*node->name(), 541 OProfileAgent::CreateNativeCodeRegion(*literal->name(),
542 code->instruction_start(), 542 code->instruction_start(),
543 code->instruction_size()); 543 code->instruction_size());
544 #endif 544 #endif
545 } 545 }
546 546
547 // Create a boilerplate function. 547 // Create a boilerplate function.
548 Handle<JSFunction> function = 548 Handle<JSFunction> function =
549 Factory::NewFunctionBoilerplate(literal->name(), 549 Factory::NewFunctionBoilerplate(literal->name(),
550 literal->materialized_literal_count(), 550 literal->materialized_literal_count(),
551 code); 551 code);
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 1128
1129 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { 1129 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) {
1130 // ThisFunction is supported. 1130 // ThisFunction is supported.
1131 } 1131 }
1132 1132
1133 #undef BAILOUT 1133 #undef BAILOUT
1134 #undef CHECK_BAILOUT 1134 #undef CHECK_BAILOUT
1135 1135
1136 1136
1137 } } // namespace v8::internal 1137 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698