Home | History | Annotate | Download | only in runtime

Lines Matching refs:Code

2 // Use of this source code is governed by a BSD-style license that can be
41 return function->code();
54 return function->code();
67 return function->code();
81 return function->code();
112 // replace code with CompileLazy, and return a smi 0 to indicate failure.
117 DCHECK(function->code() ==
120 if (function->shared()->code() ==
139 Code* code_;
142 explicit ActivationsFinder(Code* code)
143 : code_(code), has_code_activations_(false) {}
171 Handle<Code> optimized_code = deoptimizer->compiled_code();
173 DCHECK(optimized_code->kind() == Code::OPTIMIZED_FUNCTION);
207 // Search for other activations of the same optimized code.
216 if (function->code() == *optimized_code) {
218 PrintF("[removing optimized code for: ");
222 function->ReplaceCode(function->shared()->code());
224 // Evict optimized code for this function from the cache so that it
229 // TODO(titzer): we should probably do DeoptimizeCodeList(code)
230 // unconditionally if the code is not already marked for deoptimization.
259 Handle<Code> caller_code(frame->function()->shared()->code());
264 // Code on the stack may not be the code object referenced by the shared
266 caller_code = Handle<Code>(frame->LookupCode());
270 DCHECK_EQ(Code::FUNCTION, caller_code->kind());
322 // also disarm all back edges in the calling code to stop new requests.
328 MaybeHandle<Code> maybe_result;
338 // Check whether we ended up with usable optimized code.
339 Handle<Code> result;
341 result->kind() == Code::OPTIMIZED_FUNCTION) {
348 PrintF("[OSR - Entry at AST id %d, offset %d in optimized code]\n",
369 // Crankshafted OSR code can be installed into the function.
384 function->ReplaceCode(function->shared()->code());
403 return (function->IsOptimized()) ? function->code()
404 : function->shared()->code();
415 // No callback set and code generation disallowed.
418 // Callback set. Let it decide if code generation is allowed.
431 // Check if native context allows code generation from