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

Side by Side Diff: src/objects.h

Issue 10878007: Index script compilation cache over context (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Respect language flags. Created 8 years, 4 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/debug.cc ('k') | src/objects.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 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 6658 matching lines...) Expand 10 before | Expand all | Expand 10 after
6669 6669
6670 static const int kPrefixSize = 0; 6670 static const int kPrefixSize = 0;
6671 static const int kEntrySize = 2; 6671 static const int kEntrySize = 2;
6672 }; 6672 };
6673 6673
6674 6674
6675 class CompilationCacheTable: public HashTable<CompilationCacheShape, 6675 class CompilationCacheTable: public HashTable<CompilationCacheShape,
6676 HashTableKey*> { 6676 HashTableKey*> {
6677 public: 6677 public:
6678 // Find cached value for a string key, otherwise return null. 6678 // Find cached value for a string key, otherwise return null.
6679 Object* Lookup(String* src); 6679 Object* Lookup(String* src, Context* context);
6680 Object* LookupEval(String* src, 6680 Object* LookupEval(String* src,
6681 Context* context, 6681 Context* context,
6682 LanguageMode language_mode, 6682 LanguageMode language_mode,
6683 int scope_position); 6683 int scope_position);
6684 Object* LookupRegExp(String* source, JSRegExp::Flags flags); 6684 Object* LookupRegExp(String* source, JSRegExp::Flags flags);
6685 MUST_USE_RESULT MaybeObject* Put(String* src, Object* value); 6685 MUST_USE_RESULT MaybeObject* Put(String* src,
6686 Context* context,
6687 Object* value);
6686 MUST_USE_RESULT MaybeObject* PutEval(String* src, 6688 MUST_USE_RESULT MaybeObject* PutEval(String* src,
6687 Context* context, 6689 Context* context,
6688 SharedFunctionInfo* value, 6690 SharedFunctionInfo* value,
6689 int scope_position); 6691 int scope_position);
6690 MUST_USE_RESULT MaybeObject* PutRegExp(String* src, 6692 MUST_USE_RESULT MaybeObject* PutRegExp(String* src,
6691 JSRegExp::Flags flags, 6693 JSRegExp::Flags flags,
6692 FixedArray* value); 6694 FixedArray* value);
6693 6695
6694 // Remove given value from cache. 6696 // Remove given value from cache.
6695 void Remove(Object* value); 6697 void Remove(Object* value);
(...skipping 2219 matching lines...) Expand 10 before | Expand all | Expand 10 after
8915 } else { 8917 } else {
8916 value &= ~(1 << bit_position); 8918 value &= ~(1 << bit_position);
8917 } 8919 }
8918 return value; 8920 return value;
8919 } 8921 }
8920 }; 8922 };
8921 8923
8922 } } // namespace v8::internal 8924 } } // namespace v8::internal
8923 8925
8924 #endif // V8_OBJECTS_H_ 8926 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698