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

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

Issue 2623773004: [wasm] Introduce WasmToInterpreterFrame (Closed)
Patch Set: Renaming Created 3 years, 11 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/arm64/macro-assembler-arm64.cc ('k') | src/compiler/arm/code-generator-arm.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 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 switch (output_code_kind()) { 159 switch (output_code_kind()) {
160 case Code::STUB: 160 case Code::STUB:
161 case Code::BYTECODE_HANDLER: 161 case Code::BYTECODE_HANDLER:
162 case Code::HANDLER: 162 case Code::HANDLER:
163 case Code::BUILTIN: 163 case Code::BUILTIN:
164 #define CASE_KIND(kind) case Code::kind: 164 #define CASE_KIND(kind) case Code::kind:
165 IC_KIND_LIST(CASE_KIND) 165 IC_KIND_LIST(CASE_KIND)
166 #undef CASE_KIND 166 #undef CASE_KIND
167 return StackFrame::STUB; 167 return StackFrame::STUB;
168 case Code::WASM_FUNCTION: 168 case Code::WASM_FUNCTION:
169 return StackFrame::WASM; 169 return StackFrame::WASM_COMPILED;
170 case Code::JS_TO_WASM_FUNCTION: 170 case Code::JS_TO_WASM_FUNCTION:
171 return StackFrame::JS_TO_WASM; 171 return StackFrame::JS_TO_WASM;
172 case Code::WASM_TO_JS_FUNCTION: 172 case Code::WASM_TO_JS_FUNCTION:
173 return StackFrame::WASM_TO_JS; 173 return StackFrame::WASM_TO_JS;
174 case Code::WASM_INTERPRETER_ENTRY:
175 return StackFrame::WASM_INTERPRETER_ENTRY;
174 default: 176 default:
175 UNIMPLEMENTED(); 177 UNIMPLEMENTED();
176 return StackFrame::NONE; 178 return StackFrame::NONE;
177 } 179 }
178 } 180 }
179 181
180 int CompilationInfo::GetDeclareGlobalsFlags() const { 182 int CompilationInfo::GetDeclareGlobalsFlags() const {
181 DCHECK(DeclareGlobalsLanguageMode::is_valid(parse_info()->language_mode())); 183 DCHECK(DeclareGlobalsLanguageMode::is_valid(parse_info()->language_mode()));
182 return DeclareGlobalsEvalFlag::encode(parse_info()->is_eval()) | 184 return DeclareGlobalsEvalFlag::encode(parse_info()->is_eval()) |
183 DeclareGlobalsNativeFlag::encode(parse_info()->is_native()) | 185 DeclareGlobalsNativeFlag::encode(parse_info()->is_native()) |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 inlined_function, handle(inlined_function->code()), pos)); 231 inlined_function, handle(inlined_function->code()), pos));
230 return id; 232 return id;
231 } 233 }
232 234
233 Code::Kind CompilationInfo::output_code_kind() const { 235 Code::Kind CompilationInfo::output_code_kind() const {
234 return Code::ExtractKindFromFlags(code_flags_); 236 return Code::ExtractKindFromFlags(code_flags_);
235 } 237 }
236 238
237 } // namespace internal 239 } // namespace internal
238 } // namespace v8 240 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/macro-assembler-arm64.cc ('k') | src/compiler/arm/code-generator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698