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

Unified Diff: src/compiler.cc

Issue 2309853002: [compiler] Bytecode preparation fails for asm.js modules. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-644111.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 447c1a3af5e9db22ca550cd72db54915dc866ccc..ed3a120ac7079564173bd8fcaad094ab577b8cdf 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -1352,6 +1352,7 @@ bool Compiler::EnsureBytecode(CompilationInfo* info) {
if (!info->shared_info()->HasBytecodeArray()) {
Handle<Code> original_code(info->shared_info()->code());
if (GetUnoptimizedCode(info).is_null()) return false;
+ if (info->shared_info()->HasAsmWasmData()) return false;
DCHECK(info->shared_info()->is_compiled());
if (original_code->kind() == Code::FUNCTION) {
// Generating bytecode will install the {InterpreterEntryTrampoline} as
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-644111.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698