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

Unified Diff: src/compiler/typer.h

Issue 1121573004: Precise shift right result type derivation for all int32 input ranges. Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Split out the shift-right integer result type derivation. Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/typer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/typer.h
diff --git a/src/compiler/typer.h b/src/compiler/typer.h
index 4c04ddb973b3404b85a2522fc9c75003041d0b10..852522f658c79d5f6b5d7b93c13d385cbe1b2669 100644
--- a/src/compiler/typer.h
+++ b/src/compiler/typer.h
@@ -16,6 +16,15 @@ namespace compiler {
class LazyTypeCache;
+struct IntType {
+ int32_t min;
+ int32_t max;
+ IntType(int32_t min, int32_t max) : min(min), max(max) {}
+};
+
+IntType JSShiftRightIntType(IntType lhs, IntType rhs);
+
+
class Typer {
public:
Typer(Isolate* isolate, Graph* graph, MaybeHandle<Context> context);
« no previous file with comments | « no previous file | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698