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

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

Issue 1700993002: Remove strong mode support from property loads. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix comment. 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
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime-classes.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_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(LoadFromSuper, 4, 1) \ 87 F(LoadFromSuper, 3, 1) \
88 F(LoadKeyedFromSuper, 4, 1) \ 88 F(LoadKeyedFromSuper, 3, 1) \
89 F(StoreToSuper_Strict, 4, 1) \ 89 F(StoreToSuper_Strict, 4, 1) \
90 F(StoreToSuper_Sloppy, 4, 1) \ 90 F(StoreToSuper_Sloppy, 4, 1) \
91 F(StoreKeyedToSuper_Strict, 4, 1) \ 91 F(StoreKeyedToSuper_Strict, 4, 1) \
92 F(StoreKeyedToSuper_Sloppy, 4, 1) \ 92 F(StoreKeyedToSuper_Sloppy, 4, 1) \
93 F(GetSuperConstructor, 1, 1) 93 F(GetSuperConstructor, 1, 1)
94 94
95 #define FOR_EACH_INTRINSIC_COLLECTIONS(F) \ 95 #define FOR_EACH_INTRINSIC_COLLECTIONS(F) \
96 F(StringGetRawHashField, 1, 1) \ 96 F(StringGetRawHashField, 1, 1) \
97 F(TheHole, 0, 1) \ 97 F(TheHole, 0, 1) \
98 F(JSCollectionGetTable, 1, 1) \ 98 F(JSCollectionGetTable, 1, 1) \
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 F(GetHoleNaNUpper, 0, 1) \ 412 F(GetHoleNaNUpper, 0, 1) \
413 F(GetHoleNaNLower, 0, 1) 413 F(GetHoleNaNLower, 0, 1)
414 414
415 #define FOR_EACH_INTRINSIC_OBJECT(F) \ 415 #define FOR_EACH_INTRINSIC_OBJECT(F) \
416 F(GetPrototype, 1, 1) \ 416 F(GetPrototype, 1, 1) \
417 F(InternalSetPrototype, 2, 1) \ 417 F(InternalSetPrototype, 2, 1) \
418 F(SetPrototype, 2, 1) \ 418 F(SetPrototype, 2, 1) \
419 F(GetOwnProperty_Legacy, 2, 1) \ 419 F(GetOwnProperty_Legacy, 2, 1) \
420 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \ 420 F(OptimizeObjectForAddingMultipleProperties, 2, 1) \
421 F(GetProperty, 2, 1) \ 421 F(GetProperty, 2, 1) \
422 F(GetPropertyStrong, 2, 1) \
423 F(KeyedGetProperty, 2, 1) \ 422 F(KeyedGetProperty, 2, 1) \
424 F(KeyedGetPropertyStrong, 2, 1) \
425 F(LoadGlobalViaContext, 1, 1) \ 423 F(LoadGlobalViaContext, 1, 1) \
426 F(StoreGlobalViaContext_Sloppy, 2, 1) \ 424 F(StoreGlobalViaContext_Sloppy, 2, 1) \
427 F(StoreGlobalViaContext_Strict, 2, 1) \ 425 F(StoreGlobalViaContext_Strict, 2, 1) \
428 F(AddNamedProperty, 4, 1) \ 426 F(AddNamedProperty, 4, 1) \
429 F(SetProperty, 4, 1) \ 427 F(SetProperty, 4, 1) \
430 F(AddElement, 3, 1) \ 428 F(AddElement, 3, 1) \
431 F(AppendElement, 2, 1) \ 429 F(AppendElement, 2, 1) \
432 F(DeleteProperty_Sloppy, 2, 1) \ 430 F(DeleteProperty_Sloppy, 2, 1) \
433 F(DeleteProperty_Strict, 2, 1) \ 431 F(DeleteProperty_Strict, 2, 1) \
434 F(HasOwnProperty, 2, 1) \ 432 F(HasOwnProperty, 2, 1) \
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
1129 1127
1130 MUST_USE_RESULT static Maybe<bool> DeleteObjectProperty( 1128 MUST_USE_RESULT static Maybe<bool> DeleteObjectProperty(
1131 Isolate* isolate, Handle<JSReceiver> receiver, Handle<Object> key, 1129 Isolate* isolate, Handle<JSReceiver> receiver, Handle<Object> key,
1132 LanguageMode language_mode); 1130 LanguageMode language_mode);
1133 1131
1134 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( 1132 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty(
1135 Isolate* isolate, Handle<Object> object, Handle<Object> key, 1133 Isolate* isolate, Handle<Object> object, Handle<Object> key,
1136 Handle<Object> value, LanguageMode language_mode); 1134 Handle<Object> value, LanguageMode language_mode);
1137 1135
1138 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( 1136 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty(
1139 Isolate* isolate, Handle<Object> object, Handle<Object> key, 1137 Isolate* isolate, Handle<Object> object, Handle<Object> key);
1140 LanguageMode language_mode = SLOPPY);
1141 1138
1142 enum TypedArrayId { 1139 enum TypedArrayId {
1143 // arrayIds below should be synchronized with typedarray.js natives. 1140 // arrayIds below should be synchronized with typedarray.js natives.
1144 ARRAY_ID_UINT8 = 1, 1141 ARRAY_ID_UINT8 = 1,
1145 ARRAY_ID_INT8 = 2, 1142 ARRAY_ID_INT8 = 2,
1146 ARRAY_ID_UINT16 = 3, 1143 ARRAY_ID_UINT16 = 3,
1147 ARRAY_ID_INT16 = 4, 1144 ARRAY_ID_INT16 = 4,
1148 ARRAY_ID_UINT32 = 5, 1145 ARRAY_ID_UINT32 = 5,
1149 ARRAY_ID_INT32 = 6, 1146 ARRAY_ID_INT32 = 6,
1150 ARRAY_ID_FLOAT32 = 7, 1147 ARRAY_ID_FLOAT32 = 7,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
1211 1208
1212 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 1209 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
1213 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 1210 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
1214 STATIC_ASSERT(LANGUAGE_END == 3); 1211 STATIC_ASSERT(LANGUAGE_END == 3);
1215 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; 1212 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
1216 1213
1217 } // namespace internal 1214 } // namespace internal
1218 } // namespace v8 1215 } // namespace v8
1219 1216
1220 #endif // V8_RUNTIME_RUNTIME_H_ 1217 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime-classes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698