Revision: 12068
Author: [email protected]
Date: Thu Jul 12 08:40:05 2012
Log: Install guards for new invariants required for parallel
compilation.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/10700185
http://code.google.com/p/v8/source/detail?r=12068
Modified:
/branches/bleeding_edge/src/hydrogen.cc
/branches/bleeding_edge/src/lithium.cc
=======================================
--- /branches/bleeding_edge/src/hydrogen.cc Thu Jul 12 08:29:14 2012
+++ /branches/bleeding_edge/src/hydrogen.cc Thu Jul 12 08:40:05 2012
@@ -1711,15 +1711,12 @@
block_side_effects_(graph->blocks()->length(), graph->zone()),
loop_side_effects_(graph->blocks()->length(), graph->zone()),
visited_on_paths_(graph->zone(), graph->blocks()->length()) {
- ASSERT(info->isolate()->heap()->allow_allocation(false));
+ ASSERT(!info->isolate()->heap()->IsAllocationAllowed());
block_side_effects_.AddBlock(GVNFlagSet(), graph_->blocks()->length(),
graph_->zone());
loop_side_effects_.AddBlock(GVNFlagSet(), graph_->blocks()->length(),
graph_->zone());
}
- ~HGlobalValueNumberer() {
- ASSERT(!info_->isolate()->heap()->allow_allocation(true));
- }
// Returns true if values with side effects are removed.
bool Analyze();
@@ -3085,6 +3082,9 @@
}
bool HGraph::Optimize(SmartArrayPointer<char>* bailout_reason) {
+ NoHandleAllocation no_handles;
+ AssertNoAllocation no_gc;
+
*bailout_reason = SmartArrayPointer<char>();
OrderBlocks();
AssignDominators();
@@ -3482,7 +3482,6 @@
void HGraph::EliminateRedundantBoundsChecks() {
HPhase phase("H_Eliminate bounds checks", this);
- AssertNoAllocation no_gc;
BoundsCheckTable checks_table(zone());
EliminateRedundantBoundsChecks(entry_block(), &checks_table);
}
=======================================
--- /branches/bleeding_edge/src/lithium.cc Thu Jul 12 08:29:14 2012
+++ /branches/bleeding_edge/src/lithium.cc Thu Jul 12 08:40:05 2012
@@ -391,6 +391,9 @@
LChunk* LChunk::NewChunk(HGraph* graph) {
+ NoHandleAllocation no_handles;
+ AssertNoAllocation no_gc;
+
int values = graph->GetMaximumValueID();
if (values > LUnallocated::kMaxVirtualRegisters) {
if (FLAG_trace_bailout) {
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev