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

Side by Side Diff: src/runtime.cc

Issue 16542003: Enable map dependency to in-flight compilation info. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: put transition maps and initial maps dependency into a separate CL Created 7 years, 6 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
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 8071 matching lines...) Expand 10 before | Expand all | Expand 10 after
8082 } 8082 }
8083 } else if (type->IsOneByteEqualTo(STATIC_ASCII_VECTOR("parallel"))) { 8083 } else if (type->IsOneByteEqualTo(STATIC_ASCII_VECTOR("parallel"))) {
8084 function->MarkForParallelRecompilation(); 8084 function->MarkForParallelRecompilation();
8085 } 8085 }
8086 } 8086 }
8087 8087
8088 return isolate->heap()->undefined_value(); 8088 return isolate->heap()->undefined_value();
8089 } 8089 }
8090 8090
8091 8091
8092 RUNTIME_FUNCTION(MaybeObject*, Runtime_WaitUntilOptimized) { 8092 RUNTIME_FUNCTION(MaybeObject*, Runtime_CompleteOptimization) {
8093 HandleScope scope(isolate); 8093 HandleScope scope(isolate);
8094 ASSERT(args.length() == 1); 8094 ASSERT(args.length() == 1);
8095 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); 8095 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
8096 if (FLAG_parallel_recompilation) { 8096 if (FLAG_parallel_recompilation && V8::UseCrankshaft()) {
8097 if (V8::UseCrankshaft() && function->IsOptimizable()) { 8097 // While function is in optimization pipeline, it is marked with builtins.
8098 while (!function->IsOptimized()) OS::Sleep(50); 8098 while (function->code()->kind() == Code::BUILTIN) {
8099 isolate->optimizing_compiler_thread()->InstallOptimizedFunctions();
8100 OS::Sleep(50);
8099 } 8101 }
8100 } 8102 }
8101 return isolate->heap()->undefined_value(); 8103 return isolate->heap()->undefined_value();
8102 } 8104 }
8103 8105
8104 8106
8105 RUNTIME_FUNCTION(MaybeObject*, Runtime_GetOptimizationStatus) { 8107 RUNTIME_FUNCTION(MaybeObject*, Runtime_GetOptimizationStatus) {
8106 HandleScope scope(isolate); 8108 HandleScope scope(isolate);
8107 ASSERT(args.length() == 1); 8109 ASSERT(args.length() == 1);
8108 // The least significant bit (after untagging) indicates whether the 8110 // The least significant bit (after untagging) indicates whether the
(...skipping 5514 matching lines...) Expand 10 before | Expand all | Expand 10 after
13623 // Handle last resort GC and make sure to allow future allocations 13625 // Handle last resort GC and make sure to allow future allocations
13624 // to grow the heap without causing GCs (if possible). 13626 // to grow the heap without causing GCs (if possible).
13625 isolate->counters()->gc_last_resort_from_js()->Increment(); 13627 isolate->counters()->gc_last_resort_from_js()->Increment();
13626 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 13628 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
13627 "Runtime::PerformGC"); 13629 "Runtime::PerformGC");
13628 } 13630 }
13629 } 13631 }
13630 13632
13631 13633
13632 } } // namespace v8::internal 13634 } } // namespace v8::internal
OLDNEW
« src/objects.cc ('K') | « src/runtime.h ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698