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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 return IntrinsicAsStubCall(input, context, | 242 return IntrinsicAsStubCall(input, context, |
243 CodeFactory::FastNewObject(isolate())); | 243 CodeFactory::FastNewObject(isolate())); |
244 } | 244 } |
245 | 245 |
246 Node* IntrinsicsHelper::NumberToString(Node* input, Node* arg_count, | 246 Node* IntrinsicsHelper::NumberToString(Node* input, Node* arg_count, |
247 Node* context) { | 247 Node* context) { |
248 return IntrinsicAsStubCall(input, context, | 248 return IntrinsicAsStubCall(input, context, |
249 CodeFactory::NumberToString(isolate())); | 249 CodeFactory::NumberToString(isolate())); |
250 } | 250 } |
251 | 251 |
252 Node* IntrinsicsHelper::RegExpConstructResult(Node* input, Node* arg_count, | |
253 Node* context) { | |
254 return IntrinsicAsStubCall(input, context, | |
255 CodeFactory::RegExpConstructResult(isolate())); | |
256 } | |
257 | |
258 Node* IntrinsicsHelper::RegExpExec(Node* input, Node* arg_count, | 252 Node* IntrinsicsHelper::RegExpExec(Node* input, Node* arg_count, |
259 Node* context) { | 253 Node* context) { |
260 return IntrinsicAsStubCall(input, context, | 254 return IntrinsicAsStubCall(input, context, |
261 CodeFactory::RegExpExec(isolate())); | 255 CodeFactory::RegExpExec(isolate())); |
262 } | 256 } |
263 | 257 |
264 Node* IntrinsicsHelper::SubString(Node* input, Node* arg_count, Node* context) { | 258 Node* IntrinsicsHelper::SubString(Node* input, Node* arg_count, Node* context) { |
265 return IntrinsicAsStubCall(input, context, CodeFactory::SubString(isolate())); | 259 return IntrinsicAsStubCall(input, context, CodeFactory::SubString(isolate())); |
266 } | 260 } |
267 | 261 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 Node* comparison = __ Word32Equal(actual, __ Int32Constant(expected)); | 395 Node* comparison = __ Word32Equal(actual, __ Int32Constant(expected)); |
402 __ GotoIf(comparison, &match); | 396 __ GotoIf(comparison, &match); |
403 __ Abort(kWrongArgumentCountForInvokeIntrinsic); | 397 __ Abort(kWrongArgumentCountForInvokeIntrinsic); |
404 __ Goto(&match); | 398 __ Goto(&match); |
405 __ Bind(&match); | 399 __ Bind(&match); |
406 } | 400 } |
407 | 401 |
408 } // namespace interpreter | 402 } // namespace interpreter |
409 } // namespace internal | 403 } // namespace internal |
410 } // namespace v8 | 404 } // namespace v8 |
OLD | NEW |