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

Side by Side Diff: src/ic/call-optimization.h

Issue 935603002: Stop using HeapType in IC and Crankshaft (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « src/ic/arm64/ic-compiler-arm64.cc ('k') | src/ic/call-optimization.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_IC_CALL_OPTIMIZATION_H_ 5 #ifndef V8_IC_CALL_OPTIMIZATION_H_
6 #define V8_IC_CALL_OPTIMIZATION_H_ 6 #define V8_IC_CALL_OPTIMIZATION_H_
7 7
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/ic/access-compiler.h" 9 #include "src/ic/access-compiler.h"
10 #include "src/macro-assembler.h" 10 #include "src/macro-assembler.h"
(...skipping 28 matching lines...) Expand all
39 enum HolderLookup { kHolderNotFound, kHolderIsReceiver, kHolderFound }; 39 enum HolderLookup { kHolderNotFound, kHolderIsReceiver, kHolderFound };
40 Handle<JSObject> LookupHolderOfExpectedType( 40 Handle<JSObject> LookupHolderOfExpectedType(
41 Handle<Map> receiver_map, HolderLookup* holder_lookup, 41 Handle<Map> receiver_map, HolderLookup* holder_lookup,
42 int* holder_depth_in_prototype_chain = NULL) const; 42 int* holder_depth_in_prototype_chain = NULL) const;
43 43
44 // Check if the api holder is between the receiver and the holder. 44 // Check if the api holder is between the receiver and the holder.
45 bool IsCompatibleReceiver(Handle<Object> receiver, 45 bool IsCompatibleReceiver(Handle<Object> receiver,
46 Handle<JSObject> holder) const; 46 Handle<JSObject> holder) const;
47 47
48 // Check if the api holder is between the receiver and the holder. 48 // Check if the api holder is between the receiver and the holder.
49 bool IsCompatibleReceiverType(Handle<Map> receiver_map, 49 bool IsCompatibleReceiverMap(Handle<Map> receiver_map,
50 Handle<JSObject> holder) const; 50 Handle<JSObject> holder) const;
51 51
52 private: 52 private:
53 void Initialize(Handle<JSFunction> function); 53 void Initialize(Handle<JSFunction> function);
54 54
55 // Determines whether the given function can be called using the 55 // Determines whether the given function can be called using the
56 // fast api call builtin. 56 // fast api call builtin.
57 void AnalyzePossibleApiFunction(Handle<JSFunction> function); 57 void AnalyzePossibleApiFunction(Handle<JSFunction> function);
58 58
59 Handle<JSFunction> constant_function_; 59 Handle<JSFunction> constant_function_;
60 bool is_simple_api_call_; 60 bool is_simple_api_call_;
61 Handle<FunctionTemplateInfo> expected_receiver_type_; 61 Handle<FunctionTemplateInfo> expected_receiver_type_;
62 Handle<CallHandlerInfo> api_call_info_; 62 Handle<CallHandlerInfo> api_call_info_;
63 }; 63 };
64 } 64 }
65 } // namespace v8::internal 65 } // namespace v8::internal
66 66
67 #endif // V8_IC_CALL_OPTIMIZATION_H_ 67 #endif // V8_IC_CALL_OPTIMIZATION_H_
OLDNEW
« no previous file with comments | « src/ic/arm64/ic-compiler-arm64.cc ('k') | src/ic/call-optimization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698