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

Side by Side Diff: src/compiler.h

Issue 2281863002: [compiler] Remove default argument for code flags. (Closed)
Patch Set: 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 | « no previous file | src/compiler/pipeline.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_COMPILER_H_ 5 #ifndef V8_COMPILER_H_
6 #define V8_COMPILER_H_ 6 #define V8_COMPILER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 kDeoptimizationEnabled = 1 << 14, 166 kDeoptimizationEnabled = 1 << 14,
167 kSourcePositionsEnabled = 1 << 15, 167 kSourcePositionsEnabled = 1 << 15,
168 kBailoutOnUninitialized = 1 << 16, 168 kBailoutOnUninitialized = 1 << 16,
169 kOptimizeFromBytecode = 1 << 17, 169 kOptimizeFromBytecode = 1 << 17,
170 kTypeFeedbackEnabled = 1 << 18, 170 kTypeFeedbackEnabled = 1 << 18,
171 kAccessorInliningEnabled = 1 << 19, 171 kAccessorInliningEnabled = 1 << 19,
172 }; 172 };
173 173
174 CompilationInfo(ParseInfo* parse_info, Handle<JSFunction> closure); 174 CompilationInfo(ParseInfo* parse_info, Handle<JSFunction> closure);
175 CompilationInfo(Vector<const char> debug_name, Isolate* isolate, Zone* zone, 175 CompilationInfo(Vector<const char> debug_name, Isolate* isolate, Zone* zone,
176 Code::Flags code_flags = Code::ComputeFlags(Code::STUB)); 176 Code::Flags code_flags);
177 ~CompilationInfo(); 177 ~CompilationInfo();
178 178
179 ParseInfo* parse_info() const { return parse_info_; } 179 ParseInfo* parse_info() const { return parse_info_; }
180 180
181 // ----------------------------------------------------------- 181 // -----------------------------------------------------------
182 // TODO(titzer): inline and delete accessors of ParseInfo 182 // TODO(titzer): inline and delete accessors of ParseInfo
183 // ----------------------------------------------------------- 183 // -----------------------------------------------------------
184 Handle<Script> script() const; 184 Handle<Script> script() const;
185 FunctionLiteral* literal() const; 185 FunctionLiteral* literal() const;
186 DeclarationScope* scope() const; 186 DeclarationScope* scope() const;
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 state_ = State::kFailed; 621 state_ = State::kFailed;
622 } 622 }
623 return status; 623 return status;
624 } 624 }
625 }; 625 };
626 626
627 } // namespace internal 627 } // namespace internal
628 } // namespace v8 628 } // namespace v8
629 629
630 #endif // V8_COMPILER_H_ 630 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698