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

Side by Side Diff: src/modules.cc

Issue 1163803002: Cosmetic changes to tests to make it easier to concatenate them. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix snapshot-external.cc Created 5 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 | « src/mips64/simulator-mips64.cc ('k') | src/objects.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 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/modules.h" 7 #include "src/modules.h"
8 8
9 #include "src/ast-value-factory.h" 9 #include "src/ast-value-factory.h"
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 const AstRawString* ModuleDescriptor::LookupLocalExport( 51 const AstRawString* ModuleDescriptor::LookupLocalExport(
52 const AstRawString* export_name, Zone* zone) { 52 const AstRawString* export_name, Zone* zone) {
53 if (exports_ == nullptr) return nullptr; 53 if (exports_ == nullptr) return nullptr;
54 ZoneHashMap::Entry* entry = exports_->Lookup( 54 ZoneHashMap::Entry* entry = exports_->Lookup(
55 const_cast<AstRawString*>(export_name), export_name->hash()); 55 const_cast<AstRawString*>(export_name), export_name->hash());
56 if (entry == nullptr) return nullptr; 56 if (entry == nullptr) return nullptr;
57 DCHECK_NOT_NULL(entry->value); 57 DCHECK_NOT_NULL(entry->value);
58 return static_cast<const AstRawString*>(entry->value); 58 return static_cast<const AstRawString*>(entry->value);
59 } 59 }
60 } 60 } // namespace internal
61 } // namespace v8::internal 61 } // namespace v8
OLDNEW
« no previous file with comments | « src/mips64/simulator-mips64.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698