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

Side by Side Diff: src/runtime.cc

Issue 6995108: Correct the limit of local variables in a optimized functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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
« no previous file with comments | « src/runtime.h ('k') | test/mjsunit/compiler/regress-max-locals-for-osr.js » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 7702 matching lines...) Expand 10 before | Expand all | Expand 10 after
7713 ASSERT(args.length() == 1); 7713 ASSERT(args.length() == 1);
7714 CONVERT_ARG_CHECKED(JSFunction, function, 0); 7714 CONVERT_ARG_CHECKED(JSFunction, function, 0);
7715 if (!function->IsOptimized()) return isolate->heap()->undefined_value(); 7715 if (!function->IsOptimized()) return isolate->heap()->undefined_value();
7716 7716
7717 Deoptimizer::DeoptimizeFunction(*function); 7717 Deoptimizer::DeoptimizeFunction(*function);
7718 7718
7719 return isolate->heap()->undefined_value(); 7719 return isolate->heap()->undefined_value();
7720 } 7720 }
7721 7721
7722 7722
7723 RUNTIME_FUNCTION(MaybeObject*, Runtime_RunningInSimulator) {
7724 #if defined(USE_SIMULATOR)
7725 return isolate->heap()->true_value();
7726 #else
7727 return isolate->heap()->false_value();
7728 #endif
7729 }
7730
7731
7723 RUNTIME_FUNCTION(MaybeObject*, Runtime_OptimizeFunctionOnNextCall) { 7732 RUNTIME_FUNCTION(MaybeObject*, Runtime_OptimizeFunctionOnNextCall) {
7724 HandleScope scope(isolate); 7733 HandleScope scope(isolate);
7725 ASSERT(args.length() == 1); 7734 ASSERT(args.length() == 1);
7726 CONVERT_ARG_CHECKED(JSFunction, function, 0); 7735 CONVERT_ARG_CHECKED(JSFunction, function, 0);
7727 if (!function->IsOptimizable()) return isolate->heap()->undefined_value(); 7736 if (!function->IsOptimizable()) return isolate->heap()->undefined_value();
7728 function->MarkForLazyRecompilation(); 7737 function->MarkForLazyRecompilation();
7729 return isolate->heap()->undefined_value(); 7738 return isolate->heap()->undefined_value();
7730 } 7739 }
7731 7740
7732 7741
(...skipping 4630 matching lines...) Expand 10 before | Expand all | Expand 10 after
12363 } else { 12372 } else {
12364 // Handle last resort GC and make sure to allow future allocations 12373 // Handle last resort GC and make sure to allow future allocations
12365 // to grow the heap without causing GCs (if possible). 12374 // to grow the heap without causing GCs (if possible).
12366 isolate->counters()->gc_last_resort_from_js()->Increment(); 12375 isolate->counters()->gc_last_resort_from_js()->Increment();
12367 isolate->heap()->CollectAllGarbage(false); 12376 isolate->heap()->CollectAllGarbage(false);
12368 } 12377 }
12369 } 12378 }
12370 12379
12371 12380
12372 } } // namespace v8::internal 12381 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime.h ('k') | test/mjsunit/compiler/regress-max-locals-for-osr.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698