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

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

Issue 136513002: Merged r18284 into 3.23 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.23
Patch Set: Created 6 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
« no previous file with comments | « no previous file | src/objects.h » ('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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // If a stub uses a special cache override this. 239 // If a stub uses a special cache override this.
240 virtual bool UseSpecialCache() { return false; } 240 virtual bool UseSpecialCache() { return false; }
241 241
242 // Computes the key based on major and minor. 242 // Computes the key based on major and minor.
243 uint32_t GetKey() { 243 uint32_t GetKey() {
244 ASSERT(static_cast<int>(MajorKey()) < NUMBER_OF_IDS); 244 ASSERT(static_cast<int>(MajorKey()) < NUMBER_OF_IDS);
245 return MinorKeyBits::encode(MinorKey()) | 245 return MinorKeyBits::encode(MinorKey()) |
246 MajorKeyBits::encode(MajorKey()); 246 MajorKeyBits::encode(MajorKey());
247 } 247 }
248 248
249 STATIC_ASSERT(NUMBER_OF_IDS < (1 << kStubMajorKeyBits));
249 class MajorKeyBits: public BitField<uint32_t, 0, kStubMajorKeyBits> {}; 250 class MajorKeyBits: public BitField<uint32_t, 0, kStubMajorKeyBits> {};
250 class MinorKeyBits: public BitField<uint32_t, 251 class MinorKeyBits: public BitField<uint32_t,
251 kStubMajorKeyBits, kStubMinorKeyBits> {}; // NOLINT 252 kStubMajorKeyBits, kStubMinorKeyBits> {}; // NOLINT
252 253
253 friend class BreakPointIterator; 254 friend class BreakPointIterator;
254 }; 255 };
255 256
256 257
257 class PlatformCodeStub : public CodeStub { 258 class PlatformCodeStub : public CodeStub {
258 public: 259 public:
(...skipping 2089 matching lines...) Expand 10 before | Expand all | Expand 10 after
2348 int MinorKey() { return 0; } 2349 int MinorKey() { return 0; }
2349 2350
2350 void Generate(MacroAssembler* masm); 2351 void Generate(MacroAssembler* masm);
2351 2352
2352 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); 2353 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub);
2353 }; 2354 };
2354 2355
2355 } } // namespace v8::internal 2356 } } // namespace v8::internal
2356 2357
2357 #endif // V8_CODE_STUBS_H_ 2358 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698