| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |