Home | History | Annotate | Download | only in src

Lines Matching refs:Code

6 //     * Redistributions of source code must retain the above copyright
34 #include "code-stubs.h"
83 // Maximum size in bytes of generate code for a function to allow OSR.
90 // Maximum size in bytes of generated code for a function to be optimized
109 static void GetICCounts(Code* shared_code,
136 GetICCounts(function->shared()->code(), &typeinfo, &total, &percentage);
163 // If the code is not optimizable, don't try OSR.
164 if (!shared->code()->optimizable()) return;
167 // allocated arguments object. The optimized code would bypass it for
171 // We're using on-stack replacement: patch the unoptimized code so that
180 // Get the interrupt stub code object to match against. We aren't
182 Code* interrupt_code = NULL;
186 Code* replacement_code =
188 Code* unoptimized_code = shared->code();
270 Code* shared_code = shared->code();
272 if (shared_code->kind() != Code::FUNCTION) continue;
278 for (int i = 0; i < Code::kMaxLoopNestingMarker; i++) {
288 // Attempt OSR if we are still running unoptimized code even though the
297 if (nesting < Code::kMaxLoopNestingMarker) {
306 // Only record top-level code on top of the execution stack and
307 // avoid optimizing excessively large scripts since top-level code