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

Unified Diff: src/mips/code-stubs-mips.cc

Issue 18881004: Turn ElementsTransitionAndStore stub into a HydrogenCodeStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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
Index: src/mips/code-stubs-mips.cc
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc
index 29178eb98a5343caa760831e68b74db025ec9f0c..bb57078a6c7f2f866275da203aa5ed9b4c8d50b8 100644
--- a/src/mips/code-stubs-mips.cc
+++ b/src/mips/code-stubs-mips.cc
@@ -259,6 +259,26 @@ void StoreGlobalStub::InitializeInterfaceDescriptor(
}
+void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor(
+ Isolate* isolate,
+ CodeStubInterfaceDescriptor* descriptor) {
+ static Register registers[] = { a0, a3, a1, a2 };
+ descriptor->register_param_count_ = 4;
+ descriptor->register_params_ = registers;
+ switch (strict_mode_) {
+ case kNonStrictMode:
+ descriptor->deoptimization_handler_ = Runtime::FunctionForId(
+ Runtime::kElementsTransitionAndStoreNonStrict)->entry;
+ break;
+
+ case kStrictMode:
+ descriptor->deoptimization_handler_ = Runtime::FunctionForId(
+ Runtime::kElementsTransitionAndStoreStrict)->entry;
+ break;
+ }
+}
+
+
#define __ ACCESS_MASM(masm)
« src/code-stubs-hydrogen.cc ('K') | « src/ia32/code-stubs-ia32.cc ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698