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

Unified Diff: src/stub-cache.h

Issue 148333003: crankshaft support for api method calls (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/isolate.h ('k') | src/stub-cache.cc » ('j') | src/stub-cache.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/stub-cache.h
diff --git a/src/stub-cache.h b/src/stub-cache.h
index 9cdd77f757b3182c3345d3788010d5231ee11416..1ed5833ce7672edbacefc21055e475e1bbb67fe3 100644
--- a/src/stub-cache.h
+++ b/src/stub-cache.h
@@ -1004,10 +1004,20 @@ class CallOptimization BASE_EMBEDDED {
// prototype chain between the two arguments
// null will be returned if the first argument has that property
// lookup will be set accordingly
+ Handle<Map> LookupHolderOfExpectedType(Handle<Map> receiver_map,
+ Handle<Map> object_map,
+ Handle<Map> holder_map,
+ HolderLookup* holder_lookup) const;
Handle<Map> LookupHolderOfExpectedType(Handle<JSObject> receiver,
Handle<JSObject> object,
Handle<JSObject> holder,
- HolderLookup* holder_lookup) const;
+ HolderLookup* holder_lookup) const {
+ Handle<Map> receiver_map(receiver->map());
+ Handle<Map> object_map(object->map());
+ Handle<Map> holder_map(holder->map());
+ return LookupHolderOfExpectedType(
+ receiver_map, object_map, holder_map, holder_lookup);
+ }
bool IsCompatibleReceiver(Object* receiver) {
ASSERT(is_simple_api_call());
« no previous file with comments | « src/isolate.h ('k') | src/stub-cache.cc » ('j') | src/stub-cache.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698