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

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

Issue 1183213002: Inline code generation for %_IsTypedArray (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: don't remove mips64 EmitIsArray 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/compiler/js-intrinsic-lowering.cc ('k') | src/full-codegen.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/base/flags.h" 5 #include "src/base/flags.h"
6 #include "src/bootstrapper.h" 6 #include "src/bootstrapper.h"
7 #include "src/compiler/graph-reducer.h" 7 #include "src/compiler/graph-reducer.h"
8 #include "src/compiler/js-operator.h" 8 #include "src/compiler/js-operator.h"
9 #include "src/compiler/node.h" 9 #include "src/compiler/node.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 1581 matching lines...) Expand 10 before | Expand all | Expand 10 after
1592 Bounds Typer::Visitor::TypeJSCallFunction(Node* node) { 1592 Bounds Typer::Visitor::TypeJSCallFunction(Node* node) {
1593 return TypeUnaryOp(node, JSCallFunctionTyper); // We ignore argument types. 1593 return TypeUnaryOp(node, JSCallFunctionTyper); // We ignore argument types.
1594 } 1594 }
1595 1595
1596 1596
1597 Bounds Typer::Visitor::TypeJSCallRuntime(Node* node) { 1597 Bounds Typer::Visitor::TypeJSCallRuntime(Node* node) {
1598 switch (CallRuntimeParametersOf(node->op()).id()) { 1598 switch (CallRuntimeParametersOf(node->op()).id()) {
1599 case Runtime::kInlineIsSmi: 1599 case Runtime::kInlineIsSmi:
1600 case Runtime::kInlineIsNonNegativeSmi: 1600 case Runtime::kInlineIsNonNegativeSmi:
1601 case Runtime::kInlineIsArray: 1601 case Runtime::kInlineIsArray:
1602 case Runtime::kInlineIsTypedArray:
1602 case Runtime::kInlineIsMinusZero: 1603 case Runtime::kInlineIsMinusZero:
1603 case Runtime::kInlineIsFunction: 1604 case Runtime::kInlineIsFunction:
1604 case Runtime::kInlineIsRegExp: 1605 case Runtime::kInlineIsRegExp:
1605 return Bounds(Type::None(zone()), Type::Boolean(zone())); 1606 return Bounds(Type::None(zone()), Type::Boolean(zone()));
1606 case Runtime::kInlineDoubleLo: 1607 case Runtime::kInlineDoubleLo:
1607 case Runtime::kInlineDoubleHi: 1608 case Runtime::kInlineDoubleHi:
1608 return Bounds(Type::None(zone()), Type::Signed32()); 1609 return Bounds(Type::None(zone()), Type::Signed32());
1609 case Runtime::kInlineConstructDouble: 1610 case Runtime::kInlineConstructDouble:
1610 case Runtime::kInlineDateField: 1611 case Runtime::kInlineDateField:
1611 case Runtime::kInlineMathFloor: 1612 case Runtime::kInlineMathFloor:
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
2431 TYPED_ARRAYS(TYPED_ARRAY_CASE) 2432 TYPED_ARRAYS(TYPED_ARRAY_CASE)
2432 #undef TYPED_ARRAY_CASE 2433 #undef TYPED_ARRAY_CASE
2433 } 2434 }
2434 } 2435 }
2435 return Type::Constant(value, zone()); 2436 return Type::Constant(value, zone());
2436 } 2437 }
2437 2438
2438 } // namespace compiler 2439 } // namespace compiler
2439 } // namespace internal 2440 } // namespace internal
2440 } // namespace v8 2441 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-intrinsic-lowering.cc ('k') | src/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698