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

Side by Side Diff: src/runtime.h

Issue 108083005: ES6: Add Object.getOwnPropertySymbols (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Do the filtering in the runtime function Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 F(DeleteProperty, 3, 1) \ 51 F(DeleteProperty, 3, 1) \
52 F(HasLocalProperty, 2, 1) \ 52 F(HasLocalProperty, 2, 1) \
53 F(HasProperty, 2, 1) \ 53 F(HasProperty, 2, 1) \
54 F(HasElement, 2, 1) \ 54 F(HasElement, 2, 1) \
55 F(IsPropertyEnumerable, 2, 1) \ 55 F(IsPropertyEnumerable, 2, 1) \
56 F(GetPropertyNames, 1, 1) \ 56 F(GetPropertyNames, 1, 1) \
57 F(GetPropertyNamesFast, 1, 1) \ 57 F(GetPropertyNamesFast, 1, 1) \
58 F(GetLocalPropertyNames, 2, 1) \ 58 F(GetLocalPropertyNames, 2, 1) \
59 F(GetLocalElementNames, 1, 1) \ 59 F(GetLocalElementNames, 1, 1) \
60 F(GetInterceptorInfo, 1, 1) \ 60 F(GetInterceptorInfo, 1, 1) \
61 F(GetNamedInterceptorPropertyNames, 1, 1) \ 61 F(GetNamedInterceptorPropertyNames, 2, 1) \
62 F(GetIndexedInterceptorElementNames, 1, 1) \ 62 F(GetIndexedInterceptorElementNames, 1, 1) \
63 F(GetArgumentsProperty, 1, 1) \ 63 F(GetArgumentsProperty, 1, 1) \
64 F(ToFastProperties, 1, 1) \ 64 F(ToFastProperties, 1, 1) \
65 F(FinishArrayPrototypeSetup, 1, 1) \ 65 F(FinishArrayPrototypeSetup, 1, 1) \
66 F(SpecialArrayFunctions, 1, 1) \ 66 F(SpecialArrayFunctions, 1, 1) \
67 F(IsCallable, 1, 1) \ 67 F(IsCallable, 1, 1) \
68 F(IsClassicModeFunction, 1, 1) \ 68 F(IsClassicModeFunction, 1, 1) \
69 F(GetDefaultReceiver, 1, 1) \ 69 F(GetDefaultReceiver, 1, 1) \
70 \ 70 \
71 F(GetPrototype, 1, 1) \ 71 F(GetPrototype, 1, 1) \
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 ExternalArrayType *type, size_t *element_size); 847 ExternalArrayType *type, size_t *element_size);
848 848
849 // Helper functions used stubs. 849 // Helper functions used stubs.
850 static void PerformGC(Object* result, Isolate* isolate); 850 static void PerformGC(Object* result, Isolate* isolate);
851 851
852 // Used in runtime.cc and hydrogen's VisitArrayLiteral. 852 // Used in runtime.cc and hydrogen's VisitArrayLiteral.
853 static Handle<Object> CreateArrayLiteralBoilerplate( 853 static Handle<Object> CreateArrayLiteralBoilerplate(
854 Isolate* isolate, 854 Isolate* isolate,
855 Handle<FixedArray> literals, 855 Handle<FixedArray> literals,
856 Handle<FixedArray> elements); 856 Handle<FixedArray> elements);
857
858 enum LocalPropertyKeyType {
859 PROPERTY_KEY_STRING = 1,
860 PROPERTY_KEY_SYMBOL = 2
861 };
857 }; 862 };
858 863
859 864
860 //--------------------------------------------------------------------------- 865 //---------------------------------------------------------------------------
861 // Constants used by interface to runtime functions. 866 // Constants used by interface to runtime functions.
862 867
863 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; 868 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {};
864 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; 869 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {};
865 870
866 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; 871 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {};
867 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; 872 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {};
868 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; 873 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {};
869 874
870 } } // namespace v8::internal 875 } } // namespace v8::internal
871 876
872 #endif // V8_RUNTIME_H_ 877 #endif // V8_RUNTIME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698