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

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

Issue 6759025: Version 3.2.6 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
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 | « src/scanner-base.cc ('k') | src/stub-cache.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 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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 315
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_; }
326 Heap* heap() { return isolate()->heap(); }
325 327
326 private: 328 private:
327 explicit StubCache(Isolate* isolate); 329 explicit StubCache(Isolate* isolate);
328 330
329 friend class Isolate; 331 friend class Isolate;
330 friend class SCTableReference; 332 friend class SCTableReference;
331 static const int kPrimaryTableSize = 2048; 333 static const int kPrimaryTableSize = 2048;
332 static const int kSecondaryTableSize = 512; 334 static const int kSecondaryTableSize = 512;
333 Entry primary_[kPrimaryTableSize]; 335 Entry primary_[kPrimaryTableSize];
334 Entry secondary_[kSecondaryTableSize]; 336 Entry secondary_[kSecondaryTableSize];
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 Register scratch2, 554 Register scratch2,
553 Register scratch3, 555 Register scratch3,
554 String* name, 556 String* name,
555 Label* miss); 557 Label* miss);
556 558
557 static void LookupPostInterceptor(JSObject* holder, 559 static void LookupPostInterceptor(JSObject* holder,
558 String* name, 560 String* name,
559 LookupResult* lookup); 561 LookupResult* lookup);
560 562
561 Isolate* isolate() { return scope_.isolate(); } 563 Isolate* isolate() { return scope_.isolate(); }
564 Heap* heap() { return isolate()->heap(); }
565 Factory* factory() { return isolate()->factory(); }
562 566
563 private: 567 private:
564 HandleScope scope_; 568 HandleScope scope_;
565 MacroAssembler masm_; 569 MacroAssembler masm_;
566 Failure* failure_; 570 Failure* failure_;
567 }; 571 };
568 572
569 573
570 class LoadStubCompiler: public StubCompiler { 574 class LoadStubCompiler: public StubCompiler {
571 public: 575 public:
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 MUST_USE_RESULT MaybeObject* CompileKeyedStoreStub( 856 MUST_USE_RESULT MaybeObject* CompileKeyedStoreStub(
853 JSObject* receiver, ExternalArrayType array_type, Code::Flags flags); 857 JSObject* receiver, ExternalArrayType array_type, Code::Flags flags);
854 858
855 private: 859 private:
856 MaybeObject* GetCode(Code::Flags flags); 860 MaybeObject* GetCode(Code::Flags flags);
857 }; 861 };
858 862
859 } } // namespace v8::internal 863 } } // namespace v8::internal
860 864
861 #endif // V8_STUB_CACHE_H_ 865 #endif // V8_STUB_CACHE_H_
OLDNEW
« no previous file with comments | « src/scanner-base.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698