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

Side by Side Diff: src/wasm/ast-decoder.cc

Issue 2093823003: [wasm] Deleting unused parameter from function "consume_u32v" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/wasm/decoder.h » ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/signature.h" 5 #include "src/signature.h"
6 6
7 #include "src/bit-vector.h" 7 #include "src/bit-vector.h"
8 #include "src/flags.h" 8 #include "src/flags.h"
9 #include "src/handles.h" 9 #include "src/handles.h"
10 #include "src/zone-containers.h" 10 #include "src/zone-containers.h"
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 void DecodeLocalDecls() { 577 void DecodeLocalDecls() {
578 DCHECK_EQ(0, local_type_vec_.size()); 578 DCHECK_EQ(0, local_type_vec_.size());
579 // Initialize {local_type_vec} from signature. 579 // Initialize {local_type_vec} from signature.
580 if (sig_) { 580 if (sig_) {
581 local_type_vec_.reserve(sig_->parameter_count()); 581 local_type_vec_.reserve(sig_->parameter_count());
582 for (size_t i = 0; i < sig_->parameter_count(); ++i) { 582 for (size_t i = 0; i < sig_->parameter_count(); ++i) {
583 local_type_vec_.push_back(sig_->GetParam(i)); 583 local_type_vec_.push_back(sig_->GetParam(i));
584 } 584 }
585 } 585 }
586 // Decode local declarations, if any. 586 // Decode local declarations, if any.
587 int length; 587 uint32_t entries = consume_u32v("local decls count");
588 uint32_t entries = consume_u32v(&length, "local decls count");
589 while (entries-- > 0 && pc_ < limit_) { 588 while (entries-- > 0 && pc_ < limit_) {
590 uint32_t count = consume_u32v(&length, "local count"); 589 uint32_t count = consume_u32v("local count");
591 byte code = consume_u8("local type"); 590 byte code = consume_u8("local type");
592 LocalType type; 591 LocalType type;
593 switch (code) { 592 switch (code) {
594 case kLocalI32: 593 case kLocalI32:
595 type = kAstI32; 594 type = kAstI32;
596 break; 595 break;
597 case kLocalI64: 596 case kLocalI64:
598 type = kAstI64; 597 type = kAstI64;
599 break; 598 break;
600 case kLocalF32: 599 case kLocalF32:
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1685 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, size_t num_locals, 1684 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, size_t num_locals,
1686 const byte* start, const byte* end) { 1685 const byte* start, const byte* end) {
1687 FunctionBody body = {nullptr, nullptr, nullptr, start, end}; 1686 FunctionBody body = {nullptr, nullptr, nullptr, start, end};
1688 SR_WasmDecoder decoder(zone, nullptr, body); 1687 SR_WasmDecoder decoder(zone, nullptr, body);
1689 return decoder.AnalyzeLoopAssignmentForTesting(start, num_locals); 1688 return decoder.AnalyzeLoopAssignmentForTesting(start, num_locals);
1690 } 1689 }
1691 1690
1692 } // namespace wasm 1691 } // namespace wasm
1693 } // namespace internal 1692 } // namespace internal
1694 } // namespace v8 1693 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/wasm/decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698