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/compiler/js-intrinsic-lowering.h" | 5 #include "src/compiler/js-intrinsic-lowering.h" |
6 | 6 |
7 #include <stack> | 7 #include <stack> |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/compiler/access-builder.h" | 10 #include "src/compiler/access-builder.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
49 case Runtime::kInlineGeneratorGetResumeMode: | 49 case Runtime::kInlineGeneratorGetResumeMode: |
50 return ReduceGeneratorGetResumeMode(node); | 50 return ReduceGeneratorGetResumeMode(node); |
51 case Runtime::kInlineGeneratorGetContext: | 51 case Runtime::kInlineGeneratorGetContext: |
52 return ReduceGeneratorGetContext(node); | 52 return ReduceGeneratorGetContext(node); |
53 case Runtime::kInlineIsArray: | 53 case Runtime::kInlineIsArray: |
54 return ReduceIsInstanceType(node, JS_ARRAY_TYPE); | 54 return ReduceIsInstanceType(node, JS_ARRAY_TYPE); |
55 case Runtime::kInlineIsTypedArray: | 55 case Runtime::kInlineIsTypedArray: |
56 return ReduceIsInstanceType(node, JS_TYPED_ARRAY_TYPE); | 56 return ReduceIsInstanceType(node, JS_TYPED_ARRAY_TYPE); |
57 case Runtime::kInlineIsJSProxy: | 57 case Runtime::kInlineIsJSProxy: |
58 return ReduceIsInstanceType(node, JS_PROXY_TYPE); | 58 return ReduceIsInstanceType(node, JS_PROXY_TYPE); |
59 case Runtime::kInlineIsJSMap: | |
60 return ReduceIsInstanceType(node, JS_MAP_TYPE); | |
61 case Runtime::kInlineIsJSSet: | |
62 return ReduceIsInstanceType(node, JS_SET_TYPE); | |
63 case Runtime::kInlineIsJSMapIterator: | |
64 return ReduceIsInstanceType(node, JS_MAP_ITERATOR_TYPE); | |
65 case Runtime::kInlineIsJSSetIterator: | |
66 return ReduceIsInstanceType(node, JS_SET_ITERATOR_TYPE); | |
67 case Runtime::kInlineIsJSWeakMap: | |
68 return ReduceIsInstanceType(node, JS_WEAK_MAP_TYPE); | |
69 case Runtime::kInlineIsJSWeakSet: | |
70 return ReduceIsInstanceType(node, JS_WEAK_SET_TYPE); | |
rmcilroy
2017/05/05 13:45:31
Does it make sense to add these as intrinsics to t
Benedikt Meurer
2017/05/05 14:00:58
Ideally this code should be obsolete soon with a C
| |
59 case Runtime::kInlineIsJSReceiver: | 71 case Runtime::kInlineIsJSReceiver: |
60 return ReduceIsJSReceiver(node); | 72 return ReduceIsJSReceiver(node); |
61 case Runtime::kInlineIsSmi: | 73 case Runtime::kInlineIsSmi: |
62 return ReduceIsSmi(node); | 74 return ReduceIsSmi(node); |
63 case Runtime::kInlineFixedArrayGet: | 75 case Runtime::kInlineFixedArrayGet: |
64 return ReduceFixedArrayGet(node); | 76 return ReduceFixedArrayGet(node); |
65 case Runtime::kInlineFixedArraySet: | 77 case Runtime::kInlineFixedArraySet: |
66 return ReduceFixedArraySet(node); | 78 return ReduceFixedArraySet(node); |
67 case Runtime::kInlineSubString: | 79 case Runtime::kInlineSubString: |
68 return ReduceSubString(node); | 80 return ReduceSubString(node); |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
494 return jsgraph_->javascript(); | 506 return jsgraph_->javascript(); |
495 } | 507 } |
496 | 508 |
497 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const { | 509 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const { |
498 return jsgraph()->simplified(); | 510 return jsgraph()->simplified(); |
499 } | 511 } |
500 | 512 |
501 } // namespace compiler | 513 } // namespace compiler |
502 } // namespace internal | 514 } // namespace internal |
503 } // namespace v8 | 515 } // namespace v8 |
OLD | NEW |