зеркало из https://github.com/mozilla/gecko-dev.git
Bug 795765 - Fix "used but never defined" warning for JSObject::asString(). r=jwalden.
This commit is contained in:
Родитель
7ad8f721a7
Коммит
c5240fbef4
|
@ -22,6 +22,11 @@ using namespace js::ion;
|
|||
namespace js {
|
||||
namespace ion {
|
||||
|
||||
StringObject *
|
||||
MNewStringObject::templateObj() const {
|
||||
return &templateObj_->asString();
|
||||
}
|
||||
|
||||
CodeGenerator::CodeGenerator(MIRGenerator *gen, LIRGraph &graph)
|
||||
: CodeGeneratorSpecific(gen, graph)
|
||||
{
|
||||
|
|
|
@ -5311,9 +5311,9 @@ class MNewStringObject :
|
|||
MDefinition *input() const {
|
||||
return getOperand(0);
|
||||
}
|
||||
StringObject *templateObj() const {
|
||||
return &templateObj_->asString();
|
||||
}
|
||||
|
||||
StringObject *templateObj() const;
|
||||
|
||||
TypePolicy *typePolicy() {
|
||||
return this;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче