Lines Matching refs:Code
2 // Use of this source code is governed by a BSD-style license that can be
10 #include "src/code-stubs.h"
42 // Maximum size in bytes of generate code for a function to allow OSR.
53 // Maximum size in bytes of generated code for a function to be optimized
61 // We aren't using the code size multiplier here because there is no
105 if (function->code()->kind() == Code::FUNCTION) {
106 Code* shared_code = function->shared()->code();
177 // If the code is not optimizable, don't try OSR.
181 // allocated arguments object. The optimized code would bypass it for
185 // We're using on-stack replacement: modify unoptimized code so that
198 DCHECK(BackEdgeTable::Verify(shared->GetIsolate(), shared->code()));
200 BackEdgeTable::Patch(isolate_, shared->code());
217 Code* shared_code = shared->code();
218 if (shared_code->kind() != Code::FUNCTION) return;
228 // Attempt OSR if we are still running unoptimized code even though the
235 ticks < Code::ProfilerTicksField::kMax) {
243 // Only record top-level code on top of the execution stack and
244 // avoid optimizing excessively large scripts since top-level code
375 // TODO(rmcilroy): Also ensure we only OSR top-level code if it is smaller
385 // Attempt OSR if we are still running interpreted code even though the
473 // should be optimized to keep FCG (which updates ticks on code) and