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

Unified Diff: src/arm/code-stubs-arm.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
« no previous file with comments | « no previous file | src/code-stubs.h » ('j') | src/code-stubs.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm/code-stubs-arm.cc
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc
index ff754ec095cdd389a8a12882b4b4029b6984a4da..e5e74797ef5d9bcb45d04d3dde9835b252285c01 100644
--- a/src/arm/code-stubs-arm.cc
+++ b/src/arm/code-stubs-arm.cc
@@ -258,6 +258,26 @@ void StoreGlobalStub::InitializeInterfaceDescriptor(
}
+void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor(
+ Isolate* isolate,
+ CodeStubInterfaceDescriptor* descriptor) {
+ static Register registers[] = { r0, r3, r1, r2 };
+ descriptor->register_param_count_ = 4;
+ descriptor->register_params_ = registers;
+ switch (strict_mode_) {
+ case kNonStrictMode:
+ descriptor->deoptimization_handler_ = Runtime::FunctionForId(
danno 2013/07/10 09:52:37 Yikes. In general, you should access members of th
Benedikt Meurer 2013/07/10 12:23:09 Done.
+ Runtime::kElementsTransitionAndStoreNonStrict)->entry;
+ break;
+
+ case kStrictMode:
+ descriptor->deoptimization_handler_ = Runtime::FunctionForId(
+ Runtime::kElementsTransitionAndStoreStrict)->entry;
+ break;
+ }
+}
+
+
#define __ ACCESS_MASM(masm)
« no previous file with comments | « no previous file | src/code-stubs.h » ('j') | src/code-stubs.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698