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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 | 84 |
85 // static | 85 // static |
86 Callable CodeFactory::CompareIC(Isolate* isolate, Token::Value op) { | 86 Callable CodeFactory::CompareIC(Isolate* isolate, Token::Value op) { |
87 Handle<Code> code = CompareIC::GetUninitialized(isolate, op); | 87 Handle<Code> code = CompareIC::GetUninitialized(isolate, op); |
88 return Callable(code, BinaryOpDescriptor(isolate)); | 88 return Callable(code, BinaryOpDescriptor(isolate)); |
89 } | 89 } |
90 | 90 |
91 | 91 |
92 // static | 92 // static |
93 Callable CodeFactory::BinaryOpIC(Isolate* isolate, Token::Value op, | 93 Callable CodeFactory::BinaryOpIC(Isolate* isolate, Token::Value op) { |
94 OverwriteMode mode) { | 94 BinaryOpICStub stub(isolate, op); |
95 BinaryOpICStub stub(isolate, op, mode); | |
96 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 95 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
97 } | 96 } |
98 | 97 |
99 | 98 |
100 // static | 99 // static |
101 Callable CodeFactory::ToBoolean(Isolate* isolate, | 100 Callable CodeFactory::ToBoolean(Isolate* isolate, |
102 ToBooleanStub::ResultMode mode, | 101 ToBooleanStub::ResultMode mode, |
103 ToBooleanStub::Types types) { | 102 ToBooleanStub::Types types) { |
104 ToBooleanStub stub(isolate, mode, types); | 103 ToBooleanStub stub(isolate, mode, types); |
105 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 104 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
(...skipping 24 matching lines...) Expand all Loading... |
130 | 129 |
131 // static | 130 // static |
132 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, | 131 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, |
133 CallFunctionFlags flags) { | 132 CallFunctionFlags flags) { |
134 CallFunctionStub stub(isolate, argc, flags); | 133 CallFunctionStub stub(isolate, argc, flags); |
135 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 134 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
136 } | 135 } |
137 | 136 |
138 } // namespace internal | 137 } // namespace internal |
139 } // namespace v8 | 138 } // namespace v8 |
OLD | NEW |