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 19475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
19486 } | 19486 } |
19487 | 19487 |
19488 Handle<Object> JSModule::LoadExport(Handle<JSModule> module, | 19488 Handle<Object> JSModule::LoadExport(Handle<JSModule> module, |
19489 Handle<String> name) { | 19489 Handle<String> name) { |
19490 Isolate* isolate = module->GetIsolate(); | 19490 Isolate* isolate = module->GetIsolate(); |
19491 LookupIterator it(module, name); | 19491 LookupIterator it(module, name); |
19492 Handle<Cell> cell = Handle<Cell>::cast(JSObject::GetDataProperty(&it)); | 19492 Handle<Cell> cell = Handle<Cell>::cast(JSObject::GetDataProperty(&it)); |
19493 return handle(cell->value(), isolate); | 19493 return handle(cell->value(), isolate); |
19494 } | 19494 } |
19495 | 19495 |
19496 void JSIteratorResult::Initialize(Handle<JSIteratorResult> object, | |
Benedikt Meurer
2016/09/15 17:34:33
This helper method seems a bit overkill; I'd propo
| |
19497 Handle<Object> value, Handle<Object> done) { | |
19498 object->set_value(*value); | |
19499 object->set_done(*done); | |
19500 } | |
19501 | |
19496 } // namespace internal | 19502 } // namespace internal |
19497 } // namespace v8 | 19503 } // namespace v8 |
OLD | NEW |