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

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

Issue 1476763002: Make whether or not a Code object should be created by masm explicit (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: enum class FTW Created 5 years 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/code-stubs-hydrogen.cc ('k') | src/crankshaft/lithium.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/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/linkage.h" 9 #include "src/compiler/linkage.h"
10 #include "src/compiler/pipeline.h" 10 #include "src/compiler/pipeline.h"
(...skipping 23 matching lines...) Expand all
34 34
35 CodeGenerator::CodeGenerator(Frame* frame, Linkage* linkage, 35 CodeGenerator::CodeGenerator(Frame* frame, Linkage* linkage,
36 InstructionSequence* code, CompilationInfo* info) 36 InstructionSequence* code, CompilationInfo* info)
37 : frame_access_state_(new (code->zone()) FrameAccessState(frame)), 37 : frame_access_state_(new (code->zone()) FrameAccessState(frame)),
38 linkage_(linkage), 38 linkage_(linkage),
39 code_(code), 39 code_(code),
40 info_(info), 40 info_(info),
41 labels_(zone()->NewArray<Label>(code->InstructionBlockCount())), 41 labels_(zone()->NewArray<Label>(code->InstructionBlockCount())),
42 current_block_(RpoNumber::Invalid()), 42 current_block_(RpoNumber::Invalid()),
43 current_source_position_(SourcePosition::Unknown()), 43 current_source_position_(SourcePosition::Unknown()),
44 masm_(info->isolate(), NULL, 0), 44 masm_(info->isolate(), NULL, 0, CodeObjectRequired::kYes),
45 resolver_(this), 45 resolver_(this),
46 safepoints_(code->zone()), 46 safepoints_(code->zone()),
47 handlers_(code->zone()), 47 handlers_(code->zone()),
48 deoptimization_states_(code->zone()), 48 deoptimization_states_(code->zone()),
49 deoptimization_literals_(code->zone()), 49 deoptimization_literals_(code->zone()),
50 inlined_function_count_(0), 50 inlined_function_count_(0),
51 translations_(code->zone()), 51 translations_(code->zone()),
52 last_lazy_deopt_pc_(0), 52 last_lazy_deopt_pc_(0),
53 jump_tables_(nullptr), 53 jump_tables_(nullptr),
54 ools_(nullptr), 54 ools_(nullptr),
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { 691 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) {
692 gen->ools_ = this; 692 gen->ools_ = this;
693 } 693 }
694 694
695 695
696 OutOfLineCode::~OutOfLineCode() {} 696 OutOfLineCode::~OutOfLineCode() {}
697 697
698 } // namespace compiler 698 } // namespace compiler
699 } // namespace internal 699 } // namespace internal
700 } // namespace v8 700 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/crankshaft/lithium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698