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

Side by Side Diff: src/code-stubs.h

Issue 7112010: Plumbing changes to merge various element kind implementaions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback Created 9 years, 6 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/ast.cc ('k') | src/code-stubs.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 957 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 968
969 DECLARE_ARRAY_STUB_PRINT(KeyedStoreFastElementStub) 969 DECLARE_ARRAY_STUB_PRINT(KeyedStoreFastElementStub)
970 970
971 private: 971 private:
972 bool is_js_array_; 972 bool is_js_array_;
973 }; 973 };
974 974
975 975
976 class KeyedLoadExternalArrayStub : public CodeStub { 976 class KeyedLoadExternalArrayStub : public CodeStub {
977 public: 977 public:
978 explicit KeyedLoadExternalArrayStub(ExternalArrayType array_type) 978 explicit KeyedLoadExternalArrayStub(JSObject::ElementsKind elements_kind)
979 : array_type_(array_type) { } 979 : elements_kind_(elements_kind) { }
980 980
981 Major MajorKey() { return KeyedLoadExternalArray; } 981 Major MajorKey() { return KeyedLoadExternalArray; }
982 int MinorKey() { return array_type_; } 982 int MinorKey() { return elements_kind_; }
983 983
984 void Generate(MacroAssembler* masm); 984 void Generate(MacroAssembler* masm);
985 985
986 const char* GetName() { return "KeyedLoadExternalArrayStub"; } 986 const char* GetName() { return "KeyedLoadExternalArrayStub"; }
987 987
988 DECLARE_ARRAY_STUB_PRINT(KeyedLoadExternalArrayStub) 988 DECLARE_ARRAY_STUB_PRINT(KeyedLoadExternalArrayStub)
989 989
990 protected: 990 protected:
991 ExternalArrayType array_type_; 991 JSObject::ElementsKind elements_kind_;
992 }; 992 };
993 993
994 994
995 class KeyedStoreExternalArrayStub : public CodeStub { 995 class KeyedStoreExternalArrayStub : public CodeStub {
996 public: 996 public:
997 explicit KeyedStoreExternalArrayStub(ExternalArrayType array_type) 997 explicit KeyedStoreExternalArrayStub(JSObject::ElementsKind elements_kind)
998 : array_type_(array_type) { } 998 : elements_kind_(elements_kind) { }
999 999
1000 Major MajorKey() { return KeyedStoreExternalArray; } 1000 Major MajorKey() { return KeyedStoreExternalArray; }
1001 int MinorKey() { return array_type_; } 1001 int MinorKey() { return elements_kind_; }
1002 1002
1003 void Generate(MacroAssembler* masm); 1003 void Generate(MacroAssembler* masm);
1004 1004
1005 const char* GetName() { return "KeyedStoreExternalArrayStub"; } 1005 const char* GetName() { return "KeyedStoreExternalArrayStub"; }
1006 1006
1007 DECLARE_ARRAY_STUB_PRINT(KeyedStoreExternalArrayStub) 1007 DECLARE_ARRAY_STUB_PRINT(KeyedStoreExternalArrayStub)
1008 1008
1009 protected: 1009 protected:
1010 ExternalArrayType array_type_; 1010 JSObject::ElementsKind elements_kind_;
1011 }; 1011 };
1012 1012
1013 1013
1014 } } // namespace v8::internal 1014 } } // namespace v8::internal
1015 1015
1016 #endif // V8_CODE_STUBS_H_ 1016 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698