Lines Matching defs:code
2 // Use of this source code is governed by a BSD-style license that can be
7 #include "src/code-stubs.h"
24 explicit V8NameConverter(Code* code) : code_(code) {}
27 Code* code() const { return code_; }
29 Code* code_;
46 // print as code offset, if it seems reasonable
58 // The V8NameConverter is used for well known code, so we can "safely"
59 // dereference pointers in generated code.
85 if (converter.code() != NULL) {
86 it = new RelocIterator(converter.code());
88 // No relocation information when printing code stubs.
111 // raw pointer embedded in code stream, e.g., jump table
160 converter.code());
200 out.AddFormatted(" ;; code:");
201 Code* code = Code::GetCodeFromTargetAddress(relocinfo.target_address());
202 Code::Kind kind = code->kind();
203 if (code->is_inline_cache_stub()) {
204 if (kind == Code::LOAD_GLOBAL_IC &&
205 LoadGlobalICState::GetTypeofMode(code->extra_ic_state()) ==
209 out.AddFormatted(" %s", Code::Kind2String(kind));
211 InlineCacheState ic_state = IC::StateFromCode(code);
212 out.AddFormatted(" %s", Code::ICState2String(ic_state));
214 } else if (kind == Code::STUB || kind == Code::HANDLER) {
216 uint32_t key = code->stub_key();
218 CodeStub::Major major_key = CodeStub::GetMajorKey(code);
220 out.AddFormatted(" %s, %s, ", Code::Kind2String(kind),
224 out.AddFormatted(" %s", Code::Kind2String(kind));
279 byte* end, Code* code) {
280 V8NameConverter v8NameConverter(code);
287 byte* end, Code* code) {