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

Unified Diff: src/code-stubs.h

Issue 1348773002: [turbofan] Call ArgumentsAccessStub to materialize arguments. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 years, 3 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/code-factory.cc ('k') | src/compiler/js-typed-lowering.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index 32423c218b3765cbe15f9c8766ad9f974e30538d..163fdd880862083f703c908e50695871c7589a17 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -1899,8 +1899,19 @@ class ArgumentsAccessStub: public PlatformCodeStub {
CallInterfaceDescriptor GetCallInterfaceDescriptor() const override {
if (type() == READ_ELEMENT) {
return ArgumentsAccessReadDescriptor(isolate());
+ } else {
+ return ArgumentsAccessNewDescriptor(isolate());
+ }
+ }
+
+ static Type ComputeType(bool is_unmapped, bool has_duplicate_parameters) {
+ if (is_unmapped) {
+ return Type::NEW_STRICT;
+ } else if (has_duplicate_parameters) {
+ return Type::NEW_SLOPPY_SLOW;
+ } else {
+ return Type::NEW_SLOPPY_FAST;
}
- return ContextOnlyDescriptor(isolate());
}
private:
« no previous file with comments | « src/code-factory.cc ('k') | src/compiler/js-typed-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698