Bug 790479 - Remove a bogus assert, unused SNAPSHOT_MAX_STACK constant. r=djvj

This commit is contained in:
Jan de Mooij 2013-03-22 19:47:55 +01:00
Родитель c344eab66c
Коммит b2870b9aeb
3 изменённых файлов: 17 добавлений и 3 удалений

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

@ -28,9 +28,8 @@ namespace ion {
// bit on offsets.
static const uint32_t MAX_BUFFER_SIZE = (1 << 30) - 1;
// Maximum number of scripted arg and stack slots.
// Maximum number of scripted arg slots.
static const uint32_t SNAPSHOT_MAX_NARGS = 127;
static const uint32_t SNAPSHOT_MAX_STACK = 127;
class MacroAssembler;
class CodeOffsetLabel;

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

@ -300,7 +300,6 @@ void
SnapshotWriter::startFrame(JSFunction *fun, RawScript script, jsbytecode *pc, uint32_t exprStack)
{
JS_ASSERT(CountArgSlots(fun) < SNAPSHOT_MAX_NARGS);
JS_ASSERT(exprStack < SNAPSHOT_MAX_STACK);
uint32_t formalArgs = CountArgSlots(fun);

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

@ -0,0 +1,16 @@
function f() {};
function g() {
f(0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,
0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,
0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,
0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,
0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,
0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,
0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,
0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,
0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,
0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9);
}
g();
g();
g();