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

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

Issue 1969773002: [Interpreter] Clean up runtime-profiler logic for three tier pipeline. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix test failure. Created 4 years, 7 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/runtime-profiler.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/runtime/runtime-utils.h" 5 #include "src/runtime/runtime-utils.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/frames-inl.h" 9 #include "src/frames-inl.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 } 171 }
172 172
173 return isolate->heap()->undefined_value(); 173 return isolate->heap()->undefined_value();
174 } 174 }
175 175
176 176
177 RUNTIME_FUNCTION(Runtime_NeverOptimizeFunction) { 177 RUNTIME_FUNCTION(Runtime_NeverOptimizeFunction) {
178 HandleScope scope(isolate); 178 HandleScope scope(isolate);
179 DCHECK(args.length() == 1); 179 DCHECK(args.length() == 1);
180 CONVERT_ARG_CHECKED(JSFunction, function, 0); 180 CONVERT_ARG_CHECKED(JSFunction, function, 0);
181 function->shared()->set_disable_optimization_reason(kOptimizationDisabled); 181 function->shared()->set_disable_optimization_reason(
182 kOptimizationDisabledForTest);
182 function->shared()->set_optimization_disabled(true); 183 function->shared()->set_optimization_disabled(true);
183 return isolate->heap()->undefined_value(); 184 return isolate->heap()->undefined_value();
184 } 185 }
185 186
186 187
187 RUNTIME_FUNCTION(Runtime_GetOptimizationStatus) { 188 RUNTIME_FUNCTION(Runtime_GetOptimizationStatus) {
188 HandleScope scope(isolate); 189 HandleScope scope(isolate);
189 RUNTIME_ASSERT(args.length() == 1 || args.length() == 2); 190 RUNTIME_ASSERT(args.length() == 1 || args.length() == 2);
190 if (!isolate->use_crankshaft()) { 191 if (!isolate->use_crankshaft()) {
191 return Smi::FromInt(4); // 4 == "never". 192 return Smi::FromInt(4); // 4 == "never".
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 558
558 RUNTIME_FUNCTION(Runtime_SpeciesProtector) { 559 RUNTIME_FUNCTION(Runtime_SpeciesProtector) {
559 SealHandleScope shs(isolate); 560 SealHandleScope shs(isolate);
560 DCHECK_EQ(0, args.length()); 561 DCHECK_EQ(0, args.length());
561 return isolate->heap()->ToBoolean(isolate->IsArraySpeciesLookupChainIntact()); 562 return isolate->heap()->ToBoolean(isolate->IsArraySpeciesLookupChainIntact());
562 } 563 }
563 564
564 565
565 } // namespace internal 566 } // namespace internal
566 } // namespace v8 567 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime-profiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698