Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: src/full-codegen.cc

Issue 268443002: Fix gcmole warning in EnsureSlotContainsAllocationSite(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "v8.h" 5 #include "v8.h"
6 6
7 #include "codegen.h" 7 #include "codegen.h"
8 #include "compiler.h" 8 #include "compiler.h"
9 #include "debug.h" 9 #include "debug.h"
10 #include "full-codegen.h" 10 #include "full-codegen.h"
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 __ dd(back_edges_[i].pc); 357 __ dd(back_edges_[i].pc);
358 __ dd(back_edges_[i].loop_depth); 358 __ dd(back_edges_[i].loop_depth);
359 } 359 }
360 return offset; 360 return offset;
361 } 361 }
362 362
363 363
364 void FullCodeGenerator::EnsureSlotContainsAllocationSite(int slot) { 364 void FullCodeGenerator::EnsureSlotContainsAllocationSite(int slot) {
365 Handle<FixedArray> vector = FeedbackVector(); 365 Handle<FixedArray> vector = FeedbackVector();
366 if (!vector->get(slot)->IsAllocationSite()) { 366 if (!vector->get(slot)->IsAllocationSite()) {
367 vector->set(slot, *isolate()->factory()->NewAllocationSite()); 367 Handle<AllocationSite> allocation_site =
368 isolate()->factory()->NewAllocationSite();
369 vector->set(slot, *allocation_site);
368 } 370 }
369 } 371 }
370 372
371 373
372 void FullCodeGenerator::PopulateDeoptimizationData(Handle<Code> code) { 374 void FullCodeGenerator::PopulateDeoptimizationData(Handle<Code> code) {
373 // Fill in the deoptimization information. 375 // Fill in the deoptimization information.
374 ASSERT(info_->HasDeoptimizationSupport() || bailout_entries_.is_empty()); 376 ASSERT(info_->HasDeoptimizationSupport() || bailout_entries_.is_empty());
375 if (!info_->HasDeoptimizationSupport()) return; 377 if (!info_->HasDeoptimizationSupport()) return;
376 int length = bailout_entries_.length(); 378 int length = bailout_entries_.length();
377 Handle<DeoptimizationOutputData> data = 379 Handle<DeoptimizationOutputData> data =
(...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after
1692 } 1694 }
1693 return true; 1695 return true;
1694 } 1696 }
1695 #endif // DEBUG 1697 #endif // DEBUG
1696 1698
1697 1699
1698 #undef __ 1700 #undef __
1699 1701
1700 1702
1701 } } // namespace v8::internal 1703 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698