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

Unified Diff: src/typing-asm.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/typing-asm.h ('k') | src/zone-type-cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/typing-asm.cc
diff --git a/src/typing-asm.cc b/src/typing-asm.cc
index 5198f5918337fa47bfbc502be473d44603469719..d9678846671ce98161f620281a6874a8529f1d67 100644
--- a/src/typing-asm.cc
+++ b/src/typing-asm.cc
@@ -9,16 +9,10 @@
#include "src/ast.h"
#include "src/codegen.h"
#include "src/scopes.h"
-#include "src/zone-type-cache.h"
+#include "src/type-cache.h"
namespace v8 {
namespace internal {
-namespace {
-
-base::LazyInstance<ZoneTypeCache>::type kCache = LAZY_INSTANCE_INITIALIZER;
-
-} // namespace
-
#define FAIL(node, msg) \
do { \
@@ -58,7 +52,7 @@ AsmTyper::AsmTyper(Isolate* isolate, Zone* zone, Script* script,
ZoneAllocationPolicy(zone)),
in_function_(false),
building_function_tables_(false),
- cache_(kCache.Get()) {
+ cache_(TypeCache::Get()) {
InitializeAstVisitor(isolate);
InitializeStdlib();
}
« no previous file with comments | « src/typing-asm.h ('k') | src/zone-type-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698