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

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

Issue 2681273002: [turbofan] Utilize the fact that empty string is canonicalized. (Closed)
Patch Set: Feedback. Cleanup. Created 3 years, 10 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-typed-lowering.cc ('k') | src/compiler/typer.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 #ifndef V8_COMPILER_TYPER_H_ 5 #ifndef V8_COMPILER_TYPER_H_
6 #define V8_COMPILER_TYPER_H_ 6 #define V8_COMPILER_TYPER_H_
7 7
8 #include "src/compiler/graph.h" 8 #include "src/compiler/graph.h"
9 #include "src/compiler/operation-typer.h" 9 #include "src/compiler/operation-typer.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 Isolate* isolate() const { return isolate_; } 43 Isolate* isolate() const { return isolate_; }
44 OperationTyper* operation_typer() { return &operation_typer_; } 44 OperationTyper* operation_typer() { return &operation_typer_; }
45 45
46 Isolate* const isolate_; 46 Isolate* const isolate_;
47 Flags const flags_; 47 Flags const flags_;
48 Graph* const graph_; 48 Graph* const graph_;
49 Decorator* decorator_; 49 Decorator* decorator_;
50 TypeCache const& cache_; 50 TypeCache const& cache_;
51 OperationTyper operation_typer_; 51 OperationTyper operation_typer_;
52 52
53 Type* singleton_empty_string_;
53 Type* singleton_false_; 54 Type* singleton_false_;
54 Type* singleton_true_; 55 Type* singleton_true_;
55 Type* singleton_the_hole_;
56 Type* falsish_; 56 Type* falsish_;
57 Type* truish_; 57 Type* truish_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(Typer); 59 DISALLOW_COPY_AND_ASSIGN(Typer);
60 }; 60 };
61 61
62 DEFINE_OPERATORS_FOR_FLAGS(Typer::Flags); 62 DEFINE_OPERATORS_FOR_FLAGS(Typer::Flags);
63 63
64 } // namespace compiler 64 } // namespace compiler
65 } // namespace internal 65 } // namespace internal
66 } // namespace v8 66 } // namespace v8
67 67
68 #endif // V8_COMPILER_TYPER_H_ 68 #endif // V8_COMPILER_TYPER_H_
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698