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

Side by Side Diff: src/objects.cc

Issue 2729163002: [turbofan] compute arguments length in deoptimizer (Closed)
Patch Set: fix comment Created 3 years, 9 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
« no previous file with comments | « src/deoptimizer.cc ('k') | test/mjsunit/arguments-deopt.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 14478 matching lines...) Expand 10 before | Expand all | Expand 10 after
14489 << ")}"; 14489 << ")}";
14490 break; 14490 break;
14491 } 14491 }
14492 14492
14493 case Translation::DUPLICATED_OBJECT: { 14493 case Translation::DUPLICATED_OBJECT: {
14494 int object_index = iterator.Next(); 14494 int object_index = iterator.Next();
14495 os << "{object_index=" << object_index << "}"; 14495 os << "{object_index=" << object_index << "}";
14496 break; 14496 break;
14497 } 14497 }
14498 14498
14499 case Translation::ARGUMENTS_ELEMENTS: { 14499 case Translation::ARGUMENTS_ELEMENTS:
14500 case Translation::ARGUMENTS_LENGTH: {
14500 bool is_rest = iterator.Next(); 14501 bool is_rest = iterator.Next();
14501 os << "{is_rest=" << (is_rest ? "true" : "false") << "}"; 14502 os << "{is_rest=" << (is_rest ? "true" : "false") << "}";
14502 break; 14503 break;
14503 } 14504 }
14504 14505
14505 case Translation::ARGUMENTS_OBJECT: 14506 case Translation::ARGUMENTS_OBJECT:
14506 case Translation::CAPTURED_OBJECT: { 14507 case Translation::CAPTURED_OBJECT: {
14507 int args_length = iterator.Next(); 14508 int args_length = iterator.Next();
14508 os << "{length=" << args_length << "}"; 14509 os << "{length=" << args_length << "}";
14509 break; 14510 break;
(...skipping 5757 matching lines...) Expand 10 before | Expand all | Expand 10 after
20267 // depend on this. 20268 // depend on this.
20268 return DICTIONARY_ELEMENTS; 20269 return DICTIONARY_ELEMENTS;
20269 } 20270 }
20270 DCHECK_LE(kind, LAST_ELEMENTS_KIND); 20271 DCHECK_LE(kind, LAST_ELEMENTS_KIND);
20271 return kind; 20272 return kind;
20272 } 20273 }
20273 } 20274 }
20274 20275
20275 } // namespace internal 20276 } // namespace internal
20276 } // namespace v8 20277 } // namespace v8
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | test/mjsunit/arguments-deopt.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698