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

Unified Diff: src/compiler/typer.cc

Issue 1409763004: [types] Use the TypeCache consistently for common types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 | « src/compiler/typer.h ('k') | src/type-cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/typer.cc
diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc
index eef43257b2720ce04937b27a268161e2769ded36..6c80446ce921da7e1906cd4dfe3e74e2bca6ee61 100644
--- a/src/compiler/typer.cc
+++ b/src/compiler/typer.cc
@@ -5,7 +5,6 @@
#include "src/compiler/typer.h"
#include "src/base/flags.h"
-#include "src/base/lazy-instance.h"
#include "src/bootstrapper.h"
#include "src/compilation-dependencies.h"
#include "src/compiler/common-operator.h"
@@ -15,19 +14,12 @@
#include "src/compiler/node-properties.h"
#include "src/compiler/simplified-operator.h"
#include "src/objects-inl.h"
-#include "src/zone-type-cache.h"
+#include "src/type-cache.h"
namespace v8 {
namespace internal {
namespace compiler {
-namespace {
-
-base::LazyInstance<ZoneTypeCache>::type kCache = LAZY_INSTANCE_INITIALIZER;
-
-} // namespace
-
-
class Typer::Decorator final : public GraphDecorator {
public:
explicit Decorator(Typer* typer) : typer_(typer) {}
@@ -47,7 +39,7 @@ Typer::Typer(Isolate* isolate, Graph* graph, Flags flags,
dependencies_(dependencies),
function_type_(function_type),
decorator_(nullptr),
- cache_(kCache.Get()) {
+ cache_(TypeCache::Get()) {
Zone* zone = this->zone();
Factory* const factory = isolate->factory();
« no previous file with comments | « src/compiler/typer.h ('k') | src/type-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698