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

Side by Side Diff: src/compiler.h

Issue 2398023002: [wasm] asm.js - Parse and convert asm.js to wasm a function at a time. (Closed)
Patch Set: Created 4 years, 2 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
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 // Parser::Parse, then Compiler::Analyze. 67 // Parser::Parse, then Compiler::Analyze.
68 static bool ParseAndAnalyze(ParseInfo* info); 68 static bool ParseAndAnalyze(ParseInfo* info);
69 // Rewrite, analyze scopes, and renumber. 69 // Rewrite, analyze scopes, and renumber.
70 static bool Analyze(ParseInfo* info); 70 static bool Analyze(ParseInfo* info);
71 // Adds deoptimization support, requires ParseAndAnalyze. 71 // Adds deoptimization support, requires ParseAndAnalyze.
72 static bool EnsureDeoptimizationSupport(CompilationInfo* info); 72 static bool EnsureDeoptimizationSupport(CompilationInfo* info);
73 // Ensures that bytecode is generated, calls ParseAndAnalyze internally. 73 // Ensures that bytecode is generated, calls ParseAndAnalyze internally.
74 static bool EnsureBytecode(CompilationInfo* info); 74 static bool EnsureBytecode(CompilationInfo* info);
75 75
76 static Handle<SharedFunctionInfo> NewSharedFunctionInfoFromLiteral(
77 Isolate* isolate, FunctionLiteral* literal, Handle<Script> script);
78
76 // The next compilation tier which the function should be compiled to for 79 // The next compilation tier which the function should be compiled to for
77 // optimization. This is used as a hint by the runtime profiler. 80 // optimization. This is used as a hint by the runtime profiler.
78 static CompilationTier NextCompilationTier(JSFunction* function); 81 static CompilationTier NextCompilationTier(JSFunction* function);
79 82
80 // =========================================================================== 83 // ===========================================================================
81 // The following family of methods instantiates new functions for scripts or 84 // The following family of methods instantiates new functions for scripts or
82 // function literals. The decision whether those functions will be compiled, 85 // function literals. The decision whether those functions will be compiled,
83 // is left to the discretion of the compiler. 86 // is left to the discretion of the compiler.
84 // 87 //
85 // Please note this interface returns shared function infos. This means you 88 // Please note this interface returns shared function infos. This means you
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 state_ = State::kFailed; 225 state_ = State::kFailed;
223 } 226 }
224 return status; 227 return status;
225 } 228 }
226 }; 229 };
227 230
228 } // namespace internal 231 } // namespace internal
229 } // namespace v8 232 } // namespace v8
230 233
231 #endif // V8_COMPILER_H_ 234 #endif // V8_COMPILER_H_
OLDNEW
« src/asmjs/asm-wasm-builder.cc ('K') | « src/ast/ast.h ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698