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

Side by Side Diff: src/compilation-info.cc

Issue 2575473002: [interpreter][stubs] Enable graph verification for bytecode handlers and stubs included into snapsh… (Closed)
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/compilation-info.h" 5 #include "src/compilation-info.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/debug/debug.h" 10 #include "src/debug/debug.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 mode_(mode), 93 mode_(mode),
94 osr_ast_id_(BailoutId::None()), 94 osr_ast_id_(BailoutId::None()),
95 zone_(zone), 95 zone_(zone),
96 deferred_handles_(nullptr), 96 deferred_handles_(nullptr),
97 dependencies_(isolate, zone), 97 dependencies_(isolate, zone),
98 bailout_reason_(kNoReason), 98 bailout_reason_(kNoReason),
99 prologue_offset_(Code::kPrologueOffsetNotSet), 99 prologue_offset_(Code::kPrologueOffsetNotSet),
100 parameter_count_(0), 100 parameter_count_(0),
101 optimization_id_(-1), 101 optimization_id_(-1),
102 osr_expr_stack_height_(-1), 102 osr_expr_stack_height_(-1),
103 debug_name_(debug_name) {} 103 debug_name_(debug_name),
104 verify_graph_(false) {}
104 105
105 CompilationInfo::~CompilationInfo() { 106 CompilationInfo::~CompilationInfo() {
106 if (GetFlag(kDisableFutureOptimization) && has_shared_info()) { 107 if (GetFlag(kDisableFutureOptimization) && has_shared_info()) {
107 shared_info()->DisableOptimization(bailout_reason()); 108 shared_info()->DisableOptimization(bailout_reason());
108 } 109 }
109 dependencies()->Rollback(); 110 dependencies()->Rollback();
110 delete deferred_handles_; 111 delete deferred_handles_;
111 } 112 }
112 113
113 int CompilationInfo::num_parameters() const { 114 int CompilationInfo::num_parameters() const {
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 inlined_function, handle(inlined_function->code()), pos)); 230 inlined_function, handle(inlined_function->code()), pos));
230 return id; 231 return id;
231 } 232 }
232 233
233 Code::Kind CompilationInfo::output_code_kind() const { 234 Code::Kind CompilationInfo::output_code_kind() const {
234 return Code::ExtractKindFromFlags(code_flags_); 235 return Code::ExtractKindFromFlags(code_flags_);
235 } 236 }
236 237
237 } // namespace internal 238 } // namespace internal
238 } // namespace v8 239 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698