From 8ccc3f5d06fd217cdaabd37e743adab2031d3720 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 19 Mar 2014 10:34:11 +0000 Subject: Add support for invoke-static in optimizing compiler. Support is limited to calls without parameters and returning void. For simplicity, we currently follow the Quick ABI. Change-Id: I54805161141b7eac5959f1cae0dc138dd0b2e8a5 --- compiler/utils/assembler.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'compiler/utils/assembler.h') diff --git a/compiler/utils/assembler.h b/compiler/utils/assembler.h index cd4fc12e33..3dc5b5dd7a 100644 --- a/compiler/utils/assembler.h +++ b/compiler/utils/assembler.h @@ -48,6 +48,23 @@ namespace x86 { class X86Assembler; } +class ExternalLabel { + public: + ExternalLabel(const char* name, uword address) + : name_(name), address_(address) { + DCHECK(name != nullptr); + } + + const char* name() const { return name_; } + uword address() const { + return address_; + } + + private: + const char* name_; + const uword address_; +}; + class Label { public: Label() : position_(0) {} -- cgit v1.2.3-59-g8ed1b