Home | History | Annotate | Download | only in src

Lines Matching refs:code

6 //     * Redistributions of source code must retain the above copyright
30 #include "code-stubs.h"
58 explicit V8NameConverter(Code* code) : code_(code) {}
61 Code* code() const { return code_; }
63 Code* code_;
78 // print as code offset, if it seems reasonable
90 // The V8NameConverter is used for well known code, so we can "safely"
91 // dereference pointers in generated code.
120 if (converter.code() != NULL) {
121 it = new RelocIterator(converter.code());
123 // No relocation information when printing code stubs.
146 // raw pointer embedded in code stream, e.g., jump table
229 out.AddFormatted(" ;; code:");
233 Code* code = Code::GetCodeFromTargetAddress(relocinfo.target_address());
234 Code::Kind kind = code->kind();
235 if (code->is_inline_cache_stub()) {
239 InlineCacheState ic_state = code->ic_state();
240 out.AddFormatted(" %s, %s", Code::Kind2String(kind),
241 Code::ICState2String(ic_state));
243 PropertyType type = code->type();
244 out.AddFormatted(", %s", Code::PropertyType2String(type));
246 if (code->ic_in_loop() == IN_LOOP) {
249 if (kind == Code::CALL_IC) {
250 out.AddFormatted(", argc = %d", code->arguments_count());
252 } else if (kind == Code::STUB) {
254 // from the code object.
255 Object* obj = Heap::code_stubs()->SlowReverseLookup(code);
261 ASSERT(code->major_key() == CodeStub::MajorKeyFromKey(key));
263 Code::Kind2String(kind),
264 CodeStub::MajorName(code->major_key(), false));
265 switch (code->major_key()) {
274 out.AddFormatted(" %s", Code::Kind2String(kind));
296 // Called by Code::CodePrint.
297 void Disassembler::Decode(FILE* f, Code* code) {
298 byte* begin = Code::cast(code)->instruction_start();
299 byte* end = begin + Code::cast(code)->instruction_size();
300 V8NameConverter v8NameConverter(code);
308 void Disassembler::Decode(FILE* f, Code* code) {}