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

Side by Side Diff: src/compiler.cc

Issue 153913002: A64: Synchronize with r16756. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | « src/code-stubs-hydrogen.cc ('k') | src/d8.gyp » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 // The function may have already been optimized by OSR. Simply continue. 1069 // The function may have already been optimized by OSR. Simply continue.
1070 // Except when OSR already disabled optimization for some reason. 1070 // Except when OSR already disabled optimization for some reason.
1071 if (info->shared_info()->optimization_disabled()) { 1071 if (info->shared_info()->optimization_disabled()) {
1072 info->AbortOptimization(); 1072 info->AbortOptimization();
1073 InstallFullCode(*info); 1073 InstallFullCode(*info);
1074 if (FLAG_trace_concurrent_recompilation) { 1074 if (FLAG_trace_concurrent_recompilation) {
1075 PrintF(" ** aborting optimization for "); 1075 PrintF(" ** aborting optimization for ");
1076 info->closure()->PrintName(); 1076 info->closure()->PrintName();
1077 PrintF(" as it has been disabled.\n"); 1077 PrintF(" as it has been disabled.\n");
1078 } 1078 }
1079 ASSERT(!info->closure()->IsMarkedForInstallingRecompiledCode()); 1079 ASSERT(!info->closure()->IsInRecompileQueue());
1080 return Handle<Code>::null(); 1080 return Handle<Code>::null();
1081 } 1081 }
1082 1082
1083 Isolate* isolate = info->isolate(); 1083 Isolate* isolate = info->isolate();
1084 VMState<COMPILER> state(isolate); 1084 VMState<COMPILER> state(isolate);
1085 Logger::TimerEventScope timer( 1085 Logger::TimerEventScope timer(
1086 isolate, Logger::TimerEventScope::v8_recompile_synchronous); 1086 isolate, Logger::TimerEventScope::v8_recompile_synchronous);
1087 // If crankshaft succeeded, install the optimized code else install 1087 // If crankshaft succeeded, install the optimized code else install
1088 // the unoptimized code. 1088 // the unoptimized code.
1089 OptimizingCompiler::Status status = optimizing_compiler->last_status(); 1089 OptimizingCompiler::Status status = optimizing_compiler->last_status();
(...skipping 26 matching lines...) Expand all
1116 info->closure()->PrintName(); 1116 info->closure()->PrintName();
1117 PrintF(" installed.\n"); 1117 PrintF(" installed.\n");
1118 } 1118 }
1119 } else { 1119 } else {
1120 info->AbortOptimization(); 1120 info->AbortOptimization();
1121 InstallFullCode(*info); 1121 InstallFullCode(*info);
1122 } 1122 }
1123 // Optimized code is finally replacing unoptimized code. Reset the latter's 1123 // Optimized code is finally replacing unoptimized code. Reset the latter's
1124 // profiler ticks to prevent too soon re-opt after a deopt. 1124 // profiler ticks to prevent too soon re-opt after a deopt.
1125 info->shared_info()->code()->set_profiler_ticks(0); 1125 info->shared_info()->code()->set_profiler_ticks(0);
1126 ASSERT(!info->closure()->IsMarkedForInstallingRecompiledCode()); 1126 ASSERT(!info->closure()->IsInRecompileQueue());
1127 return (status == OptimizingCompiler::SUCCEEDED) ? info->code() 1127 return (status == OptimizingCompiler::SUCCEEDED) ? info->code()
1128 : Handle<Code>::null(); 1128 : Handle<Code>::null();
1129 } 1129 }
1130 1130
1131 1131
1132 Handle<SharedFunctionInfo> Compiler::BuildFunctionInfo(FunctionLiteral* literal, 1132 Handle<SharedFunctionInfo> Compiler::BuildFunctionInfo(FunctionLiteral* literal,
1133 Handle<Script> script) { 1133 Handle<Script> script) {
1134 // Precondition: code has been parsed and scopes have been analyzed. 1134 // Precondition: code has been parsed and scopes have been analyzed.
1135 CompilationInfoWithZone info(script); 1135 CompilationInfoWithZone info(script);
1136 info.SetFunction(literal); 1136 info.SetFunction(literal);
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 AllowHandleDereference allow_deref; 1291 AllowHandleDereference allow_deref;
1292 bool tracing_on = info()->IsStub() 1292 bool tracing_on = info()->IsStub()
1293 ? FLAG_trace_hydrogen_stubs 1293 ? FLAG_trace_hydrogen_stubs
1294 : (FLAG_trace_hydrogen && 1294 : (FLAG_trace_hydrogen &&
1295 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); 1295 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter));
1296 return (tracing_on && 1296 return (tracing_on &&
1297 OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); 1297 OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL);
1298 } 1298 }
1299 1299
1300 } } // namespace v8::internal 1300 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/d8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698