Commit 9e02f380 authored by bak@chromium.org's avatar bak@chromium.org

Removed the delete calls to ZoneObjects.

Review URL: http://codereview.chromium.org/115348

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1948 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent c70ec7a3
......@@ -1529,8 +1529,6 @@ void CodeGenerator::GenerateFastCaseSwitchJumpTable(
if (node->break_target()->is_linked()) {
node->break_target()->Bind();
}
delete start_frame;
}
......@@ -2132,7 +2130,6 @@ void CodeGenerator::VisitTryCatch(TryCatch* node) {
}
shadows[i]->other_target()->Jump();
}
delete shadows[i];
}
exit.Bind();
......@@ -2308,7 +2305,6 @@ void CodeGenerator::VisitTryFinally(TryFinally* node) {
original->Branch(eq);
}
}
delete shadows[i];
}
if (has_valid_frame()) {
......
......@@ -272,7 +272,6 @@ void JumpTarget::DoBind(int mergable_elements) {
if (other != NULL && other->Equals(cgen_->frame())) {
// Set the reaching frame element to null to avoid
// processing it later, and then bind its entry label.
delete other;
reaching_frames_[j] = NULL;
__ bind(&merge_labels_[j]);
}
......@@ -309,7 +308,6 @@ void JumpTarget::DoBind(int mergable_elements) {
// them.
for (int i = 0; i < reaching_frames_.length(); i++) {
if (!merge_labels_[i].is_bound()) {
delete reaching_frames_[i];
reaching_frames_[i] = NULL;
__ bind(&merge_labels_[i]);
}
......
......@@ -104,7 +104,6 @@ void CodeGenerator::SetFrame(VirtualFrame* new_frame,
void CodeGenerator::DeleteFrame() {
if (has_valid_frame()) {
frame_->DetachFromCodeGenerator();
delete frame_;
frame_ = NULL;
}
}
......
......@@ -2183,8 +2183,6 @@ void CodeGenerator::GenerateFastCaseSwitchJumpTable(
__ WriteInternalReference(entry_pos, *case_targets[i]);
}
}
delete start_frame;
}
......@@ -2978,7 +2976,6 @@ void CodeGenerator::VisitTryCatch(TryCatch* node) {
shadows[i]->other_target()->Jump();
}
}
delete shadows[i];
}
exit.Bind();
......@@ -3159,7 +3156,6 @@ void CodeGenerator::VisitTryFinally(TryFinally* node) {
original->Branch(equal);
}
}
delete shadows[i];
}
if (has_valid_frame()) {
......
......@@ -305,7 +305,6 @@ void JumpTarget::DoBind(int mergable_elements) {
if (other != NULL && other->Equals(cgen_->frame())) {
// Set the reaching frame element to null to avoid
// processing it later, and then bind its entry label.
delete other;
reaching_frames_[j] = NULL;
__ bind(&merge_labels_[j]);
}
......@@ -342,7 +341,6 @@ void JumpTarget::DoBind(int mergable_elements) {
// them.
for (int i = 0; i < reaching_frames_.length(); i++) {
if (!merge_labels_[i].is_bound()) {
delete reaching_frames_[i];
reaching_frames_[i] = NULL;
__ bind(&merge_labels_[i]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment