зеркало из https://github.com/mozilla/gecko-dev.git
Bug 790479 - Remove a bogus assert, unused SNAPSHOT_MAX_STACK constant. r=djvj
This commit is contained in:
Родитель
c344eab66c
Коммит
b2870b9aeb
|
@ -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();
|
Загрузка…
Ссылка в новой задаче