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

Side by Side Diff: src/factory.h

Issue 2348493003: [builtins] move String.prototype[@@iterator] to C++ builtin (Closed)
Patch Set: V5 (try to make gcmole happy) 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 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 "src/isolate.h" 8 #include "src/isolate.h"
9 #include "src/messages.h" 9 #include "src/messages.h"
10 #include "src/type-feedback-vector.h" 10 #include "src/type-feedback-vector.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 Vector<const char> str, 169 Vector<const char> str,
170 PretenureFlag pretenure = NOT_TENURED); 170 PretenureFlag pretenure = NOT_TENURED);
171 171
172 MUST_USE_RESULT MaybeHandle<String> NewStringFromTwoByte( 172 MUST_USE_RESULT MaybeHandle<String> NewStringFromTwoByte(
173 Vector<const uc16> str, 173 Vector<const uc16> str,
174 PretenureFlag pretenure = NOT_TENURED); 174 PretenureFlag pretenure = NOT_TENURED);
175 175
176 MUST_USE_RESULT MaybeHandle<String> NewStringFromTwoByte( 176 MUST_USE_RESULT MaybeHandle<String> NewStringFromTwoByte(
177 const ZoneVector<uc16>* str, PretenureFlag pretenure = NOT_TENURED); 177 const ZoneVector<uc16>* str, PretenureFlag pretenure = NOT_TENURED);
178 178
179 Handle<JSStringIterator> NewJSStringIterator();
Benedikt Meurer 2016/09/19 04:05:18 Remove this dead declaration.
caitp 2016/09/19 16:03:05 Done.
180 Handle<JSStringIterator> NewJSStringIterator(Handle<String> string);
181
179 // Allocates an internalized string in old space based on the character 182 // Allocates an internalized string in old space based on the character
180 // stream. 183 // stream.
181 Handle<String> NewInternalizedStringFromUtf8(Vector<const char> str, 184 Handle<String> NewInternalizedStringFromUtf8(Vector<const char> str,
182 int chars, uint32_t hash_field); 185 int chars, uint32_t hash_field);
183 186
184 Handle<String> NewOneByteInternalizedString(Vector<const uint8_t> str, 187 Handle<String> NewOneByteInternalizedString(Vector<const uint8_t> str,
185 uint32_t hash_field); 188 uint32_t hash_field);
186 189
187 Handle<String> NewOneByteInternalizedSubString( 190 Handle<String> NewOneByteInternalizedSubString(
188 Handle<SeqOneByteString> string, int offset, int length, 191 Handle<SeqOneByteString> string, int offset, int length,
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 500
498 // Creates a new on-heap JSTypedArray. 501 // Creates a new on-heap JSTypedArray.
499 Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind, 502 Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind,
500 size_t number_of_elements, 503 size_t number_of_elements,
501 PretenureFlag pretenure = NOT_TENURED); 504 PretenureFlag pretenure = NOT_TENURED);
502 505
503 Handle<JSDataView> NewJSDataView(); 506 Handle<JSDataView> NewJSDataView();
504 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer, 507 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer,
505 size_t byte_offset, size_t byte_length); 508 size_t byte_offset, size_t byte_length);
506 509
510 Handle<JSIteratorResult> NewJSIteratorResult(Handle<Object> value, bool done);
511
507 Handle<JSMap> NewJSMap(); 512 Handle<JSMap> NewJSMap();
508 Handle<JSSet> NewJSSet(); 513 Handle<JSSet> NewJSSet();
509 514
510 // TODO(aandrey): Maybe these should take table, index and kind arguments. 515 // TODO(aandrey): Maybe these should take table, index and kind arguments.
511 Handle<JSMapIterator> NewJSMapIterator(); 516 Handle<JSMapIterator> NewJSMapIterator();
512 Handle<JSSetIterator> NewJSSetIterator(); 517 Handle<JSSetIterator> NewJSSetIterator();
513 518
514 // Allocates a bound function. 519 // Allocates a bound function.
515 MaybeHandle<JSBoundFunction> NewJSBoundFunction( 520 MaybeHandle<JSBoundFunction> NewJSBoundFunction(
516 Handle<JSReceiver> target_function, Handle<Object> bound_this, 521 Handle<JSReceiver> target_function, Handle<Object> bound_this,
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 FunctionMode function_mode); 767 FunctionMode function_mode);
763 768
764 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, 769 void SetStrictFunctionInstanceDescriptor(Handle<Map> map,
765 FunctionMode function_mode); 770 FunctionMode function_mode);
766 }; 771 };
767 772
768 } // namespace internal 773 } // namespace internal
769 } // namespace v8 774 } // namespace v8
770 775
771 #endif // V8_FACTORY_H_ 776 #endif // V8_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698