OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/interpreter/interpreter-intrinsics.h" | 5 #include "src/interpreter/interpreter-intrinsics.h" |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 | 231 |
232 return __ CallStubN(callable, args); | 232 return __ CallStubN(callable, args); |
233 } | 233 } |
234 | 234 |
235 Node* IntrinsicsHelper::HasProperty(Node* input, Node* arg_count, | 235 Node* IntrinsicsHelper::HasProperty(Node* input, Node* arg_count, |
236 Node* context) { | 236 Node* context) { |
237 return IntrinsicAsStubCall(input, context, | 237 return IntrinsicAsStubCall(input, context, |
238 CodeFactory::HasProperty(isolate())); | 238 CodeFactory::HasProperty(isolate())); |
239 } | 239 } |
240 | 240 |
241 Node* IntrinsicsHelper::MathPow(Node* input, Node* arg_count, Node* context) { | |
242 return IntrinsicAsStubCall(input, context, CodeFactory::MathPow(isolate())); | |
243 } | |
244 | |
245 Node* IntrinsicsHelper::NewObject(Node* input, Node* arg_count, Node* context) { | 241 Node* IntrinsicsHelper::NewObject(Node* input, Node* arg_count, Node* context) { |
246 return IntrinsicAsStubCall(input, context, | 242 return IntrinsicAsStubCall(input, context, |
247 CodeFactory::FastNewObject(isolate())); | 243 CodeFactory::FastNewObject(isolate())); |
248 } | 244 } |
249 | 245 |
250 Node* IntrinsicsHelper::NumberToString(Node* input, Node* arg_count, | 246 Node* IntrinsicsHelper::NumberToString(Node* input, Node* arg_count, |
251 Node* context) { | 247 Node* context) { |
252 return IntrinsicAsStubCall(input, context, | 248 return IntrinsicAsStubCall(input, context, |
253 CodeFactory::NumberToString(isolate())); | 249 CodeFactory::NumberToString(isolate())); |
254 } | 250 } |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 Node* comparison = __ Word32Equal(actual, __ Int32Constant(expected)); | 345 Node* comparison = __ Word32Equal(actual, __ Int32Constant(expected)); |
350 __ GotoIf(comparison, &match); | 346 __ GotoIf(comparison, &match); |
351 __ Abort(kWrongArgumentCountForInvokeIntrinsic); | 347 __ Abort(kWrongArgumentCountForInvokeIntrinsic); |
352 __ Goto(&match); | 348 __ Goto(&match); |
353 __ Bind(&match); | 349 __ Bind(&match); |
354 } | 350 } |
355 | 351 |
356 } // namespace interpreter | 352 } // namespace interpreter |
357 } // namespace internal | 353 } // namespace internal |
358 } // namespace v8 | 354 } // namespace v8 |
OLD | NEW |