| 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 args[index++] = context; | 233 args[index++] = context; |
| 234 return __ CallStubN(callable.descriptor(), 1, input_count, args); | 234 return __ CallStubN(callable.descriptor(), 1, input_count, args); |
| 235 } | 235 } |
| 236 | 236 |
| 237 Node* IntrinsicsHelper::HasProperty(Node* input, Node* arg_count, | 237 Node* IntrinsicsHelper::HasProperty(Node* input, Node* arg_count, |
| 238 Node* context) { | 238 Node* context) { |
| 239 return IntrinsicAsStubCall(input, context, | 239 return IntrinsicAsStubCall(input, context, |
| 240 CodeFactory::HasProperty(isolate())); | 240 CodeFactory::HasProperty(isolate())); |
| 241 } | 241 } |
| 242 | 242 |
| 243 Node* IntrinsicsHelper::NewObject(Node* input, Node* arg_count, Node* context) { | |
| 244 return IntrinsicAsStubCall(input, context, | |
| 245 CodeFactory::FastNewObject(isolate())); | |
| 246 } | |
| 247 | |
| 248 Node* IntrinsicsHelper::NumberToString(Node* input, Node* arg_count, | 243 Node* IntrinsicsHelper::NumberToString(Node* input, Node* arg_count, |
| 249 Node* context) { | 244 Node* context) { |
| 250 return IntrinsicAsStubCall(input, context, | 245 return IntrinsicAsStubCall(input, context, |
| 251 CodeFactory::NumberToString(isolate())); | 246 CodeFactory::NumberToString(isolate())); |
| 252 } | 247 } |
| 253 | 248 |
| 254 Node* IntrinsicsHelper::RegExpExec(Node* input, Node* arg_count, | 249 Node* IntrinsicsHelper::RegExpExec(Node* input, Node* arg_count, |
| 255 Node* context) { | 250 Node* context) { |
| 256 return IntrinsicAsStubCall(input, context, | 251 return IntrinsicAsStubCall(input, context, |
| 257 CodeFactory::RegExpExec(isolate())); | 252 CodeFactory::RegExpExec(isolate())); |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 Node* comparison = __ Word32Equal(actual, __ Int32Constant(expected)); | 392 Node* comparison = __ Word32Equal(actual, __ Int32Constant(expected)); |
| 398 __ GotoIf(comparison, &match); | 393 __ GotoIf(comparison, &match); |
| 399 __ Abort(kWrongArgumentCountForInvokeIntrinsic); | 394 __ Abort(kWrongArgumentCountForInvokeIntrinsic); |
| 400 __ Goto(&match); | 395 __ Goto(&match); |
| 401 __ Bind(&match); | 396 __ Bind(&match); |
| 402 } | 397 } |
| 403 | 398 |
| 404 } // namespace interpreter | 399 } // namespace interpreter |
| 405 } // namespace internal | 400 } // namespace internal |
| 406 } // namespace v8 | 401 } // namespace v8 |
| OLD | NEW |