зеркало из https://github.com/mozilla/gecko-dev.git
Bug 830000 - Add CallArgs::handleAt; r=Waldo
This commit is contained in:
Родитель
e5e916e581
Коммит
9dd59cd1a1
|
@ -628,6 +628,16 @@ class CallArgs : public CallReceiver
|
|||
friend CallArgs CallArgsFromArgv(unsigned, Value *);
|
||||
friend CallArgs CallArgsFromSp(unsigned, Value *);
|
||||
Value &operator[](unsigned i) const { JS_ASSERT(i < argc_); return argv_[i]; }
|
||||
MutableHandleValue handleAt(unsigned i)
|
||||
{
|
||||
JS_ASSERT(i < argc_);
|
||||
return MutableHandleValue::fromMarkedLocation(&argv_[i]);
|
||||
}
|
||||
HandleValue handleAt(unsigned i) const
|
||||
{
|
||||
JS_ASSERT(i < argc_);
|
||||
return HandleValue::fromMarkedLocation(&argv_[i]);
|
||||
}
|
||||
Value get(unsigned i) const
|
||||
{
|
||||
return i < length() ? argv_[i] : UndefinedValue();
|
||||
|
|
Загрузка…
Ссылка в новой задаче