| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |