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

Side by Side Diff: src/compiler.cc

Issue 6577036: [Isolates] Merge from bleeding_edge to isolates, revisions 6100-6300. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 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.cc ('k') | src/cpu-profiler.cc » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // support. 259 // support.
260 ASSERT(FLAG_always_opt || info->shared_info()->code()->optimizable()); 260 ASSERT(FLAG_always_opt || info->shared_info()->code()->optimizable());
261 ASSERT(info->shared_info()->has_deoptimization_support()); 261 ASSERT(info->shared_info()->has_deoptimization_support());
262 262
263 if (FLAG_trace_hydrogen) { 263 if (FLAG_trace_hydrogen) {
264 PrintF("-----------------------------------------------------------\n"); 264 PrintF("-----------------------------------------------------------\n");
265 PrintF("Compiling method %s using hydrogen\n", *name->ToCString()); 265 PrintF("Compiling method %s using hydrogen\n", *name->ToCString());
266 HTracer::Instance()->TraceCompilation(info->function()); 266 HTracer::Instance()->TraceCompilation(info->function());
267 } 267 }
268 268
269 TypeFeedbackOracle oracle(Handle<Code>(info->shared_info()->code())); 269 TypeFeedbackOracle oracle(
270 Handle<Code>(info->shared_info()->code()),
271 Handle<Context>(info->closure()->context()->global_context()));
270 HGraphBuilder builder(&oracle); 272 HGraphBuilder builder(&oracle);
271 HPhase phase(HPhase::kTotal); 273 HPhase phase(HPhase::kTotal);
272 HGraph* graph = builder.CreateGraph(info); 274 HGraph* graph = builder.CreateGraph(info);
273 if (graph != NULL && FLAG_build_lithium) { 275 if (graph != NULL && FLAG_build_lithium) {
274 Handle<Code> code = graph->Compile(); 276 Handle<Code> code = graph->Compile();
275 if (!code.is_null()) { 277 if (!code.is_null()) {
276 info->SetCode(code); 278 info->SetCode(code);
277 FinishOptimization(info->closure(), start); 279 FinishOptimization(info->closure(), start);
278 return true; 280 return true;
279 } 281 }
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 *code, 787 *code,
786 *name)); 788 *name));
787 OPROFILE(CreateNativeCodeRegion(*name, 789 OPROFILE(CreateNativeCodeRegion(*name,
788 code->instruction_start(), 790 code->instruction_start(),
789 code->instruction_size())); 791 code->instruction_size()));
790 } 792 }
791 } 793 }
792 } 794 }
793 795
794 } } // namespace v8::internal 796 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/cpu-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698