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

Side by Side Diff: src/crankshaft/hydrogen.cc

Issue 1309813007: [es6] implement destructuring assignment (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: An implementation Created 5 years, 1 month 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/crankshaft/hydrogen.h" 5 #include "src/crankshaft/hydrogen.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/allocation-site-scopes.h" 9 #include "src/allocation-site-scopes.h"
10 #include "src/ast-numbering.h" 10 #include "src/ast-numbering.h"
(...skipping 5843 matching lines...) Expand 10 before | Expand all | Expand 10 after
5854 max_properties)) { 5854 max_properties)) {
5855 return false; 5855 return false;
5856 } 5856 }
5857 } 5857 }
5858 } 5858 }
5859 } 5859 }
5860 return true; 5860 return true;
5861 } 5861 }
5862 5862
5863 5863
5864 void HOptimizedGraphBuilder::VisitAssignmentPattern(AssignmentPattern* expr) {
adamk 2015/11/20 22:42:58 I don't think this is sufficient to bail out of Cr
5865 DCHECK(!HasStackOverflow());
5866 DCHECK(current_block() != NULL);
5867 DCHECK(current_block()->HasPredecessor());
5868 return Bailout(kAssignmentPattern);
5869 }
5870
5871
5864 void HOptimizedGraphBuilder::VisitObjectLiteral(ObjectLiteral* expr) { 5872 void HOptimizedGraphBuilder::VisitObjectLiteral(ObjectLiteral* expr) {
5865 DCHECK(!HasStackOverflow()); 5873 DCHECK(!HasStackOverflow());
5866 DCHECK(current_block() != NULL); 5874 DCHECK(current_block() != NULL);
5867 DCHECK(current_block()->HasPredecessor()); 5875 DCHECK(current_block()->HasPredecessor());
5868 5876
5869 Handle<JSFunction> closure = function_state()->compilation_info()->closure(); 5877 Handle<JSFunction> closure = function_state()->compilation_info()->closure();
5870 HInstruction* literal; 5878 HInstruction* literal;
5871 5879
5872 // Check whether to use fast or slow deep-copying for boilerplate. 5880 // Check whether to use fast or slow deep-copying for boilerplate.
5873 int max_properties = kMaxFastLiteralProperties; 5881 int max_properties = kMaxFastLiteralProperties;
(...skipping 7764 matching lines...) Expand 10 before | Expand all | Expand 10 after
13638 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13646 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13639 } 13647 }
13640 13648
13641 #ifdef DEBUG 13649 #ifdef DEBUG
13642 graph_->Verify(false); // No full verify. 13650 graph_->Verify(false); // No full verify.
13643 #endif 13651 #endif
13644 } 13652 }
13645 13653
13646 } // namespace internal 13654 } // namespace internal
13647 } // namespace v8 13655 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698