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

Side by Side Diff: src/objects.h

Issue 1448933002: Introduce a BuiltinsConstructStub that sets up new.target and does a [[call]] per ES6 9.3.2 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 V(JS_TYPED_ARRAY_TYPE) \ 427 V(JS_TYPED_ARRAY_TYPE) \
428 V(JS_DATA_VIEW_TYPE) \ 428 V(JS_DATA_VIEW_TYPE) \
429 V(JS_PROXY_TYPE) \ 429 V(JS_PROXY_TYPE) \
430 V(JS_SET_TYPE) \ 430 V(JS_SET_TYPE) \
431 V(JS_MAP_TYPE) \ 431 V(JS_MAP_TYPE) \
432 V(JS_SET_ITERATOR_TYPE) \ 432 V(JS_SET_ITERATOR_TYPE) \
433 V(JS_MAP_ITERATOR_TYPE) \ 433 V(JS_MAP_ITERATOR_TYPE) \
434 V(JS_ITERATOR_RESULT_TYPE) \ 434 V(JS_ITERATOR_RESULT_TYPE) \
435 V(JS_WEAK_MAP_TYPE) \ 435 V(JS_WEAK_MAP_TYPE) \
436 V(JS_WEAK_SET_TYPE) \ 436 V(JS_WEAK_SET_TYPE) \
437 V(JS_PROMISE_TYPE) \
437 V(JS_REGEXP_TYPE) \ 438 V(JS_REGEXP_TYPE) \
438 \ 439 \
439 V(JS_FUNCTION_TYPE) \ 440 V(JS_FUNCTION_TYPE) \
440 V(JS_FUNCTION_PROXY_TYPE) \ 441 V(JS_FUNCTION_PROXY_TYPE) \
441 V(DEBUG_INFO_TYPE) \ 442 V(DEBUG_INFO_TYPE) \
442 V(BREAK_POINT_INFO_TYPE) 443 V(BREAK_POINT_INFO_TYPE)
443 444
444 445
445 // Since string types are not consecutive, this macro is used to 446 // Since string types are not consecutive, this macro is used to
446 // iterate over them. 447 // iterate over them.
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 JS_ARRAY_BUFFER_TYPE, 726 JS_ARRAY_BUFFER_TYPE,
726 JS_TYPED_ARRAY_TYPE, 727 JS_TYPED_ARRAY_TYPE,
727 JS_DATA_VIEW_TYPE, 728 JS_DATA_VIEW_TYPE,
728 JS_SET_TYPE, 729 JS_SET_TYPE,
729 JS_MAP_TYPE, 730 JS_MAP_TYPE,
730 JS_SET_ITERATOR_TYPE, 731 JS_SET_ITERATOR_TYPE,
731 JS_MAP_ITERATOR_TYPE, 732 JS_MAP_ITERATOR_TYPE,
732 JS_ITERATOR_RESULT_TYPE, 733 JS_ITERATOR_RESULT_TYPE,
733 JS_WEAK_MAP_TYPE, 734 JS_WEAK_MAP_TYPE,
734 JS_WEAK_SET_TYPE, 735 JS_WEAK_SET_TYPE,
736 JS_PROMISE_TYPE,
735 JS_REGEXP_TYPE, 737 JS_REGEXP_TYPE,
736 JS_FUNCTION_TYPE, // LAST_JS_OBJECT_TYPE, LAST_JS_RECEIVER_TYPE 738 JS_FUNCTION_TYPE, // LAST_JS_OBJECT_TYPE, LAST_JS_RECEIVER_TYPE
737 739
738 // Pseudo-types 740 // Pseudo-types
739 FIRST_TYPE = 0x0, 741 FIRST_TYPE = 0x0,
740 LAST_TYPE = JS_FUNCTION_TYPE, 742 LAST_TYPE = JS_FUNCTION_TYPE,
741 FIRST_NAME_TYPE = FIRST_TYPE, 743 FIRST_NAME_TYPE = FIRST_TYPE,
742 LAST_NAME_TYPE = SYMBOL_TYPE, 744 LAST_NAME_TYPE = SYMBOL_TYPE,
743 FIRST_UNIQUE_NAME_TYPE = INTERNALIZED_STRING_TYPE, 745 FIRST_UNIQUE_NAME_TYPE = INTERNALIZED_STRING_TYPE,
744 LAST_UNIQUE_NAME_TYPE = SYMBOL_TYPE, 746 LAST_UNIQUE_NAME_TYPE = SYMBOL_TYPE,
(...skipping 6954 matching lines...) Expand 10 before | Expand all | Expand 10 after
7699 bool is_unicode() { return (value_ & UNICODE_ESCAPES) != 0; } 7701 bool is_unicode() { return (value_ & UNICODE_ESCAPES) != 0; }
7700 uint32_t value() { return value_; } 7702 uint32_t value() { return value_; }
7701 private: 7703 private:
7702 uint32_t value_; 7704 uint32_t value_;
7703 }; 7705 };
7704 7706
7705 DECL_ACCESSORS(data, Object) 7707 DECL_ACCESSORS(data, Object)
7706 DECL_ACCESSORS(flags, Object) 7708 DECL_ACCESSORS(flags, Object)
7707 DECL_ACCESSORS(source, Object) 7709 DECL_ACCESSORS(source, Object)
7708 7710
7711 static MaybeHandle<JSRegExp> New(Handle<String> source, Handle<String> flags);
7712
7713 static MaybeHandle<JSRegExp> Initialize(Handle<JSRegExp> regexp,
7714 Handle<String> source,
7715 Handle<String> flags_string);
7716
7709 inline Type TypeTag(); 7717 inline Type TypeTag();
7710 inline int CaptureCount(); 7718 inline int CaptureCount();
7711 inline Flags GetFlags(); 7719 inline Flags GetFlags();
7712 inline String* Pattern(); 7720 inline String* Pattern();
7713 inline Object* DataAt(int index); 7721 inline Object* DataAt(int index);
7714 // Set implementation data after the object has been prepared. 7722 // Set implementation data after the object has been prepared.
7715 inline void SetDataAt(int index, Object* value); 7723 inline void SetDataAt(int index, Object* value);
7716 7724
7717 static int code_index(bool is_latin1) { 7725 static int code_index(bool is_latin1) {
7718 if (is_latin1) { 7726 if (is_latin1) {
(...skipping 2987 matching lines...) Expand 10 before | Expand all | Expand 10 after
10706 } 10714 }
10707 return value; 10715 return value;
10708 } 10716 }
10709 }; 10717 };
10710 10718
10711 10719
10712 } // NOLINT, false-positive due to second-order macros. 10720 } // NOLINT, false-positive due to second-order macros.
10713 } // NOLINT, false-positive due to second-order macros. 10721 } // NOLINT, false-positive due to second-order macros.
10714 10722
10715 #endif // V8_OBJECTS_H_ 10723 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698