OLD | NEW |
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/objects.h" | 5 #include "src/objects.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <iomanip> | 8 #include <iomanip> |
9 #include <memory> | 9 #include <memory> |
10 #include <sstream> | 10 #include <sstream> |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #include "src/prototype.h" | 53 #include "src/prototype.h" |
54 #include "src/regexp/jsregexp.h" | 54 #include "src/regexp/jsregexp.h" |
55 #include "src/safepoint-table.h" | 55 #include "src/safepoint-table.h" |
56 #include "src/snapshot/code-serializer.h" | 56 #include "src/snapshot/code-serializer.h" |
57 #include "src/source-position-table.h" | 57 #include "src/source-position-table.h" |
58 #include "src/string-builder.h" | 58 #include "src/string-builder.h" |
59 #include "src/string-search.h" | 59 #include "src/string-search.h" |
60 #include "src/string-stream.h" | 60 #include "src/string-stream.h" |
61 #include "src/utils.h" | 61 #include "src/utils.h" |
62 #include "src/wasm/wasm-module.h" | 62 #include "src/wasm/wasm-module.h" |
63 #include "src/zone.h" | 63 #include "src/zone/zone.h" |
64 | 64 |
65 #ifdef ENABLE_DISASSEMBLER | 65 #ifdef ENABLE_DISASSEMBLER |
66 #include "src/disasm.h" | 66 #include "src/disasm.h" |
67 #include "src/disassembler.h" | 67 #include "src/disassembler.h" |
68 #include "src/eh-frame.h" | 68 #include "src/eh-frame.h" |
69 #endif | 69 #endif |
70 | 70 |
71 namespace v8 { | 71 namespace v8 { |
72 namespace internal { | 72 namespace internal { |
73 | 73 |
(...skipping 19525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19599 | 19599 |
19600 Handle<Object> Module::LoadExport(Handle<Module> module, Handle<String> name) { | 19600 Handle<Object> Module::LoadExport(Handle<Module> module, Handle<String> name) { |
19601 Isolate* isolate = module->GetIsolate(); | 19601 Isolate* isolate = module->GetIsolate(); |
19602 Handle<ObjectHashTable> exports(module->exports(), isolate); | 19602 Handle<ObjectHashTable> exports(module->exports(), isolate); |
19603 Handle<Cell> cell(Cell::cast(exports->Lookup(name))); | 19603 Handle<Cell> cell(Cell::cast(exports->Lookup(name))); |
19604 return handle(cell->value(), isolate); | 19604 return handle(cell->value(), isolate); |
19605 } | 19605 } |
19606 | 19606 |
19607 } // namespace internal | 19607 } // namespace internal |
19608 } // namespace v8 | 19608 } // namespace v8 |
OLD | NEW |