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

Side by Side Diff: src/globals.h

Issue 911363002: Revert of new classes: implement new.target passing to superclass constructor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « src/full-codegen.cc ('k') | src/hydrogen.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_GLOBALS_H_ 5 #ifndef V8_GLOBALS_H_
6 #define V8_GLOBALS_H_ 6 #define V8_GLOBALS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 enum CallFunctionFlags { 520 enum CallFunctionFlags {
521 NO_CALL_FUNCTION_FLAGS, 521 NO_CALL_FUNCTION_FLAGS,
522 CALL_AS_METHOD, 522 CALL_AS_METHOD,
523 // Always wrap the receiver and call to the JSFunction. Only use this flag 523 // Always wrap the receiver and call to the JSFunction. Only use this flag
524 // both the receiver type and the target method are statically known. 524 // both the receiver type and the target method are statically known.
525 WRAP_AND_CALL 525 WRAP_AND_CALL
526 }; 526 };
527 527
528 528
529 enum CallConstructorFlags { 529 enum CallConstructorFlags {
530 NO_CALL_CONSTRUCTOR_FLAGS = 0, 530 NO_CALL_CONSTRUCTOR_FLAGS,
531 // The call target is cached in the instruction stream. 531 // The call target is cached in the instruction stream.
532 RECORD_CONSTRUCTOR_TARGET = 1, 532 RECORD_CONSTRUCTOR_TARGET
533 SUPER_CONSTRUCTOR_CALL = 1 << 1,
534 SUPER_CALL_RECORD_TARGET = SUPER_CONSTRUCTOR_CALL | RECORD_CONSTRUCTOR_TARGET
535 }; 533 };
536 534
537 535
538 enum CacheHolderFlag { 536 enum CacheHolderFlag {
539 kCacheOnPrototype, 537 kCacheOnPrototype,
540 kCacheOnPrototypeReceiverIsDictionary, 538 kCacheOnPrototypeReceiverIsDictionary,
541 kCacheOnPrototypeReceiverIsPrimitive, 539 kCacheOnPrototypeReceiverIsPrimitive,
542 kCacheOnReceiver 540 kCacheOnReceiver
543 }; 541 };
544 542
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 DCHECK(IsValidFunctionKind(kind)); 884 DCHECK(IsValidFunctionKind(kind));
887 return kind & 885 return kind &
888 (FunctionKind::kBaseConstructor | FunctionKind::kSubclassConstructor | 886 (FunctionKind::kBaseConstructor | FunctionKind::kSubclassConstructor |
889 FunctionKind::kDefaultConstructor); 887 FunctionKind::kDefaultConstructor);
890 } 888 }
891 } } // namespace v8::internal 889 } } // namespace v8::internal
892 890
893 namespace i = v8::internal; 891 namespace i = v8::internal;
894 892
895 #endif // V8_GLOBALS_H_ 893 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698