Put a slow assert under the enable_slow_asserts flag.
Otherwise really large functions take too long to compile in debug mode. Review URL: http://codereview.chromium.org/9212040 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10480 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
2284996cc1
commit
c6e1d11885
@ -370,6 +370,7 @@ void FullCodeGenerator::PrepareForBailoutForId(unsigned id, State state) {
|
||||
StateField::encode(state) | PcField::encode(masm_->pc_offset());
|
||||
BailoutEntry entry = { id, pc_and_state };
|
||||
#ifdef DEBUG
|
||||
if (FLAG_enable_slow_asserts) {
|
||||
// Assert that we don't have multiple bailout entries for the same node.
|
||||
for (int i = 0; i < bailout_entries_.length(); i++) {
|
||||
if (bailout_entries_.at(i).id == entry.id) {
|
||||
@ -378,6 +379,7 @@ void FullCodeGenerator::PrepareForBailoutForId(unsigned id, State state) {
|
||||
UNREACHABLE();
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // DEBUG
|
||||
bailout_entries_.Add(entry);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user