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

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

Issue 1756863002: [wasm] Int64Lowering of I64Shl on ia32. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Forgot to turn off the test for arm. Created 4 years, 9 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/raw-machine-assembler.h ('k') | src/compiler/verifier.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 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/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/compilation-dependencies.h" 9 #include "src/compilation-dependencies.h"
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 2423 matching lines...) Expand 10 before | Expand all | Expand 10 after
2434 } 2434 }
2435 2435
2436 Type* Typer::Visitor::TypeCheckedLoad(Node* node) { return Type::Any(); } 2436 Type* Typer::Visitor::TypeCheckedLoad(Node* node) { return Type::Any(); }
2437 2437
2438 2438
2439 Type* Typer::Visitor::TypeCheckedStore(Node* node) { 2439 Type* Typer::Visitor::TypeCheckedStore(Node* node) {
2440 UNREACHABLE(); 2440 UNREACHABLE();
2441 return nullptr; 2441 return nullptr;
2442 } 2442 }
2443 2443
2444 Type* Typer::Visitor::TypeWord32PairShl(Node* node) { return Type::Internal(); }
2444 2445
2445 // Heap constants. 2446 // Heap constants.
2446 2447
2447 2448
2448 Type* Typer::Visitor::TypeConstant(Handle<Object> value) { 2449 Type* Typer::Visitor::TypeConstant(Handle<Object> value) {
2449 if (value->IsJSTypedArray()) { 2450 if (value->IsJSTypedArray()) {
2450 switch (JSTypedArray::cast(*value)->type()) { 2451 switch (JSTypedArray::cast(*value)->type()) {
2451 #define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \ 2452 #define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \
2452 case kExternal##Type##Array: \ 2453 case kExternal##Type##Array: \
2453 return typer_->cache_.k##Type##Array; 2454 return typer_->cache_.k##Type##Array;
2454 TYPED_ARRAYS(TYPED_ARRAY_CASE) 2455 TYPED_ARRAYS(TYPED_ARRAY_CASE)
2455 #undef TYPED_ARRAY_CASE 2456 #undef TYPED_ARRAY_CASE
2456 } 2457 }
2457 } 2458 }
2458 if (Type::IsInteger(*value)) { 2459 if (Type::IsInteger(*value)) {
2459 return Type::Range(value->Number(), value->Number(), zone()); 2460 return Type::Range(value->Number(), value->Number(), zone());
2460 } 2461 }
2461 return Type::Constant(value, zone()); 2462 return Type::Constant(value, zone());
2462 } 2463 }
2463 2464
2464 } // namespace compiler 2465 } // namespace compiler
2465 } // namespace internal 2466 } // namespace internal
2466 } // namespace v8 2467 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/raw-machine-assembler.h ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698