Bug 795765 - Fix "used but never defined" warning for JSObject::asString(). r=jwalden.

This commit is contained in:
Nicholas Nethercote 2012-09-30 17:04:32 -07:00
Родитель 7ad8f721a7
Коммит c5240fbef4
2 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -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;
}