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

Side by Side Diff: src/objects.cc

Issue 2692753004: [turbofan] escape analysis supports arguments object and rest elements (Closed)
Patch Set: replaced obscure for-loop Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/objects.h" 5 #include "src/objects.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <iomanip> 8 #include <iomanip>
9 #include <memory> 9 #include <memory>
10 #include <sstream> 10 #include <sstream>
(...skipping 14339 matching lines...) Expand 10 before | Expand all | Expand 10 after
14350 << ")}"; 14350 << ")}";
14351 break; 14351 break;
14352 } 14352 }
14353 14353
14354 case Translation::DUPLICATED_OBJECT: { 14354 case Translation::DUPLICATED_OBJECT: {
14355 int object_index = iterator.Next(); 14355 int object_index = iterator.Next();
14356 os << "{object_index=" << object_index << "}"; 14356 os << "{object_index=" << object_index << "}";
14357 break; 14357 break;
14358 } 14358 }
14359 14359
14360 case Translation::ARGUMENTS_ELEMENTS: {
14361 os << "{arguments elements}";
Jarin 2017/02/15 16:17:15 Should not this also print the 'skip' argument? Co
14362 break;
14363 }
14364
14360 case Translation::ARGUMENTS_OBJECT: 14365 case Translation::ARGUMENTS_OBJECT:
14361 case Translation::CAPTURED_OBJECT: { 14366 case Translation::CAPTURED_OBJECT: {
14362 int args_length = iterator.Next(); 14367 int args_length = iterator.Next();
14363 os << "{length=" << args_length << "}"; 14368 os << "{length=" << args_length << "}";
14364 break; 14369 break;
14365 } 14370 }
14366 } 14371 }
14367 os << "\n"; 14372 os << "\n";
14368 } 14373 }
14369 } 14374 }
(...skipping 5700 matching lines...) Expand 10 before | Expand all | Expand 10 after
20070 // depend on this. 20075 // depend on this.
20071 return DICTIONARY_ELEMENTS; 20076 return DICTIONARY_ELEMENTS;
20072 } 20077 }
20073 DCHECK_LE(kind, LAST_ELEMENTS_KIND); 20078 DCHECK_LE(kind, LAST_ELEMENTS_KIND);
20074 return kind; 20079 return kind;
20075 } 20080 }
20076 } 20081 }
20077 20082
20078 } // namespace internal 20083 } // namespace internal
20079 } // namespace v8 20084 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698