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

Side by Side Diff: src/compiler/code-generator.cc

Issue 1131783003: Embedded constant pools. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/linkage.h" 8 #include "src/compiler/linkage.h"
9 #include "src/compiler/pipeline.h" 9 #include "src/compiler/pipeline.h"
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 // Emit the jump tables. 122 // Emit the jump tables.
123 if (jump_tables_) { 123 if (jump_tables_) {
124 masm()->Align(kPointerSize); 124 masm()->Align(kPointerSize);
125 for (JumpTable* table = jump_tables_; table; table = table->next()) { 125 for (JumpTable* table = jump_tables_; table; table = table->next()) {
126 masm()->bind(table->label()); 126 masm()->bind(table->label());
127 AssembleJumpTable(table->targets(), table->target_count()); 127 AssembleJumpTable(table->targets(), table->target_count());
128 } 128 }
129 } 129 }
130 130
131 if (FLAG_enable_embedded_constant_pool) {
132 AssembleConstantPool();
rmcilroy 2015/05/20 14:32:11 Do we need this here too if we are doing it in Get
MTBrandyberry 2015/05/20 22:28:22 See earlier response.
133 }
134
131 safepoints()->Emit(masm(), frame()->GetSpillSlotCount()); 135 safepoints()->Emit(masm(), frame()->GetSpillSlotCount());
132 136
133 Handle<Code> result = v8::internal::CodeGenerator::MakeCodeEpilogue( 137 Handle<Code> result = v8::internal::CodeGenerator::MakeCodeEpilogue(
134 masm(), info->flags(), info); 138 masm(), info->flags(), info);
135 result->set_is_turbofanned(true); 139 result->set_is_turbofanned(true);
136 result->set_stack_slots(frame()->GetSpillSlotCount()); 140 result->set_stack_slots(frame()->GetSpillSlotCount());
137 result->set_safepoint_table_offset(safepoints()->GetCodeOffset()); 141 result->set_safepoint_table_offset(safepoints()->GetCodeOffset());
138 142
139 // Emit exception handler table. 143 // Emit exception handler table.
140 if (!handlers_.empty()) { 144 if (!handlers_.empty()) {
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 654
651 void CodeGenerator::AddNopForSmiCodeInlining() { UNIMPLEMENTED(); } 655 void CodeGenerator::AddNopForSmiCodeInlining() { UNIMPLEMENTED(); }
652 656
653 657
654 void CodeGenerator::AssembleJumpTable(Label** targets, size_t target_count) { 658 void CodeGenerator::AssembleJumpTable(Label** targets, size_t target_count) {
655 UNIMPLEMENTED(); 659 UNIMPLEMENTED();
656 } 660 }
657 661
658 #endif // !V8_TURBOFAN_BACKEND 662 #endif // !V8_TURBOFAN_BACKEND
659 663
664 #if !V8_TURBOFAN_BACKEND || !V8_EMBEDDED_CONSTANT_POOL
665
666 void CodeGenerator::AssembleConstantPool() { UNIMPLEMENTED(); }
667
668 #endif // !V8_TURBOFAN_BACKEND || !V8_EMBEDDED_CONSTANT_POOL
660 669
661 OutOfLineCode::OutOfLineCode(CodeGenerator* gen) 670 OutOfLineCode::OutOfLineCode(CodeGenerator* gen)
662 : masm_(gen->masm()), next_(gen->ools_) { 671 : masm_(gen->masm()), next_(gen->ools_) {
663 gen->ools_ = this; 672 gen->ools_ = this;
664 } 673 }
665 674
666 675
667 OutOfLineCode::~OutOfLineCode() {} 676 OutOfLineCode::~OutOfLineCode() {}
668 677
669 } // namespace compiler 678 } // namespace compiler
670 } // namespace internal 679 } // namespace internal
671 } // namespace v8 680 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698