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

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

Issue 549079: Support for MIPS in architecture independent files.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 11 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
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 #ifdef V8_TARGET_ARCH_ARM 56 #ifdef V8_TARGET_ARCH_ARM
57 #define CODE_STUB_LIST_ARM(V) \ 57 #define CODE_STUB_LIST_ARM(V) \
58 V(GetProperty) \ 58 V(GetProperty) \
59 V(SetProperty) \ 59 V(SetProperty) \
60 V(InvokeBuiltin) \ 60 V(InvokeBuiltin) \
61 V(RegExpCEntry) 61 V(RegExpCEntry)
62 #else 62 #else
63 #define CODE_STUB_LIST_ARM(V) 63 #define CODE_STUB_LIST_ARM(V)
64 #endif 64 #endif
65 65
66 // List of code stubs only used on MIPS platforms.
67 #ifdef V8_TARGET_ARCH_MIPS
68 #define CODE_STUB_LIST_MIPS(V) \
69 V(GetProperty) \
70 V(SetProperty) \
71 V(InvokeBuiltin) \
72 V(RegExpCEntry) \
73 V(TestMIPS)
74 #else
75 #define CODE_STUB_LIST_MIPS(V)
76 #endif
77
66 // Combined list of code stubs. 78 // Combined list of code stubs.
67 #define CODE_STUB_LIST(V) \ 79 #define CODE_STUB_LIST(V) \
68 CODE_STUB_LIST_ALL(V) \ 80 CODE_STUB_LIST_ALL(V) \
69 CODE_STUB_LIST_ARM(V) 81 CODE_STUB_LIST_ARM(V) \
82 CODE_STUB_LIST_MIPS(V) \
83
70 84
71 // Stub is base classes of all stubs. 85 // Stub is base classes of all stubs.
72 class CodeStub BASE_EMBEDDED { 86 class CodeStub BASE_EMBEDDED {
73 public: 87 public:
74 enum Major { 88 enum Major {
75 #define DEF_ENUM(name) name, 89 #define DEF_ENUM(name) name,
76 CODE_STUB_LIST(DEF_ENUM) 90 CODE_STUB_LIST(DEF_ENUM)
77 #undef DEF_ENUM 91 #undef DEF_ENUM
78 NoCache, // marker for stubs that do custom caching 92 NoCache, // marker for stubs that do custom caching
79 NUMBER_OF_IDS 93 NUMBER_OF_IDS
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 146
133 class MajorKeyBits: public BitField<uint32_t, 0, kMajorBits> {}; 147 class MajorKeyBits: public BitField<uint32_t, 0, kMajorBits> {};
134 class MinorKeyBits: public BitField<uint32_t, kMajorBits, kMinorBits> {}; 148 class MinorKeyBits: public BitField<uint32_t, kMajorBits, kMinorBits> {};
135 149
136 friend class BreakPointIterator; 150 friend class BreakPointIterator;
137 }; 151 };
138 152
139 } } // namespace v8::internal 153 } } // namespace v8::internal
140 154
141 #endif // V8_CODE_STUBS_H_ 155 #endif // V8_CODE_STUBS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698