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

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

Issue 692333011: Classes: Add support for arguments in default constructor (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 // 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 F(DefineClassGetter, 3, 1) \ 192 F(DefineClassGetter, 3, 1) \
193 F(DefineClassSetter, 3, 1) \ 193 F(DefineClassSetter, 3, 1) \
194 F(ClassGetSourceCode, 1, 1) \ 194 F(ClassGetSourceCode, 1, 1) \
195 F(ThrowNonMethodError, 0, 1) \ 195 F(ThrowNonMethodError, 0, 1) \
196 F(ThrowUnsupportedSuperError, 0, 1) \ 196 F(ThrowUnsupportedSuperError, 0, 1) \
197 F(LoadFromSuper, 3, 1) \ 197 F(LoadFromSuper, 3, 1) \
198 F(LoadKeyedFromSuper, 3, 1) \ 198 F(LoadKeyedFromSuper, 3, 1) \
199 F(StoreToSuper_Strict, 4, 1) \ 199 F(StoreToSuper_Strict, 4, 1) \
200 F(StoreToSuper_Sloppy, 4, 1) \ 200 F(StoreToSuper_Sloppy, 4, 1) \
201 F(StoreKeyedToSuper_Strict, 4, 1) \ 201 F(StoreKeyedToSuper_Strict, 4, 1) \
202 F(StoreKeyedToSuper_Sloppy, 4, 1) 202 F(StoreKeyedToSuper_Sloppy, 4, 1) \
203 F(DefaultConstructorSuperCall, 0, 1)
203 204
204 205
205 #define RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ 206 #define RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \
206 /* Reflection */ \ 207 /* Reflection */ \
207 F(FunctionSetInstanceClassName, 2, 1) \ 208 F(FunctionSetInstanceClassName, 2, 1) \
208 F(FunctionSetLength, 2, 1) \ 209 F(FunctionSetLength, 2, 1) \
209 F(FunctionSetPrototype, 2, 1) \ 210 F(FunctionSetPrototype, 2, 1) \
210 F(FunctionGetName, 1, 1) \ 211 F(FunctionGetName, 1, 1) \
211 F(FunctionSetName, 2, 1) \ 212 F(FunctionSetName, 2, 1) \
212 F(FunctionNameShouldPrintAsAnonymous, 1, 1) \ 213 F(FunctionNameShouldPrintAsAnonymous, 1, 1) \
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 Isolate* isolate, Handle<Object> object, Handle<Object> key, 822 Isolate* isolate, Handle<Object> object, Handle<Object> key,
822 Handle<Object> value, StrictMode strict_mode); 823 Handle<Object> value, StrictMode strict_mode);
823 824
824 MUST_USE_RESULT static MaybeHandle<Object> DefineObjectProperty( 825 MUST_USE_RESULT static MaybeHandle<Object> DefineObjectProperty(
825 Handle<JSObject> object, Handle<Object> key, Handle<Object> value, 826 Handle<JSObject> object, Handle<Object> key, Handle<Object> value,
826 PropertyAttributes attr); 827 PropertyAttributes attr);
827 828
828 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( 829 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty(
829 Isolate* isolate, Handle<Object> object, Handle<Object> key); 830 Isolate* isolate, Handle<Object> object, Handle<Object> key);
830 831
832 MUST_USE_RESULT static MaybeHandle<Object> GetPrototype(
833 Isolate* isolate, Handle<Object> object);
834
831 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate, 835 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate,
832 Handle<Object> key); 836 Handle<Object> key);
833 837
834 static void SetupArrayBuffer(Isolate* isolate, 838 static void SetupArrayBuffer(Isolate* isolate,
835 Handle<JSArrayBuffer> array_buffer, 839 Handle<JSArrayBuffer> array_buffer,
836 bool is_external, void* data, 840 bool is_external, void* data,
837 size_t allocated_length); 841 size_t allocated_length);
838 842
839 static bool SetupArrayBufferAllocatingData(Isolate* isolate, 843 static bool SetupArrayBufferAllocatingData(Isolate* isolate,
840 Handle<JSArrayBuffer> array_buffer, 844 Handle<JSArrayBuffer> array_buffer,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; 888 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {};
885 889
886 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 890 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
887 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 891 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
888 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {}; 892 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {};
889 893
890 } // namespace internal 894 } // namespace internal
891 } // namespace v8 895 } // namespace v8
892 896
893 #endif // V8_RUNTIME_RUNTIME_H_ 897 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | src/runtime/runtime-classes.cc » ('j') | test/mjsunit/harmony/classes.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698