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

Side by Side Diff: src/stub-cache.h

Issue 6759024: Fix presubmit. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 8 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 StubCache::Entry* first_entry(StubCache::Table table) { 316 StubCache::Entry* first_entry(StubCache::Table table) {
317 switch (table) { 317 switch (table) {
318 case StubCache::kPrimary: return StubCache::primary_; 318 case StubCache::kPrimary: return StubCache::primary_;
319 case StubCache::kSecondary: return StubCache::secondary_; 319 case StubCache::kSecondary: return StubCache::secondary_;
320 } 320 }
321 UNREACHABLE(); 321 UNREACHABLE();
322 return NULL; 322 return NULL;
323 } 323 }
324 324
325 Isolate* isolate() { return isolate_; } 325 Isolate* isolate() { return isolate_; }
326 Heap* heap() { return isolate()->heap(); }; 326 Heap* heap() { return isolate()->heap(); }
327 327
328 private: 328 private:
329 explicit StubCache(Isolate* isolate); 329 explicit StubCache(Isolate* isolate);
330 330
331 friend class Isolate; 331 friend class Isolate;
332 friend class SCTableReference; 332 friend class SCTableReference;
333 static const int kPrimaryTableSize = 2048; 333 static const int kPrimaryTableSize = 2048;
334 static const int kSecondaryTableSize = 512; 334 static const int kSecondaryTableSize = 512;
335 Entry primary_[kPrimaryTableSize]; 335 Entry primary_[kPrimaryTableSize];
336 Entry secondary_[kSecondaryTableSize]; 336 Entry secondary_[kSecondaryTableSize];
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 MUST_USE_RESULT MaybeObject* CompileKeyedStoreStub( 856 MUST_USE_RESULT MaybeObject* CompileKeyedStoreStub(
857 JSObject* receiver, ExternalArrayType array_type, Code::Flags flags); 857 JSObject* receiver, ExternalArrayType array_type, Code::Flags flags);
858 858
859 private: 859 private:
860 MaybeObject* GetCode(Code::Flags flags); 860 MaybeObject* GetCode(Code::Flags flags);
861 }; 861 };
862 862
863 } } // namespace v8::internal 863 } } // namespace v8::internal
864 864
865 #endif // V8_STUB_CACHE_H_ 865 #endif // V8_STUB_CACHE_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698