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

Side by Side Diff: src/factory.h

Issue 236143002: ES6: Add support for Map.prototype.forEach and Set.prototype.forEach (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Handle-ify and UsedCapacity Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_FACTORY_H_ 5 #ifndef V8_FACTORY_H_
6 #define V8_FACTORY_H_ 6 #define V8_FACTORY_H_
7 7
8 #include "isolate.h" 8 #include "isolate.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 int capture_count); 586 int capture_count);
587 587
588 // Returns the value for a known global constant (a property of the global 588 // Returns the value for a known global constant (a property of the global
589 // object which is neither configurable nor writable) like 'undefined'. 589 // object which is neither configurable nor writable) like 'undefined'.
590 // Returns a null handle when the given name is unknown. 590 // Returns a null handle when the given name is unknown.
591 Handle<Object> GlobalConstantFor(Handle<String> name); 591 Handle<Object> GlobalConstantFor(Handle<String> name);
592 592
593 // Converts the given boolean condition to JavaScript boolean value. 593 // Converts the given boolean condition to JavaScript boolean value.
594 Handle<Object> ToBoolean(bool value); 594 Handle<Object> ToBoolean(bool value);
595 595
596 Handle<JSObject> CreateIteratorResultObject(Handle<Object> value, bool done);
597
596 private: 598 private:
597 Isolate* isolate() { return reinterpret_cast<Isolate*>(this); } 599 Isolate* isolate() { return reinterpret_cast<Isolate*>(this); }
598 600
599 Handle<JSFunction> NewFunctionHelper(Handle<String> name, 601 Handle<JSFunction> NewFunctionHelper(Handle<String> name,
600 Handle<Object> prototype); 602 Handle<Object> prototype);
601 603
602 Handle<JSFunction> NewFunctionWithoutPrototypeHelper( 604 Handle<JSFunction> NewFunctionWithoutPrototypeHelper(
603 Handle<String> name, 605 Handle<String> name,
604 StrictMode strict_mode); 606 StrictMode strict_mode);
605 607
606 // Create a new map cache. 608 // Create a new map cache.
607 Handle<MapCache> NewMapCache(int at_least_space_for); 609 Handle<MapCache> NewMapCache(int at_least_space_for);
608 610
609 // Update the map cache in the native context with (keys, map) 611 // Update the map cache in the native context with (keys, map)
610 Handle<MapCache> AddToMapCache(Handle<Context> context, 612 Handle<MapCache> AddToMapCache(Handle<Context> context,
611 Handle<FixedArray> keys, 613 Handle<FixedArray> keys,
612 Handle<Map> map); 614 Handle<Map> map);
613 }; 615 };
614 616
615 } } // namespace v8::internal 617 } } // namespace v8::internal
616 618
617 #endif // V8_FACTORY_H_ 619 #endif // V8_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698