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

Side by Side Diff: src/runtime/runtime.h

Issue 1626423003: Support computed properties for ES2015 Function.name (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Mostly working Created 4 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
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_RUNTIME_RUNTIME_H_ 5 #ifndef V8_RUNTIME_RUNTIME_H_
6 #define V8_RUNTIME_RUNTIME_H_ 6 #define V8_RUNTIME_RUNTIME_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/base/platform/time.h" 9 #include "src/base/platform/time.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 #define FOR_EACH_INTRINSIC_CLASSES(F) \ 77 #define FOR_EACH_INTRINSIC_CLASSES(F) \
78 F(ThrowNonMethodError, 0, 1) \ 78 F(ThrowNonMethodError, 0, 1) \
79 F(ThrowUnsupportedSuperError, 0, 1) \ 79 F(ThrowUnsupportedSuperError, 0, 1) \
80 F(ThrowConstructorNonCallableError, 1, 1) \ 80 F(ThrowConstructorNonCallableError, 1, 1) \
81 F(ThrowArrayNotSubclassableError, 0, 1) \ 81 F(ThrowArrayNotSubclassableError, 0, 1) \
82 F(ThrowStaticPrototypeError, 0, 1) \ 82 F(ThrowStaticPrototypeError, 0, 1) \
83 F(ThrowIfStaticPrototype, 1, 1) \ 83 F(ThrowIfStaticPrototype, 1, 1) \
84 F(HomeObjectSymbol, 0, 1) \ 84 F(HomeObjectSymbol, 0, 1) \
85 F(DefineClass, 4, 1) \ 85 F(DefineClass, 4, 1) \
86 F(FinalizeClassDefinition, 2, 1) \ 86 F(FinalizeClassDefinition, 2, 1) \
87 F(DefineClassMethod, 3, 1) \
88 F(LoadFromSuper, 4, 1) \ 87 F(LoadFromSuper, 4, 1) \
89 F(LoadKeyedFromSuper, 4, 1) \ 88 F(LoadKeyedFromSuper, 4, 1) \
90 F(StoreToSuper_Strict, 4, 1) \ 89 F(StoreToSuper_Strict, 4, 1) \
91 F(StoreToSuper_Sloppy, 4, 1) \ 90 F(StoreToSuper_Sloppy, 4, 1) \
92 F(StoreKeyedToSuper_Strict, 4, 1) \ 91 F(StoreKeyedToSuper_Strict, 4, 1) \
93 F(StoreKeyedToSuper_Sloppy, 4, 1) \ 92 F(StoreKeyedToSuper_Sloppy, 4, 1) \
94 F(GetSuperConstructor, 1, 1) 93 F(GetSuperConstructor, 1, 1)
95 94
96 #define FOR_EACH_INTRINSIC_COLLECTIONS(F) \ 95 #define FOR_EACH_INTRINSIC_COLLECTIONS(F) \
97 F(StringGetRawHashField, 1, 1) \ 96 F(StringGetRawHashField, 1, 1) \
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 F(NumberToIntegerMapMinusZero, 1, 1) \ 403 F(NumberToIntegerMapMinusZero, 1, 1) \
405 F(NumberToSmi, 1, 1) \ 404 F(NumberToSmi, 1, 1) \
406 F(NumberImul, 2, 1) \ 405 F(NumberImul, 2, 1) \
407 F(SmiLexicographicCompare, 2, 1) \ 406 F(SmiLexicographicCompare, 2, 1) \
408 F(MaxSmi, 0, 1) \ 407 F(MaxSmi, 0, 1) \
409 F(IsSmi, 1, 1) \ 408 F(IsSmi, 1, 1) \
410 F(GetRootNaN, 0, 1) \ 409 F(GetRootNaN, 0, 1) \
411 F(GetHoleNaNUpper, 0, 1) \ 410 F(GetHoleNaNUpper, 0, 1) \
412 F(GetHoleNaNLower, 0, 1) 411 F(GetHoleNaNLower, 0, 1)
413 412
414
415 #define FOR_EACH_INTRINSIC_OBJECT(F) \ 413 #define FOR_EACH_INTRINSIC_OBJECT(F) \
416 F(GetPrototype, 1, 1) \ 414 F(GetPrototype, 1, 1) \
417 F(InternalSetPrototype, 2, 1) \ 415 F(InternalSetPrototype, 2, 1) \
418 F(SetPrototype, 2, 1) \ 416 F(SetPrototype, 2, 1) \
419 F(GetOwnProperty, 2, 1) \ 417 F(GetOwnProperty, 2, 1) \
420 F(GetOwnProperty_Legacy, 2, 1) \ 418 F(GetOwnProperty_Legacy, 2, 1) \
421 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ 419 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \
422 F(GetProperty, 2, 1) \ 420 F(GetProperty, 2, 1) \
423 F(GetPropertyStrong, 2, 1) \ 421 F(GetPropertyStrong, 2, 1) \
424 F(KeyedGetProperty, 2, 1) \ 422 F(KeyedGetProperty, 2, 1) \
(...skipping 16 matching lines...) Expand all
441 F(AllocateHeapNumber, 0, 1) \ 439 F(AllocateHeapNumber, 0, 1) \
442 F(NewObject, 2, 1) \ 440 F(NewObject, 2, 1) \
443 F(FinalizeInstanceSize, 1, 1) \ 441 F(FinalizeInstanceSize, 1, 1) \
444 F(GlobalProxy, 1, 1) \ 442 F(GlobalProxy, 1, 1) \
445 F(LookupAccessor, 3, 1) \ 443 F(LookupAccessor, 3, 1) \
446 F(LoadMutableDouble, 2, 1) \ 444 F(LoadMutableDouble, 2, 1) \
447 F(TryMigrateInstance, 1, 1) \ 445 F(TryMigrateInstance, 1, 1) \
448 F(IsJSGlobalProxy, 1, 1) \ 446 F(IsJSGlobalProxy, 1, 1) \
449 F(DefineAccessorPropertyUnchecked, 5, 1) \ 447 F(DefineAccessorPropertyUnchecked, 5, 1) \
450 F(DefineDataPropertyUnchecked, 4, 1) \ 448 F(DefineDataPropertyUnchecked, 4, 1) \
449 F(DefineDataPropertyInLiteral, 5, 1) \
451 F(GetDataProperty, 2, 1) \ 450 F(GetDataProperty, 2, 1) \
452 F(HasFastPackedElements, 1, 1) \ 451 F(HasFastPackedElements, 1, 1) \
453 F(ValueOf, 1, 1) \ 452 F(ValueOf, 1, 1) \
454 F(SetValueOf, 2, 1) \ 453 F(SetValueOf, 2, 1) \
455 F(JSValueGetValue, 1, 1) \ 454 F(JSValueGetValue, 1, 1) \
456 F(ObjectEquals, 2, 1) \ 455 F(ObjectEquals, 2, 1) \
457 F(IsJSReceiver, 1, 1) \ 456 F(IsJSReceiver, 1, 1) \
458 F(IsStrong, 1, 1) \ 457 F(IsStrong, 1, 1) \
459 F(ClassOf, 1, 1) \ 458 F(ClassOf, 1, 1) \
460 F(DefineGetterPropertyUnchecked, 4, 1) \ 459 F(DefineGetterPropertyUnchecked, 4, 1) \
(...skipping 11 matching lines...) Expand all
472 F(StrictEquals, 2, 1) \ 471 F(StrictEquals, 2, 1) \
473 F(Compare, 3, 1) \ 472 F(Compare, 3, 1) \
474 F(Compare_Strong, 3, 1) \ 473 F(Compare_Strong, 3, 1) \
475 F(InstanceOf, 2, 1) \ 474 F(InstanceOf, 2, 1) \
476 F(HasInPrototypeChain, 2, 1) \ 475 F(HasInPrototypeChain, 2, 1) \
477 F(CreateIterResultObject, 2, 1) \ 476 F(CreateIterResultObject, 2, 1) \
478 F(IsAccessCheckNeeded, 1, 1) \ 477 F(IsAccessCheckNeeded, 1, 1) \
479 F(ObjectDefineProperties, 2, 1) \ 478 F(ObjectDefineProperties, 2, 1) \
480 F(ObjectDefineProperty, 3, 1) 479 F(ObjectDefineProperty, 3, 1)
481 480
482
483 #define FOR_EACH_INTRINSIC_OBSERVE(F) \ 481 #define FOR_EACH_INTRINSIC_OBSERVE(F) \
484 F(IsObserved, 1, 1) \ 482 F(IsObserved, 1, 1) \
485 F(SetIsObserved, 1, 1) \ 483 F(SetIsObserved, 1, 1) \
486 F(EnqueueMicrotask, 1, 1) \ 484 F(EnqueueMicrotask, 1, 1) \
487 F(RunMicrotasks, 0, 1) \ 485 F(RunMicrotasks, 0, 1) \
488 F(DeliverObservationChangeRecords, 2, 1) \ 486 F(DeliverObservationChangeRecords, 2, 1) \
489 F(GetObservationState, 0, 1) \ 487 F(GetObservationState, 0, 1) \
490 F(ObserverObjectAndRecordHaveSameOrigin, 3, 1) \ 488 F(ObserverObjectAndRecordHaveSameOrigin, 3, 1) \
491 F(ObjectWasCreatedInCurrentOrigin, 1, 1) \ 489 F(ObjectWasCreatedInCurrentOrigin, 1, 1) \
492 F(GetObjectContextObjectObserve, 1, 1) \ 490 F(GetObjectContextObjectObserve, 1, 1) \
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
1255 1253
1256 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 1254 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
1257 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 1255 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
1258 STATIC_ASSERT(LANGUAGE_END == 3); 1256 STATIC_ASSERT(LANGUAGE_END == 3);
1259 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; 1257 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
1260 1258
1261 } // namespace internal 1259 } // namespace internal
1262 } // namespace v8 1260 } // namespace v8
1263 1261
1264 #endif // V8_RUNTIME_RUNTIME_H_ 1262 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698