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

Side by Side Diff: src/lithium.cc

Issue 1155703006: Revert of Embedded constant pools. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « src/ic/ppc/handler-compiler-ppc.cc ('k') | src/macro-assembler.h » ('j') | 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 "src/lithium.h" 5 #include "src/lithium.h"
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/scopes.h" 9 #include "src/scopes.h"
10 10
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 for (int i = 0; i < maps.length(); i++) { 449 for (int i = 0; i < maps.length(); i++) {
450 if (maps.at(i)->dependent_code()->number_of_entries( 450 if (maps.at(i)->dependent_code()->number_of_entries(
451 DependentCode::kWeakCodeGroup) == 0) { 451 DependentCode::kWeakCodeGroup) == 0) {
452 isolate()->heap()->AddRetainedMap(maps.at(i)); 452 isolate()->heap()->AddRetainedMap(maps.at(i));
453 } 453 }
454 Map::AddDependentCode(maps.at(i), DependentCode::kWeakCodeGroup, code); 454 Map::AddDependentCode(maps.at(i), DependentCode::kWeakCodeGroup, code);
455 } 455 }
456 for (int i = 0; i < objects.length(); i++) { 456 for (int i = 0; i < objects.length(); i++) {
457 AddWeakObjectToCodeDependency(isolate(), objects.at(i), code); 457 AddWeakObjectToCodeDependency(isolate(), objects.at(i), code);
458 } 458 }
459 if (FLAG_enable_ool_constant_pool) {
460 code->constant_pool()->set_weak_object_state(
461 ConstantPoolArray::WEAK_OBJECTS_IN_OPTIMIZED_CODE);
462 }
459 code->set_can_have_weak_objects(true); 463 code->set_can_have_weak_objects(true);
460 } 464 }
461 465
462 466
463 void LChunk::CommitDependencies(Handle<Code> code) const { 467 void LChunk::CommitDependencies(Handle<Code> code) const {
464 if (!code->is_optimized_code()) return; 468 if (!code->is_optimized_code()) return;
465 HandleScope scope(isolate()); 469 HandleScope scope(isolate());
466 470
467 for (MapSet::const_iterator it = deprecation_dependencies_.begin(), 471 for (MapSet::const_iterator it = deprecation_dependencies_.begin(),
468 iend = deprecation_dependencies_.end(); it != iend; ++it) { 472 iend = deprecation_dependencies_.end(); it != iend; ++it) {
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 721
718 LPhase::~LPhase() { 722 LPhase::~LPhase() {
719 if (ShouldProduceTraceOutput()) { 723 if (ShouldProduceTraceOutput()) {
720 isolate()->GetHTracer()->TraceLithium(name(), chunk_); 724 isolate()->GetHTracer()->TraceLithium(name(), chunk_);
721 } 725 }
722 } 726 }
723 727
724 728
725 } // namespace internal 729 } // namespace internal
726 } // namespace v8 730 } // namespace v8
OLDNEW
« no previous file with comments | « src/ic/ppc/handler-compiler-ppc.cc ('k') | src/macro-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698