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

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

Issue 776143005: Optimize Object.seal and Object.preventExtensions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add nonextensible and sealed as special transitions Created 6 years 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-printer.cc ('k') | src/runtime/runtime-object.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/objects.h" 9 #include "src/objects.h"
10 #include "src/zone.h" 10 #include "src/zone.h"
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 F(GetArrayKeys, 2, 1) \ 268 F(GetArrayKeys, 2, 1) \
269 F(MoveArrayContents, 2, 1) \ 269 F(MoveArrayContents, 2, 1) \
270 F(EstimateNumberOfElements, 1, 1) \ 270 F(EstimateNumberOfElements, 1, 1) \
271 F(NormalizeElements, 1, 1) \ 271 F(NormalizeElements, 1, 1) \
272 F(HasComplexElements, 1, 1) \ 272 F(HasComplexElements, 1, 1) \
273 \ 273 \
274 /* Getters and Setters */ \ 274 /* Getters and Setters */ \
275 F(LookupAccessor, 3, 1) \ 275 F(LookupAccessor, 3, 1) \
276 \ 276 \
277 /* ES5 */ \ 277 /* ES5 */ \
278 F(ObjectSeal, 1, 1) \
278 F(ObjectFreeze, 1, 1) \ 279 F(ObjectFreeze, 1, 1) \
279 \ 280 \
280 /* Harmony modules */ \ 281 /* Harmony modules */ \
281 F(IsJSModule, 1, 1) \ 282 F(IsJSModule, 1, 1) \
282 \ 283 \
283 /* Harmony symbols */ \ 284 /* Harmony symbols */ \
284 F(CreateSymbol, 1, 1) \ 285 F(CreateSymbol, 1, 1) \
285 F(CreatePrivateSymbol, 1, 1) \ 286 F(CreatePrivateSymbol, 1, 1) \
286 F(CreateGlobalPrivateOwnSymbol, 1, 1) \ 287 F(CreateGlobalPrivateOwnSymbol, 1, 1) \
287 F(CreatePrivateOwnSymbol, 1, 1) \ 288 F(CreatePrivateOwnSymbol, 1, 1) \
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; 893 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {};
893 894
894 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 895 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
895 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 896 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
896 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {}; 897 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {};
897 898
898 } // namespace internal 899 } // namespace internal
899 } // namespace v8 900 } // namespace v8
900 901
901 #endif // V8_RUNTIME_RUNTIME_H_ 902 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/objects-printer.cc ('k') | src/runtime/runtime-object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698