__ sub(ecx, Operand::StaticVariable(stack_guard_limit));
// Handle it if the stack pointer is already below the stack limit.
__ j(below_equal, &stack_limit_hit, not_taken);
- // Check if there is room for num_registers + ebp above the stack limit.
- __ cmp(ecx, (num_registers_ + 1) * kPointerSize);
+ // Check if there is room for the variable number of registers above
+ // the stack limit.
+ __ cmp(ecx, num_registers_ * kPointerSize);
__ j(above_equal, &stack_ok, taken);
// Exit with exception.
__ mov(eax, EXCEPTION);
inline Register backtrack_stackpointer() { return ecx; }
// Byte size of chars in the string to match (decided by the Mode argument)
- inline size_t char_size() { return static_cast<size_t>(mode_); }
+ inline int char_size() { return static_cast<int>(mode_); }
// Equivalent to a conditional branch to the label, unless the label
// is NULL, in which case it is a conditional Backtrack.
// constants.
ByteArrayProvider constants_;
- // Which mode to generate code for (ASCII or UTF16).
+ // Which mode to generate code for (ASCII or UC16).
Mode mode_;
// One greater than maximal register index actually used.
}
-
-
TEST(MacroAssemblerIA32BackRefNoCase) {
v8::V8::Initialize();
ContextInitializer initializer;