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

Unified Diff: src/code-stubs.cc

Issue 2511603002: [ic] Support data handlers in LoadGlobalIC. (Closed)
Patch Set: Addressing comments and fix Created 4 years, 1 month 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
Index: src/code-stubs.cc
diff --git a/src/code-stubs.cc b/src/code-stubs.cc
index 8acd1f8ec54b8a3eec889c1219b52fb02107e01f..f0f38ebe9376962df326dab42cc1abff0f67958a 100644
--- a/src/code-stubs.cc
+++ b/src/code-stubs.cc
@@ -439,9 +439,6 @@ Handle<Code> TurboFanCodeStub::GenerateCode() {
ACCESSOR_ASSEMBLER(LoadIC)
ACCESSOR_ASSEMBLER(LoadICTrampoline)
-ACCESSOR_ASSEMBLER(LoadICProtoArray)
-ACCESSOR_ASSEMBLER(LoadGlobalIC)
-ACCESSOR_ASSEMBLER(LoadGlobalICTrampoline)
ACCESSOR_ASSEMBLER(KeyedLoadICTF)
ACCESSOR_ASSEMBLER(KeyedLoadICTrampolineTF)
ACCESSOR_ASSEMBLER(StoreIC)
@@ -449,16 +446,28 @@ ACCESSOR_ASSEMBLER(StoreICTrampoline)
#undef ACCESSOR_ASSEMBLER
+void LoadICProtoArrayStub::GenerateAssembly(CodeAssemblerState* state) const {
+ AccessorAssembler::GenerateLoadICProtoArray(
+ state, throw_reference_error_if_nonexistent());
+}
+
+void LoadGlobalICStub::GenerateAssembly(CodeAssemblerState* state) const {
+ AccessorAssembler::GenerateLoadGlobalIC(state, typeof_mode());
+}
+
+void LoadGlobalICTrampolineStub::GenerateAssembly(
+ CodeAssemblerState* state) const {
+ AccessorAssembler::GenerateLoadGlobalICTrampoline(state, typeof_mode());
+}
+
void KeyedStoreICTrampolineTFStub::GenerateAssembly(
CodeAssemblerState* state) const {
- LanguageMode language_mode = StoreICState::GetLanguageMode(GetExtraICState());
- AccessorAssembler::GenerateKeyedStoreICTrampolineTF(state, language_mode);
+ AccessorAssembler::GenerateKeyedStoreICTrampolineTF(state, language_mode());
}
void KeyedStoreICTFStub::GenerateAssembly(
compiler::CodeAssemblerState* state) const {
- LanguageMode language_mode = StoreICState::GetLanguageMode(GetExtraICState());
- AccessorAssembler::GenerateKeyedStoreICTF(state, language_mode);
+ AccessorAssembler::GenerateKeyedStoreICTF(state, language_mode());
}
void StoreMapStub::GenerateAssembly(compiler::CodeAssemblerState* state) const {
« no previous file with comments | « src/code-stubs.h ('k') | src/full-codegen/full-codegen.cc » ('j') | src/ic/accessor-assembler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698