Lines Matching refs:Code
2 // Use of this source code is governed by a BSD-style license that can be
323 Code* Serializer::CopyCode(Code* code) {
325 int size = code->CodeSize();
326 code_buffer_.AddAll(Vector<byte>(code->address(), size));
327 return Code::cast(HeapObject::FromAddress(&code_buffer_.first()));
502 // The exception are native source code strings, since we can recreate
628 DCHECK_NOT_NULL(target); // Code does not reference null.
634 // We can only reference to internal references of code that has been output.
639 // end of the code in the constant pool, whereas internal references are
641 // offset from code entry.
642 Address entry = Code::cast(object_)->entry();
646 pc_offset <= Code::cast(object_)->instruction_size());
648 target_offset <= Code::cast(object_)->instruction_size());
671 Code* object = Code::GetCodeFromTargetAddress(rinfo->target_address());
678 Code* object = Code::cast(Code::GetObjectFromEntryAddress(entry_address));
737 Code* code = Code::cast(object_);
739 // To make snapshots reproducible, we make a copy of the code object
741 code = serializer_->CopyCode(code);
748 for (RelocIterator it(code, mode_mask); !it.done(); it.next()) {
754 code->WipeOutHeader();
756 // Code age headers are not serializable.
757 code->MakeYoung(serializer_->isolate());
758 return code->address();
775 // Output the code all at once and fix later.
788 // We always end up here if we are outputting the code of a code object.
795 const char* description = is_code_object ? "Code" : "Byte";