OLD | NEW |
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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/ic/ic.h" | 9 #include "src/ic/ic.h" |
10 | 10 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 InlineCacheState initialization_state) { | 100 InlineCacheState initialization_state) { |
101 return Callable(KeyedStoreIC::initialize_stub(isolate, language_mode, | 101 return Callable(KeyedStoreIC::initialize_stub(isolate, language_mode, |
102 initialization_state), | 102 initialization_state), |
103 StoreDescriptor(isolate)); | 103 StoreDescriptor(isolate)); |
104 } | 104 } |
105 | 105 |
106 | 106 |
107 // static | 107 // static |
108 Callable CodeFactory::CompareIC(Isolate* isolate, Token::Value op) { | 108 Callable CodeFactory::CompareIC(Isolate* isolate, Token::Value op) { |
109 Handle<Code> code = CompareIC::GetUninitialized(isolate, op); | 109 Handle<Code> code = CompareIC::GetUninitialized(isolate, op); |
110 return Callable(code, BinaryOpDescriptor(isolate)); | 110 return Callable(code, CompareDescriptor(isolate)); |
111 } | 111 } |
112 | 112 |
113 | 113 |
114 // static | 114 // static |
115 Callable CodeFactory::BinaryOpIC(Isolate* isolate, Token::Value op) { | 115 Callable CodeFactory::BinaryOpIC(Isolate* isolate, Token::Value op) { |
116 BinaryOpICStub stub(isolate, op); | 116 BinaryOpICStub stub(isolate, op); |
117 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 117 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
118 } | 118 } |
119 | 119 |
120 | 120 |
(...skipping 30 matching lines...) Expand all Loading... |
151 | 151 |
152 // static | 152 // static |
153 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, | 153 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, |
154 CallFunctionFlags flags) { | 154 CallFunctionFlags flags) { |
155 CallFunctionStub stub(isolate, argc, flags); | 155 CallFunctionStub stub(isolate, argc, flags); |
156 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 156 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
157 } | 157 } |
158 | 158 |
159 } // namespace internal | 159 } // namespace internal |
160 } // namespace v8 | 160 } // namespace v8 |
OLD | NEW |