5 #ifndef V8_CODE_REFERENCE_H_ 6 #define V8_CODE_REFERENCE_H_ 8 #include "src/handles.h" 9 #include "src/objects/code.h" 24 : kind_(WASM), wasm_code_(wasm_code) {}
28 Address instruction_start()
const;
29 Address instruction_end()
const;
30 int instruction_size()
const;
31 const byte* relocation_start()
const;
32 const byte* relocation_end()
const;
33 int relocation_size()
const;
34 bool is_null()
const {
35 return kind_ == JS ? js_code_.is_null() : wasm_code_ ==
nullptr;
44 DCHECK_EQ(WASM, kind_);
49 enum { JS, WASM } kind_;
55 DISALLOW_NEW_AND_DELETE();
62 #endif // V8_CODE_REFERENCE_H_