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

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

Issue 2112853002: Do not record source positions for non-JS or native script code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@simplifyjitlogging
Patch Set: update test expectation Created 4 years, 5 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.cc ('k') | src/crankshaft/lithium-codegen.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/compiler/code-generator-impl.h" 9 #include "src/compiler/code-generator-impl.h"
10 #include "src/compiler/linkage.h" 10 #include "src/compiler/linkage.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 handlers_(code->zone()), 47 handlers_(code->zone()),
48 deoptimization_exits_(code->zone()), 48 deoptimization_exits_(code->zone()),
49 deoptimization_states_(code->zone()), 49 deoptimization_states_(code->zone()),
50 deoptimization_literals_(code->zone()), 50 deoptimization_literals_(code->zone()),
51 inlined_function_count_(0), 51 inlined_function_count_(0),
52 translations_(code->zone()), 52 translations_(code->zone()),
53 last_lazy_deopt_pc_(0), 53 last_lazy_deopt_pc_(0),
54 jump_tables_(nullptr), 54 jump_tables_(nullptr),
55 ools_(nullptr), 55 ools_(nullptr),
56 osr_pc_offset_(-1), 56 osr_pc_offset_(-1),
57 source_position_table_builder_(info->isolate(), zone()) { 57 source_position_table_builder_(info->isolate(), code->zone(),
58 info->SourcePositionRecordingMode()) {
58 for (int i = 0; i < code->InstructionBlockCount(); ++i) { 59 for (int i = 0; i < code->InstructionBlockCount(); ++i) {
59 new (&labels_[i]) Label; 60 new (&labels_[i]) Label;
60 } 61 }
61 CreateFrameAccessState(frame); 62 CreateFrameAccessState(frame);
62 } 63 }
63 64
64 void CodeGenerator::CreateFrameAccessState(Frame* frame) { 65 void CodeGenerator::CreateFrameAccessState(Frame* frame) {
65 FinishFrame(frame); 66 FinishFrame(frame);
66 frame_access_state_ = new (code()->zone()) FrameAccessState(frame); 67 frame_access_state_ = new (code()->zone()) FrameAccessState(frame);
67 } 68 }
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { 898 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) {
898 gen->ools_ = this; 899 gen->ools_ = this;
899 } 900 }
900 901
901 902
902 OutOfLineCode::~OutOfLineCode() {} 903 OutOfLineCode::~OutOfLineCode() {}
903 904
904 } // namespace compiler 905 } // namespace compiler
905 } // namespace internal 906 } // namespace internal
906 } // namespace v8 907 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/crankshaft/lithium-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698