Lines Matching defs:code
6 // * Redistributions of source code must retain the above copyright
30 #include "code-stubs.h"
62 explicit V8NameConverter(Code* code) : code_(code) {}
65 Code* code() const { return code_; }
67 Code* code_;
82 // print as code offset, if it seems reasonable
94 // The V8NameConverter is used for well known code, so we can "safely"
95 // dereference pointers in generated code.
125 if (converter.code() != NULL) {
126 it = new RelocIterator(converter.code());
128 // No relocation information when printing code stubs.
151 // raw pointer embedded in code stream, e.g., jump table
234 out.AddFormatted(" ;; code:");
238 Code* code = Code::GetCodeFromTargetAddress(relocinfo.target_address());
239 Code::Kind kind = code->kind();
240 if (code->is_inline_cache_stub()) {
244 InlineCacheState ic_state = code->ic_state();
245 out.AddFormatted(" %s, %s", Code::Kind2String(kind),
246 Code::ICState2String(ic_state));
248 PropertyType type = code->type();
249 out.AddFormatted(", %s", Code::PropertyType2String(type));
251 if (code->ic_in_loop() == IN_LOOP) {
254 if (kind == Code::CALL_IC || kind == Code::KEYED_CALL_IC) {
255 out.AddFormatted(", argc = %d", code->arguments_count());
257 } else if (kind == Code::STUB) {
259 // from the code object.
260 Object* obj = heap->code_stubs()->SlowReverseLookup(code);
266 CodeStub::Major major_key = CodeStub::GetMajorKey(code);
269 Code::Kind2String(kind),
283 out.AddFormatted(" %s", Code::Kind2String(kind));
315 // Called by Code::CodePrint.
316 void Disassembler::Decode(FILE* f, Code* code) {
317 int decode_size = (code->kind() == Code::OPTIMIZED_FUNCTION)
318 ? static_cast<int>(code->safepoint_table_offset())
319 : code->instruction_size();
321 if (code->kind() == Code::FUNCTION) {
323 Min(decode_size, static_cast<int>(code->stack_check_table_offset()));
326 byte* begin = code->instruction_start();
328 V8NameConverter v8NameConverter(code);
336 void Disassembler::Decode(FILE* f, Code* code) {}