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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 } | 262 } |
263 | 263 |
264 Node* IntrinsicsHelper::SubString(Node* input, Node* arg_count, Node* context) { | 264 Node* IntrinsicsHelper::SubString(Node* input, Node* arg_count, Node* context) { |
265 return IntrinsicAsStubCall(input, context, CodeFactory::SubString(isolate())); | 265 return IntrinsicAsStubCall(input, context, CodeFactory::SubString(isolate())); |
266 } | 266 } |
267 | 267 |
268 Node* IntrinsicsHelper::ToString(Node* input, Node* arg_count, Node* context) { | 268 Node* IntrinsicsHelper::ToString(Node* input, Node* arg_count, Node* context) { |
269 return IntrinsicAsStubCall(input, context, CodeFactory::ToString(isolate())); | 269 return IntrinsicAsStubCall(input, context, CodeFactory::ToString(isolate())); |
270 } | 270 } |
271 | 271 |
272 Node* IntrinsicsHelper::ToName(Node* input, Node* arg_count, Node* context) { | |
273 return IntrinsicAsStubCall(input, context, CodeFactory::ToName(isolate())); | |
274 } | |
275 | |
276 Node* IntrinsicsHelper::ToLength(Node* input, Node* arg_count, Node* context) { | 272 Node* IntrinsicsHelper::ToLength(Node* input, Node* arg_count, Node* context) { |
277 return IntrinsicAsStubCall(input, context, CodeFactory::ToLength(isolate())); | 273 return IntrinsicAsStubCall(input, context, CodeFactory::ToLength(isolate())); |
278 } | 274 } |
279 | 275 |
280 Node* IntrinsicsHelper::ToInteger(Node* input, Node* arg_count, Node* context) { | 276 Node* IntrinsicsHelper::ToInteger(Node* input, Node* arg_count, Node* context) { |
281 return IntrinsicAsStubCall(input, context, CodeFactory::ToInteger(isolate())); | 277 return IntrinsicAsStubCall(input, context, CodeFactory::ToInteger(isolate())); |
282 } | 278 } |
283 | 279 |
284 Node* IntrinsicsHelper::ToNumber(Node* input, Node* arg_count, Node* context) { | 280 Node* IntrinsicsHelper::ToNumber(Node* input, Node* arg_count, Node* context) { |
285 return IntrinsicAsStubCall(input, context, CodeFactory::ToNumber(isolate())); | 281 return IntrinsicAsStubCall(input, context, CodeFactory::ToNumber(isolate())); |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 Node* comparison = __ Word32Equal(actual, __ Int32Constant(expected)); | 401 Node* comparison = __ Word32Equal(actual, __ Int32Constant(expected)); |
406 __ GotoIf(comparison, &match); | 402 __ GotoIf(comparison, &match); |
407 __ Abort(kWrongArgumentCountForInvokeIntrinsic); | 403 __ Abort(kWrongArgumentCountForInvokeIntrinsic); |
408 __ Goto(&match); | 404 __ Goto(&match); |
409 __ Bind(&match); | 405 __ Bind(&match); |
410 } | 406 } |
411 | 407 |
412 } // namespace interpreter | 408 } // namespace interpreter |
413 } // namespace internal | 409 } // namespace internal |
414 } // namespace v8 | 410 } // namespace v8 |
OLD | NEW |