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

Unified Diff: src/compiler.cc

Issue 2229723002: [wasm] Support validation of asm.js modules with != 3 args. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 4 years, 4 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
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 795b0199bd9aa291e7e057979656b867983bec03..6734a2ed42e58eeccc7e5e591730cac282fca6b4 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -1429,7 +1429,9 @@ bool Compiler::EnsureDeoptimizationSupport(CompilationInfo* info) {
// TODO(4280): For now we play it safe and remove the bytecode array when we
// switch to baseline code. We might consider keeping around the bytecode so
// that it can be used as the "source of truth" eventually.
- shared->ClearBytecodeArray();
+ if (shared->HasBytecodeArray()) {
+ shared->ClearBytecodeArray();
+ }
// The scope info might not have been set if a lazily compiled
// function is inlined before being called for the first time.

Powered by Google App Engine
This is Rietveld 408576698