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

Side by Side Diff: src/ast/scopes.cc

Issue 1972593002: [wasm] Add flag to validate asm.js modules. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Turn off flag. Created 4 years, 7 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 | « no previous file | src/compiler.cc » ('j') | src/compiler.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "src/ast/scopes.h" 5 #include "src/ast/scopes.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/ast/scopeinfo.h" 8 #include "src/ast/scopeinfo.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 PrintF("\n"); 954 PrintF("\n");
955 } 955 }
956 956
957 // Scope info. 957 // Scope info.
958 if (HasTrivialOuterContext()) { 958 if (HasTrivialOuterContext()) {
959 Indent(n1, "// scope has trivial outer context\n"); 959 Indent(n1, "// scope has trivial outer context\n");
960 } 960 }
961 if (is_strict(language_mode())) { 961 if (is_strict(language_mode())) {
962 Indent(n1, "// strict mode scope\n"); 962 Indent(n1, "// strict mode scope\n");
963 } 963 }
964 if (asm_module_) Indent(n1, "// scope is an asm module\n");
965 if (asm_function_) Indent(n1, "// scope is an asm function\n");
964 if (scope_inside_with_) Indent(n1, "// scope inside 'with'\n"); 966 if (scope_inside_with_) Indent(n1, "// scope inside 'with'\n");
965 if (scope_calls_eval_) Indent(n1, "// scope calls 'eval'\n"); 967 if (scope_calls_eval_) Indent(n1, "// scope calls 'eval'\n");
966 if (scope_uses_arguments_) Indent(n1, "// scope uses 'arguments'\n"); 968 if (scope_uses_arguments_) Indent(n1, "// scope uses 'arguments'\n");
967 if (scope_uses_super_property_) 969 if (scope_uses_super_property_)
968 Indent(n1, "// scope uses 'super' property\n"); 970 Indent(n1, "// scope uses 'super' property\n");
969 if (outer_scope_calls_sloppy_eval_) { 971 if (outer_scope_calls_sloppy_eval_) {
970 Indent(n1, "// outer scope calls 'eval' in sloppy context\n"); 972 Indent(n1, "// outer scope calls 'eval' in sloppy context\n");
971 } 973 }
972 if (inner_scope_calls_eval_) Indent(n1, "// inner scope calls 'eval'\n"); 974 if (inner_scope_calls_eval_) Indent(n1, "// inner scope calls 'eval'\n");
973 if (num_stack_slots_ > 0) { 975 if (num_stack_slots_ > 0) {
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 function_ != NULL && function_->proxy()->var()->IsContextSlot(); 1529 function_ != NULL && function_->proxy()->var()->IsContextSlot();
1528 return num_heap_slots() - Context::MIN_CONTEXT_SLOTS - num_global_slots() - 1530 return num_heap_slots() - Context::MIN_CONTEXT_SLOTS - num_global_slots() -
1529 (is_function_var_in_context ? 1 : 0); 1531 (is_function_var_in_context ? 1 : 0);
1530 } 1532 }
1531 1533
1532 1534
1533 int Scope::ContextGlobalCount() const { return num_global_slots(); } 1535 int Scope::ContextGlobalCount() const { return num_global_slots(); }
1534 1536
1535 } // namespace internal 1537 } // namespace internal
1536 } // namespace v8 1538 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | src/compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698