Home | History | Annotate | Download | only in src

Lines Matching defs:code

6 //     * Redistributions of source code must retain the above copyright
1230 // re-declarations: This is similar to the code in parser.cc in
1756 Handle<Code> code(isolate->builtins()->builtin(builtin_name));
1761 code,
1890 CONVERT_CHECKED(Code, code, args[0]);
1893 RUNTIME_ASSERT(0 <= offset && offset < code->Size());
1895 Address pc = code->address() + offset;
1896 return Smi::FromInt(code->SourcePosition(pc));
1962 Handle<Object> code = args.at<Object>(1);
1966 if (!code->IsNull()) {
1967 RUNTIME_ASSERT(code->IsJSFunction());
1968 Handle<JSFunction> fun = Handle<JSFunction>::cast(code);
1976 shared->code()->set_optimizable(false);
1978 // Set the code, scope info, formal parameter count,
1980 target->shared()->set_code(shared->code());
1981 target->ReplaceCode(shared->code());
1986 // Set the source code of the target function to undefined.
1988 // Array, and Object, and some web code
1989 // doesn't like seeing source code for constructors.
1991 target->shared()->code()->set_optimizable(false);
1992 // Clear the optimization hints related to the compiled code as these are no
1993 // longer valid when the code is overwritten.
2033 uint32_t code;
2034 if (char_code->ToArrayIndex(&code)) {
2035 if (code <= 0xffff) {
2036 return isolate->heap()->LookupSingleCharacterStringFromCode(code);
5083 // attempt. See CALL_AND_RETRY in heap-inl.h and similar code in
6303 // smallest because the char code of '-' is less than the char code
7156 MaybeObject* code = compiler.CompileConstructStub(*function);
7157 if (!code->IsFailure()) {
7159 Code::cast(code->ToObjectUnchecked()));
7182 // case generated code bailouts here, since function has no initial_map.
7271 // order to get the optimized version. This helps code like delta-blue
7282 // All done. Return the compiled code.
7284 return function->code();
7293 // code from the full compiler.
7294 if (!function->shared()->code()->optimizable() ||
7299 PrintF(": is code optimizable: %s, is debugger enabled: %s]\n",
7300 function->shared()->code()->optimizable() ? "T" : "F",
7303 function->ReplaceCode(function->shared()->code());
7304 return function->code();
7307 return function->code();
7314 function->ReplaceCode(function->shared()->code());
7315 return function->code();
7363 // the optimized code around.
7379 // code when we have recursive invocations of the same function.
7382 PrintF("[removing optimized code for: ");
7386 function->ReplaceCode(function->shared()->code());
7430 // selected for on-stack replacement. Find the unoptimized code object.
7431 Handle<Code> unoptimized(function->shared()->code(), isolate);
7451 // unoptimized code.
7458 // Use linear search of the unoptimized code's stack check table to find
7481 // Try to compile the optimized code. A true return value from
7487 function->code()->deoptimization_data());
7490 PrintF("[on-stack replacement offset %d in optimized code]\n",
7504 // Revert to the original stack checks in the original unoptimized code.
7511 Handle<Code> check_code = check_stub.GetCode();
7512 Handle<Code> replacement_code = isolate->builtins()->OnStackReplacement();
7524 ASSERT(function->code()->kind() == Code::OPTIMIZED_FUNCTION);
7528 function->ReplaceCode(function->shared()->code());
8023 // If we have a string, assume it's a code "marker"
8202 // Make sure Isolate::context() agrees with the old code that traversed
8313 // Use as fallback for allocation in generated code when NewSpace
9210 // GC can happen later in this code so put the required fields into
9426 it.frame()->LookupCode()->kind() == Code::OPTIMIZED_FUNCTION;
9841 // created for evaluating top level code and it is not a real local scope.
9843 // saved with the code object does not otherwise have that information.
10537 // stack frame. A function which calls eval with the code to evaluate is then
10630 // Currently, the eval code will be executed in non-strict mode,
10631 // even in the strict code context.
10722 // Currently, the eval code will be executed in non-strict mode,
10723 // even in the strict code context.
10989 func->code()->PrintLn();
11076 // all generated code keeps references to this particular instance of script.
11131 // Replaces code of SharedFunctionInfo with a new one.
11165 // In a code of a parent function replaces original function as embedded object
11231 Handle<Code> code(function->code(), isolate);
11233 if (code->kind() != Code::FUNCTION &&
11234 code->kind() != Code::OPTIMIZED_FUNCTION) {
11238 RelocIterator it(*code, RelocInfo::ModeMask(RelocInfo::STATEMENT_POSITION));
11247 static_cast<int>(it.rinfo()->pc() - code->instruction_start());
11260 // This is used in unit tests to run code as if debugger is entered or simply
11621 // element segments each containing a receiver, function, code and
11622 // native code offset.
11665 Handle<Code> code = frames[i].code();
11669 elements->set(cursor++, *code);
11838 // Exclude the code in release mode.
11935 // Non-recoverable failure. Calling code must restart heap