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

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

Issue 2663433003: [wasm] Introduce the --print-wasm-code flag to print wasm code. (Closed)
Patch Set: Forgot to save Created 3 years, 10 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/codegen.cc ('k') | src/flag-definitions.h » ('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 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 #ifndef V8_COMPILATION_INFO_H_ 5 #ifndef V8_COMPILATION_INFO_H_
6 #define V8_COMPILATION_INFO_H_ 6 #define V8_COMPILATION_INFO_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/compilation-dependencies.h" 10 #include "src/compilation-dependencies.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 bool has_native_context() const; 204 bool has_native_context() const;
205 Context* native_context() const; 205 Context* native_context() const;
206 206
207 bool has_global_object() const; 207 bool has_global_object() const;
208 JSGlobalObject* global_object() const; 208 JSGlobalObject* global_object() const;
209 209
210 // Accessors for the different compilation modes. 210 // Accessors for the different compilation modes.
211 bool IsOptimizing() const { return mode_ == OPTIMIZE; } 211 bool IsOptimizing() const { return mode_ == OPTIMIZE; }
212 bool IsStub() const { return mode_ == STUB; } 212 bool IsStub() const { return mode_ == STUB; }
213 bool IsWasm() const { return output_code_kind() == Code::WASM_FUNCTION; }
213 void SetOptimizing(); 214 void SetOptimizing();
214 void SetOptimizingForOsr(BailoutId osr_ast_id, JavaScriptFrame* osr_frame) { 215 void SetOptimizingForOsr(BailoutId osr_ast_id, JavaScriptFrame* osr_frame) {
215 SetOptimizing(); 216 SetOptimizing();
216 osr_ast_id_ = osr_ast_id; 217 osr_ast_id_ = osr_ast_id;
217 osr_frame_ = osr_frame; 218 osr_frame_ = osr_frame;
218 } 219 }
219 220
220 // Deoptimization support. 221 // Deoptimization support.
221 bool HasDeoptimizationSupport() const { 222 bool HasDeoptimizationSupport() const {
222 return GetFlag(kDeoptimizationSupport); 223 return GetFlag(kDeoptimizationSupport);
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 388
388 Vector<const char> debug_name_; 389 Vector<const char> debug_name_;
389 390
390 DISALLOW_COPY_AND_ASSIGN(CompilationInfo); 391 DISALLOW_COPY_AND_ASSIGN(CompilationInfo);
391 }; 392 };
392 393
393 } // namespace internal 394 } // namespace internal
394 } // namespace v8 395 } // namespace v8
395 396
396 #endif // V8_COMPILATION_INFO_H_ 397 #endif // V8_COMPILATION_INFO_H_
OLDNEW
« no previous file with comments | « src/codegen.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698