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

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

Issue 1191283003: [date] Use explicit control flow to replace %_ThrowIfNotADate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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 | « src/arm64/full-codegen-arm64.cc ('k') | src/compiler/linkage.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/compiler/access-builder.h" 9 #include "src/compiler/access-builder.h"
10 #include "src/compiler/js-graph.h" 10 #include "src/compiler/js-graph.h"
(...skipping 28 matching lines...) Expand all
39 case Runtime::kInlineDoubleHi: 39 case Runtime::kInlineDoubleHi:
40 return ReduceDoubleHi(node); 40 return ReduceDoubleHi(node);
41 case Runtime::kInlineDoubleLo: 41 case Runtime::kInlineDoubleLo:
42 return ReduceDoubleLo(node); 42 return ReduceDoubleLo(node);
43 case Runtime::kInlineHeapObjectGetMap: 43 case Runtime::kInlineHeapObjectGetMap:
44 return ReduceHeapObjectGetMap(node); 44 return ReduceHeapObjectGetMap(node);
45 case Runtime::kInlineIncrementStatsCounter: 45 case Runtime::kInlineIncrementStatsCounter:
46 return ReduceIncrementStatsCounter(node); 46 return ReduceIncrementStatsCounter(node);
47 case Runtime::kInlineIsArray: 47 case Runtime::kInlineIsArray:
48 return ReduceIsInstanceType(node, JS_ARRAY_TYPE); 48 return ReduceIsInstanceType(node, JS_ARRAY_TYPE);
49 case Runtime::kInlineIsDate:
50 return ReduceIsInstanceType(node, JS_DATE_TYPE);
49 case Runtime::kInlineIsTypedArray: 51 case Runtime::kInlineIsTypedArray:
50 return ReduceIsInstanceType(node, JS_TYPED_ARRAY_TYPE); 52 return ReduceIsInstanceType(node, JS_TYPED_ARRAY_TYPE);
51 case Runtime::kInlineIsFunction: 53 case Runtime::kInlineIsFunction:
52 return ReduceIsInstanceType(node, JS_FUNCTION_TYPE); 54 return ReduceIsInstanceType(node, JS_FUNCTION_TYPE);
53 case Runtime::kInlineIsNonNegativeSmi: 55 case Runtime::kInlineIsNonNegativeSmi:
54 return ReduceIsNonNegativeSmi(node); 56 return ReduceIsNonNegativeSmi(node);
55 case Runtime::kInlineIsRegExp: 57 case Runtime::kInlineIsRegExp:
56 return ReduceIsInstanceType(node, JS_REGEXP_TYPE); 58 return ReduceIsInstanceType(node, JS_REGEXP_TYPE);
57 case Runtime::kInlineIsSmi: 59 case Runtime::kInlineIsSmi:
58 return ReduceIsSmi(node); 60 return ReduceIsSmi(node);
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 } 544 }
543 545
544 546
545 MachineOperatorBuilder* JSIntrinsicLowering::machine() const { 547 MachineOperatorBuilder* JSIntrinsicLowering::machine() const {
546 return jsgraph()->machine(); 548 return jsgraph()->machine();
547 } 549 }
548 550
549 } // namespace compiler 551 } // namespace compiler
550 } // namespace internal 552 } // namespace internal
551 } // namespace v8 553 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698