Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Side by Side Diff: src/compiler/js-intrinsic-lowering.cc

Issue 2814773005: [js] Avoid %_ClassOf for collection builtins. (Closed)
Patch Set: Make debug-evaluate happy. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/debug/debug-evaluate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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:
adamk 2017/05/04 17:31:28 You can also add these to the no-FrameState whitel
Benedikt Meurer 2017/05/04 17:50:53 Good catch, done!
58 return ReduceIsInstanceType(node, JS_GLOBAL_PROXY_TYPE);
57 case Runtime::kInlineIsJSProxy: 59 case Runtime::kInlineIsJSProxy:
58 return ReduceIsInstanceType(node, JS_PROXY_TYPE); 60 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);
59 case Runtime::kInlineIsJSReceiver: 73 case Runtime::kInlineIsJSReceiver:
60 return ReduceIsJSReceiver(node); 74 return ReduceIsJSReceiver(node);
61 case Runtime::kInlineIsSmi: 75 case Runtime::kInlineIsSmi:
62 return ReduceIsSmi(node); 76 return ReduceIsSmi(node);
63 case Runtime::kInlineFixedArrayGet: 77 case Runtime::kInlineFixedArrayGet:
64 return ReduceFixedArrayGet(node); 78 return ReduceFixedArrayGet(node);
65 case Runtime::kInlineFixedArraySet: 79 case Runtime::kInlineFixedArraySet:
66 return ReduceFixedArraySet(node); 80 return ReduceFixedArraySet(node);
67 case Runtime::kInlineSubString: 81 case Runtime::kInlineSubString:
68 return ReduceSubString(node); 82 return ReduceSubString(node);
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 return jsgraph_->javascript(); 493 return jsgraph_->javascript();
480 } 494 }
481 495
482 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const { 496 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const {
483 return jsgraph()->simplified(); 497 return jsgraph()->simplified();
484 } 498 }
485 499
486 } // namespace compiler 500 } // namespace compiler
487 } // namespace internal 501 } // namespace internal
488 } // namespace v8 502 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/debug/debug-evaluate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698