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

Side by Side Diff: src/objects.cc

Issue 2348493003: [builtins] move String.prototype[@@iterator] to C++ builtin (Closed)
Patch Set: Created 4 years, 3 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
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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698