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

Side by Side Diff: src/runtime.h

Issue 208503007: Revert "This implements allocating small typed arrays in heap." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime.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 // 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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 F(HasExternalUint8ClampedElements, 1, 1) \ 461 F(HasExternalUint8ClampedElements, 1, 1) \
462 F(HasExternalArrayElements, 1, 1) \ 462 F(HasExternalArrayElements, 1, 1) \
463 F(HasExternalInt8Elements, 1, 1) \ 463 F(HasExternalInt8Elements, 1, 1) \
464 F(HasExternalUint8Elements, 1, 1) \ 464 F(HasExternalUint8Elements, 1, 1) \
465 F(HasExternalInt16Elements, 1, 1) \ 465 F(HasExternalInt16Elements, 1, 1) \
466 F(HasExternalUint16Elements, 1, 1) \ 466 F(HasExternalUint16Elements, 1, 1) \
467 F(HasExternalInt32Elements, 1, 1) \ 467 F(HasExternalInt32Elements, 1, 1) \
468 F(HasExternalUint32Elements, 1, 1) \ 468 F(HasExternalUint32Elements, 1, 1) \
469 F(HasExternalFloat32Elements, 1, 1) \ 469 F(HasExternalFloat32Elements, 1, 1) \
470 F(HasExternalFloat64Elements, 1, 1) \ 470 F(HasExternalFloat64Elements, 1, 1) \
471 F(HasFixedUint8ClampedElements, 1, 1) \
472 F(HasFixedInt8Elements, 1, 1) \
473 F(HasFixedUint8Elements, 1, 1) \
474 F(HasFixedInt16Elements, 1, 1) \
475 F(HasFixedUint16Elements, 1, 1) \
476 F(HasFixedInt32Elements, 1, 1) \
477 F(HasFixedUint32Elements, 1, 1) \
478 F(HasFixedFloat32Elements, 1, 1) \
479 F(HasFixedFloat64Elements, 1, 1) \
480 F(HasFastProperties, 1, 1) \ 471 F(HasFastProperties, 1, 1) \
481 F(TransitionElementsKind, 2, 1) \ 472 F(TransitionElementsKind, 2, 1) \
482 F(HaveSameMap, 2, 1) \ 473 F(HaveSameMap, 2, 1) \
483 F(IsAccessCheckNeeded, 1, 1) 474 F(IsAccessCheckNeeded, 1, 1)
484 475
485 476
486 #ifdef ENABLE_DEBUGGER_SUPPORT 477 #ifdef ENABLE_DEBUGGER_SUPPORT
487 #define RUNTIME_FUNCTION_LIST_DEBUGGER_SUPPORT(F) \ 478 #define RUNTIME_FUNCTION_LIST_DEBUGGER_SUPPORT(F) \
488 /* Debugger support*/ \ 479 /* Debugger support*/ \
489 F(DebugBreak, 0, 1) \ 480 F(DebugBreak, 0, 1) \
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 F(StringCompare, 2, 1) \ 656 F(StringCompare, 2, 1) \
666 F(RegExpExec, 4, 1) \ 657 F(RegExpExec, 4, 1) \
667 F(RegExpConstructResult, 3, 1) \ 658 F(RegExpConstructResult, 3, 1) \
668 F(GetFromCache, 2, 1) \ 659 F(GetFromCache, 2, 1) \
669 F(NumberToString, 1, 1) \ 660 F(NumberToString, 1, 1) \
670 F(DoubleHi, 1, 1) \ 661 F(DoubleHi, 1, 1) \
671 F(DoubleLo, 1, 1) \ 662 F(DoubleLo, 1, 1) \
672 F(ConstructDouble, 2, 1) \ 663 F(ConstructDouble, 2, 1) \
673 F(TypedArrayInitialize, 5, 1) \ 664 F(TypedArrayInitialize, 5, 1) \
674 F(DataViewInitialize, 4, 1) \ 665 F(DataViewInitialize, 4, 1) \
675 F(MaxSmi, 0, 1) \ 666 F(MaxSmi, 0, 1)
676 F(TypedArrayMaxSizeInHeap, 0, 1)
677 667
678 668
679 //--------------------------------------------------------------------------- 669 //---------------------------------------------------------------------------
680 // Runtime provides access to all C++ runtime functions. 670 // Runtime provides access to all C++ runtime functions.
681 671
682 class RuntimeState { 672 class RuntimeState {
683 public: 673 public:
684 StaticResource<ConsStringIteratorOp>* string_iterator() { 674 StaticResource<ConsStringIteratorOp>* string_iterator() {
685 return &string_iterator_; 675 return &string_iterator_;
686 } 676 }
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 ARRAY_ID_UINT16 = 3, 840 ARRAY_ID_UINT16 = 3,
851 ARRAY_ID_INT16 = 4, 841 ARRAY_ID_INT16 = 4,
852 ARRAY_ID_UINT32 = 5, 842 ARRAY_ID_UINT32 = 5,
853 ARRAY_ID_INT32 = 6, 843 ARRAY_ID_INT32 = 6,
854 ARRAY_ID_FLOAT32 = 7, 844 ARRAY_ID_FLOAT32 = 7,
855 ARRAY_ID_FLOAT64 = 8, 845 ARRAY_ID_FLOAT64 = 8,
856 ARRAY_ID_UINT8_CLAMPED = 9 846 ARRAY_ID_UINT8_CLAMPED = 9
857 }; 847 };
858 848
859 static void ArrayIdToTypeAndSize(int array_id, 849 static void ArrayIdToTypeAndSize(int array_id,
860 ExternalArrayType *type, 850 ExternalArrayType *type, size_t *element_size);
861 ElementsKind* external_elements_kind,
862 ElementsKind* fixed_elements_kind,
863 size_t *element_size);
864 851
865 // Helper functions used stubs. 852 // Helper functions used stubs.
866 static void PerformGC(Object* result, Isolate* isolate); 853 static void PerformGC(Object* result, Isolate* isolate);
867 854
868 // Used in runtime.cc and hydrogen's VisitArrayLiteral. 855 // Used in runtime.cc and hydrogen's VisitArrayLiteral.
869 static Handle<Object> CreateArrayLiteralBoilerplate( 856 static Handle<Object> CreateArrayLiteralBoilerplate(
870 Isolate* isolate, 857 Isolate* isolate,
871 Handle<FixedArray> literals, 858 Handle<FixedArray> literals,
872 Handle<FixedArray> elements); 859 Handle<FixedArray> elements);
873 }; 860 };
874 861
875 862
876 //--------------------------------------------------------------------------- 863 //---------------------------------------------------------------------------
877 // Constants used by interface to runtime functions. 864 // Constants used by interface to runtime functions.
878 865
879 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; 866 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {};
880 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; 867 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {};
881 868
882 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; 869 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {};
883 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; 870 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {};
884 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; 871 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {};
885 872
886 } } // namespace v8::internal 873 } } // namespace v8::internal
887 874
888 #endif // V8_RUNTIME_H_ 875 #endif // V8_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698