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

Side by Side Diff: src/compiler/typer.cc

Issue 1266013006: [stubs] Unify (and optimize) implementation of ToObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add missing support for %_ToObject in TurboFan and Crankshaft. Created 5 years, 4 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/compiler/linkage.cc ('k') | src/contexts.h » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/typer.h" 5 #include "src/compiler/typer.h"
6 6
7 #include "src/base/flags.h" 7 #include "src/base/flags.h"
8 #include "src/base/lazy-instance.h" 8 #include "src/base/lazy-instance.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1552 case Runtime::kInlineMathSqrt: 1552 case Runtime::kInlineMathSqrt:
1553 case Runtime::kInlineMathAcos: 1553 case Runtime::kInlineMathAcos:
1554 case Runtime::kInlineMathAsin: 1554 case Runtime::kInlineMathAsin:
1555 case Runtime::kInlineMathAtan: 1555 case Runtime::kInlineMathAtan:
1556 case Runtime::kInlineMathAtan2: 1556 case Runtime::kInlineMathAtan2:
1557 return Bounds(Type::None(zone()), Type::Number()); 1557 return Bounds(Type::None(zone()), Type::Number());
1558 case Runtime::kInlineMathClz32: 1558 case Runtime::kInlineMathClz32:
1559 return Bounds(Type::None(), Type::Range(0, 32, zone())); 1559 return Bounds(Type::None(), Type::Range(0, 32, zone()));
1560 case Runtime::kInlineStringGetLength: 1560 case Runtime::kInlineStringGetLength:
1561 return Bounds(Type::None(), Type::Range(0, String::kMaxLength, zone())); 1561 return Bounds(Type::None(), Type::Range(0, String::kMaxLength, zone()));
1562 case Runtime::kInlineToObject:
1563 return Bounds(Type::None(), Type::Receiver());
1562 default: 1564 default:
1563 break; 1565 break;
1564 } 1566 }
1565 return Bounds::Unbounded(zone()); 1567 return Bounds::Unbounded(zone());
1566 } 1568 }
1567 1569
1568 1570
1569 Bounds Typer::Visitor::TypeJSForInNext(Node* node) { 1571 Bounds Typer::Visitor::TypeJSForInNext(Node* node) {
1570 return Bounds(Type::None(zone()), 1572 return Bounds(Type::None(zone()),
1571 Type::Union(Type::Name(), Type::Undefined(), zone())); 1573 Type::Union(Type::Name(), Type::Undefined(), zone()));
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
2371 TYPED_ARRAYS(TYPED_ARRAY_CASE) 2373 TYPED_ARRAYS(TYPED_ARRAY_CASE)
2372 #undef TYPED_ARRAY_CASE 2374 #undef TYPED_ARRAY_CASE
2373 } 2375 }
2374 } 2376 }
2375 return Type::Constant(value, zone()); 2377 return Type::Constant(value, zone());
2376 } 2378 }
2377 2379
2378 } // namespace compiler 2380 } // namespace compiler
2379 } // namespace internal 2381 } // namespace internal
2380 } // namespace v8 2382 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/linkage.cc ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698