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

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

Issue 2284313003: Separate CompilationInfo into its own file. (Closed)
Patch Set: fix Created 4 years, 3 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/compiler/code-generator.h ('k') | src/compiler/graph-visualizer.cc » ('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 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/address-map.h" 7 #include "src/address-map.h"
8 #include "src/base/adapters.h" 8 #include "src/base/adapters.h"
9 #include "src/compilation-info.h"
9 #include "src/compiler/code-generator-impl.h" 10 #include "src/compiler/code-generator-impl.h"
10 #include "src/compiler/linkage.h" 11 #include "src/compiler/linkage.h"
11 #include "src/compiler/pipeline.h" 12 #include "src/compiler/pipeline.h"
12 #include "src/frames-inl.h" 13 #include "src/frames-inl.h"
13 14
14 namespace v8 { 15 namespace v8 {
15 namespace internal { 16 namespace internal {
16 namespace compiler { 17 namespace compiler {
17 18
18 class CodeGenerator::JumpTable final : public ZoneObject { 19 class CodeGenerator::JumpTable final : public ZoneObject {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 ools_(nullptr), 57 ools_(nullptr),
57 osr_pc_offset_(-1), 58 osr_pc_offset_(-1),
58 source_position_table_builder_(code->zone(), 59 source_position_table_builder_(code->zone(),
59 info->SourcePositionRecordingMode()) { 60 info->SourcePositionRecordingMode()) {
60 for (int i = 0; i < code->InstructionBlockCount(); ++i) { 61 for (int i = 0; i < code->InstructionBlockCount(); ++i) {
61 new (&labels_[i]) Label; 62 new (&labels_[i]) Label;
62 } 63 }
63 CreateFrameAccessState(frame); 64 CreateFrameAccessState(frame);
64 } 65 }
65 66
67 Isolate* CodeGenerator::isolate() const { return info_->isolate(); }
68
66 void CodeGenerator::CreateFrameAccessState(Frame* frame) { 69 void CodeGenerator::CreateFrameAccessState(Frame* frame) {
67 FinishFrame(frame); 70 FinishFrame(frame);
68 frame_access_state_ = new (code()->zone()) FrameAccessState(frame); 71 frame_access_state_ = new (code()->zone()) FrameAccessState(frame);
69 } 72 }
70 73
71 Handle<Code> CodeGenerator::GenerateCode() { 74 Handle<Code> CodeGenerator::GenerateCode() {
72 CompilationInfo* info = this->info(); 75 CompilationInfo* info = this->info();
73 76
74 // Open a frame scope to indicate that there is a frame on the stack. The 77 // Open a frame scope to indicate that there is a frame on the stack. The
75 // MANUAL indicates that the scope shouldn't actually generate code to set up 78 // MANUAL indicates that the scope shouldn't actually generate code to set up
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { 939 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) {
937 gen->ools_ = this; 940 gen->ools_ = this;
938 } 941 }
939 942
940 943
941 OutOfLineCode::~OutOfLineCode() {} 944 OutOfLineCode::~OutOfLineCode() {}
942 945
943 } // namespace compiler 946 } // namespace compiler
944 } // namespace internal 947 } // namespace internal
945 } // namespace v8 948 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-generator.h ('k') | src/compiler/graph-visualizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698