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

Side by Side Diff: src/runtime.cc

Issue 183763007: Removed bogus ASSERT. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | test/mjsunit/regress/regress-347542.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 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 8602 matching lines...) Expand 10 before | Expand all | Expand 10 after
8613 } 8613 }
8614 8614
8615 return isolate->heap()->undefined_value(); 8615 return isolate->heap()->undefined_value();
8616 } 8616 }
8617 8617
8618 8618
8619 RUNTIME_FUNCTION(MaybeObject*, Runtime_NeverOptimizeFunction) { 8619 RUNTIME_FUNCTION(MaybeObject*, Runtime_NeverOptimizeFunction) {
8620 HandleScope scope(isolate); 8620 HandleScope scope(isolate);
8621 ASSERT(args.length() == 1); 8621 ASSERT(args.length() == 1);
8622 CONVERT_ARG_CHECKED(JSFunction, function, 0); 8622 CONVERT_ARG_CHECKED(JSFunction, function, 0);
8623 ASSERT(!function->IsOptimized());
8624 function->shared()->set_optimization_disabled(true); 8623 function->shared()->set_optimization_disabled(true);
8625 return isolate->heap()->undefined_value(); 8624 return isolate->heap()->undefined_value();
8626 } 8625 }
8627 8626
8628 8627
8629 RUNTIME_FUNCTION(MaybeObject*, Runtime_GetOptimizationStatus) { 8628 RUNTIME_FUNCTION(MaybeObject*, Runtime_GetOptimizationStatus) {
8630 HandleScope scope(isolate); 8629 HandleScope scope(isolate);
8631 RUNTIME_ASSERT(args.length() == 1 || args.length() == 2); 8630 RUNTIME_ASSERT(args.length() == 1 || args.length() == 2);
8632 if (!isolate->use_crankshaft()) { 8631 if (!isolate->use_crankshaft()) {
8633 return Smi::FromInt(4); // 4 == "never". 8632 return Smi::FromInt(4); // 4 == "never".
(...skipping 6332 matching lines...) Expand 10 before | Expand all | Expand 10 after
14966 // Handle last resort GC and make sure to allow future allocations 14965 // Handle last resort GC and make sure to allow future allocations
14967 // to grow the heap without causing GCs (if possible). 14966 // to grow the heap without causing GCs (if possible).
14968 isolate->counters()->gc_last_resort_from_js()->Increment(); 14967 isolate->counters()->gc_last_resort_from_js()->Increment();
14969 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 14968 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
14970 "Runtime::PerformGC"); 14969 "Runtime::PerformGC");
14971 } 14970 }
14972 } 14971 }
14973 14972
14974 14973
14975 } } // namespace v8::internal 14974 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-347542.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698