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

Side by Side Diff: src/elements.h

Issue 7849017: Mechanical refactor to move ElementsKind type out of JSObject. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: latest changes Created 9 years, 3 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/code-stubs.cc ('k') | src/elements.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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual MaybeObject* Delete(JSObject* holder, 47 virtual MaybeObject* Delete(JSObject* holder,
48 uint32_t key, 48 uint32_t key,
49 JSReceiver::DeleteMode mode) = 0; 49 JSReceiver::DeleteMode mode) = 0;
50 50
51 virtual MaybeObject* AddElementsToFixedArray(FixedArrayBase* from, 51 virtual MaybeObject* AddElementsToFixedArray(FixedArrayBase* from,
52 FixedArray* to, 52 FixedArray* to,
53 JSObject* holder, 53 JSObject* holder,
54 Object* receiver) = 0; 54 Object* receiver) = 0;
55 55
56 // Returns a shared ElementsAccessor for the specified ElementsKind. 56 // Returns a shared ElementsAccessor for the specified ElementsKind.
57 static ElementsAccessor* ForKind(JSObject::ElementsKind elements_kind) { 57 static ElementsAccessor* ForKind(ElementsKind elements_kind) {
58 ASSERT(elements_kind < JSObject::kElementsKindCount); 58 ASSERT(elements_kind < kElementsKindCount);
59 return elements_accessors_[elements_kind]; 59 return elements_accessors_[elements_kind];
60 } 60 }
61 61
62 static ElementsAccessor* ForArray(FixedArrayBase* array); 62 static ElementsAccessor* ForArray(FixedArrayBase* array);
63 63
64 static void InitializeOncePerProcess(); 64 static void InitializeOncePerProcess();
65 65
66 protected: 66 protected:
67 friend class NonStrictArgumentsElementsAccessor; 67 friend class NonStrictArgumentsElementsAccessor;
68 68
(...skipping 17 matching lines...) Expand all
86 86
87 private: 87 private:
88 static ElementsAccessor** elements_accessors_; 88 static ElementsAccessor** elements_accessors_;
89 89
90 DISALLOW_COPY_AND_ASSIGN(ElementsAccessor); 90 DISALLOW_COPY_AND_ASSIGN(ElementsAccessor);
91 }; 91 };
92 92
93 } } // namespace v8::internal 93 } } // namespace v8::internal
94 94
95 #endif // V8_ELEMENTS_H_ 95 #endif // V8_ELEMENTS_H_
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/elements.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698