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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 case Runtime::kInlineAsyncGeneratorResolve: | 47 case Runtime::kInlineAsyncGeneratorResolve: |
48 return ReduceAsyncGeneratorResolve(node); | 48 return ReduceAsyncGeneratorResolve(node); |
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::kInlineIsJSGlobalProxy: | |
58 return ReduceIsInstanceType(node, JS_GLOBAL_PROXY_TYPE); | |
59 case Runtime::kInlineIsJSProxy: | 57 case Runtime::kInlineIsJSProxy: |
60 return ReduceIsInstanceType(node, JS_PROXY_TYPE); | 58 return ReduceIsInstanceType(node, JS_PROXY_TYPE); |
61 case Runtime::kInlineIsJSMap: | |
62 return ReduceIsInstanceType(node, JS_MAP_TYPE); | |
63 case Runtime::kInlineIsJSSet: | |
64 return ReduceIsInstanceType(node, JS_SET_TYPE); | |
65 case Runtime::kInlineIsJSMapIterator: | |
66 return ReduceIsInstanceType(node, JS_MAP_ITERATOR_TYPE); | |
67 case Runtime::kInlineIsJSSetIterator: | |
68 return ReduceIsInstanceType(node, JS_SET_ITERATOR_TYPE); | |
69 case Runtime::kInlineIsJSWeakMap: | |
70 return ReduceIsInstanceType(node, JS_WEAK_MAP_TYPE); | |
71 case Runtime::kInlineIsJSWeakSet: | |
72 return ReduceIsInstanceType(node, JS_WEAK_SET_TYPE); | |
73 case Runtime::kInlineIsJSReceiver: | 59 case Runtime::kInlineIsJSReceiver: |
74 return ReduceIsJSReceiver(node); | 60 return ReduceIsJSReceiver(node); |
75 case Runtime::kInlineIsSmi: | 61 case Runtime::kInlineIsSmi: |
76 return ReduceIsSmi(node); | 62 return ReduceIsSmi(node); |
77 case Runtime::kInlineFixedArrayGet: | 63 case Runtime::kInlineFixedArrayGet: |
78 return ReduceFixedArrayGet(node); | 64 return ReduceFixedArrayGet(node); |
79 case Runtime::kInlineFixedArraySet: | 65 case Runtime::kInlineFixedArraySet: |
80 return ReduceFixedArraySet(node); | 66 return ReduceFixedArraySet(node); |
81 case Runtime::kInlineSubString: | 67 case Runtime::kInlineSubString: |
82 return ReduceSubString(node); | 68 return ReduceSubString(node); |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 return jsgraph_->javascript(); | 494 return jsgraph_->javascript(); |
509 } | 495 } |
510 | 496 |
511 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const { | 497 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const { |
512 return jsgraph()->simplified(); | 498 return jsgraph()->simplified(); |
513 } | 499 } |
514 | 500 |
515 } // namespace compiler | 501 } // namespace compiler |
516 } // namespace internal | 502 } // namespace internal |
517 } // namespace v8 | 503 } // namespace v8 |
OLD | NEW |