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

Unified Diff: src/ic/access-compiler.cc

Issue 2389313002: Avoid static initializers in PropertyAccessCompiler (Closed)
Patch Set: Ports Created 4 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/ic/access-compiler.h ('k') | src/ic/access-compiler-data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/access-compiler.cc
diff --git a/src/ic/access-compiler.cc b/src/ic/access-compiler.cc
index bb6b5e50d9a4d19a4601399cd2f4d4da79da88b5..d92f9c0c53ae7b2b160de7271f638905eeb1aa42 100644
--- a/src/ic/access-compiler.cc
+++ b/src/ic/access-compiler.cc
@@ -4,7 +4,6 @@
#include "src/ic/access-compiler.h"
-
namespace v8 {
namespace internal {
@@ -42,13 +41,17 @@ void PropertyAccessCompiler::TailCallBuiltin(MacroAssembler* masm,
GenerateTailCall(masm, code);
}
-
-Register* PropertyAccessCompiler::GetCallingConvention(Code::Kind kind) {
+Register* PropertyAccessCompiler::GetCallingConvention(Isolate* isolate,
+ Code::Kind kind) {
+ AccessCompilerData* data = isolate->access_compiler_data();
+ if (!data->IsInitialized()) {
+ InitializePlatformSpecific(data);
+ }
if (kind == Code::LOAD_IC || kind == Code::KEYED_LOAD_IC) {
- return load_calling_convention();
+ return data->load_calling_convention();
}
DCHECK(kind == Code::STORE_IC || kind == Code::KEYED_STORE_IC);
- return store_calling_convention();
+ return data->store_calling_convention();
}
« no previous file with comments | « src/ic/access-compiler.h ('k') | src/ic/access-compiler-data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698