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

Unified Diff: src/stub-cache.h

Issue 11415046: Change deprecated semantics of function template signatures. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ported to ARM. Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: src/stub-cache.h
diff --git a/src/stub-cache.h b/src/stub-cache.h
index f858e4722a2ded4868877034f3494977d66cccde..98d218bb52aad3948eb417ac25a618b1235394e5 100644
--- a/src/stub-cache.h
+++ b/src/stub-cache.h
@@ -919,10 +919,11 @@ class CallOptimization BASE_EMBEDDED {
return api_call_info_;
}
- // Returns the depth of the object having the expected type in the
- // prototype chain between the two arguments.
- int GetPrototypeDepthOfExpectedType(Handle<JSObject> object,
- Handle<JSObject> holder) const;
+ bool IsCompatibleReceiver(Handle<Object> receiver) const {
+ ASSERT(is_simple_api_call());
+ return expected_receiver_type_.is_null() ||
+ receiver->IsInstanceOf(*expected_receiver_type_);
+ }
private:
void Initialize(Handle<JSFunction> function);
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/stub-cache.cc » ('j') | test/cctest/test-api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698