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

Side by Side Diff: src/runtime/runtime-test.cc

Issue 841213003: Allow --always-opt to go further into the pipeline (1). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Set missing bailout reason. Created 5 years, 11 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
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/deoptimizer.h" 8 #include "src/deoptimizer.h"
9 #include "src/full-codegen.h" 9 #include "src/full-codegen.h"
10 #include "src/natives.h" 10 #include "src/natives.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 DCHECK(args.length() == 0); 46 DCHECK(args.length() == 0);
47 return isolate->heap()->ToBoolean( 47 return isolate->heap()->ToBoolean(
48 isolate->concurrent_recompilation_enabled()); 48 isolate->concurrent_recompilation_enabled());
49 } 49 }
50 50
51 51
52 RUNTIME_FUNCTION(Runtime_OptimizeFunctionOnNextCall) { 52 RUNTIME_FUNCTION(Runtime_OptimizeFunctionOnNextCall) {
53 HandleScope scope(isolate); 53 HandleScope scope(isolate);
54 RUNTIME_ASSERT(args.length() == 1 || args.length() == 2); 54 RUNTIME_ASSERT(args.length() == 1 || args.length() == 2);
55 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); 55 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
56 // The following two assertions are lifted from the DCHECKs inside 56 // The following assertion was lifted from the DCHECK inside
57 // JSFunction::MarkForOptimization(). 57 // JSFunction::MarkForOptimization().
58 RUNTIME_ASSERT(!function->shared()->is_generator());
59 RUNTIME_ASSERT(function->shared()->allows_lazy_compilation() || 58 RUNTIME_ASSERT(function->shared()->allows_lazy_compilation() ||
60 (function->code()->kind() == Code::FUNCTION && 59 (function->code()->kind() == Code::FUNCTION &&
61 function->code()->optimizable())); 60 function->code()->optimizable()));
62 61
63 if (!isolate->use_crankshaft()) return isolate->heap()->undefined_value(); 62 if (!isolate->use_crankshaft()) return isolate->heap()->undefined_value();
64 63
65 // If the function is already optimized, just return. 64 // If the function is already optimized, just return.
66 if (function->IsOptimized()) return isolate->heap()->undefined_value(); 65 if (function->IsOptimized()) return isolate->heap()->undefined_value();
67 66
68 // If the function cannot optimized, just return. 67 // If the function cannot optimized, just return.
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \ 408 RUNTIME_FUNCTION(Runtime_HasFixed##Type##Elements) { \
410 CONVERT_ARG_CHECKED(JSObject, obj, 0); \ 409 CONVERT_ARG_CHECKED(JSObject, obj, 0); \
411 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \ 410 return isolate->heap()->ToBoolean(obj->HasFixed##Type##Elements()); \
412 } 411 }
413 412
414 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) 413 TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION)
415 414
416 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION 415 #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION
417 } 416 }
418 } // namespace v8::internal 417 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698