Lines Matching refs:Code
6 // * Redistributions of source code must retain the above copyright
76 // We rely on this function not causing a GC. It is called from generated code
133 // Get the function and code from the frame.
135 Code* code = frame->LookupCode();
137 // Locate the deoptimization point in the code. As we are at a call the
138 // return address must be at a place in the code with deoptimization support.
139 SafepointEntry safepoint_entry = code->GetSafepointEntry(frame->pc());
145 unsigned stack_slots = code->stack_slots();
154 code);
328 RemoveDeoptimizingCode(*node->code());
350 Code* optimized_code)
381 // Find the optimized code.
384 optimized_code_ = function_->code();
411 // function. The return address (from) points to unoptimized code.
412 optimized_code_ = function_->code();
413 ASSERT(optimized_code_->kind() == Code::OPTIMIZED_FUNCTION);
499 // Print the source code if available.
522 // We rely on this function not causing a GC. It is called from generated code
1028 // Optimized code assumes that the argument object has not been
1042 void Deoptimizer::PatchStackCheckCode(Code* unoptimized_code,
1043 Code* check_code,
1044 Code* replacement_code) {
1046 // call to an unconditional call to the replacement code.
1047 ASSERT(unoptimized_code->kind() == Code::FUNCTION);
1064 void Deoptimizer::RevertStackCheckCode(Code* unoptimized_code,
1065 Code* check_code,
1066 Code* replacement_code) {
1069 ASSERT(unoptimized_code->kind() == Code::FUNCTION);
1095 // environment at the OSR entry. The code for that his built into
1150 // references. This is fine because the deoptimizer's code section
1175 Code* Deoptimizer::FindDeoptimizingCodeFromAddress(Address addr) {
1179 if (node->code()->contains(addr)) return *node->code();
1186 void Deoptimizer::RemoveDeoptimizingCode(Code* code) {
1189 // Run through the code objects to find this one and remove it.
1193 if (*current->code() == code) {
1207 // Deoptimizing code is removed through weak callback. Each object is expected
1358 buffer_->Add(reg.code());
1364 buffer_->Add(reg.code());
1471 DeoptimizingCodeListNode::DeoptimizingCodeListNode(Code* code): next_(NULL) {
1473 // Globalize the code object and make it weak.
1474 code_ = Handle<Code>::cast(global_handles->Create(code));
1632 // Get the source position using the unoptimized code.
1634 Code* code = Code::cast(Isolate::Current()->heap()->FindCodeObject(pc));
1635 source_position_ = code->SourcePosition(pc);