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

Side by Side Diff: src/hydrogen.cc

Issue 1165463007: Build ObjectLiteral constant properties in the numbering phase. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 5 years, 6 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/compiler/ast-graph-builder.cc ('k') | src/ia32/full-codegen-ia32.cc » ('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 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/hydrogen.h" 5 #include "src/hydrogen.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/v8.h" 9 #include "src/v8.h"
10 10
(...skipping 5626 matching lines...) Expand 10 before | Expand all | Expand 10 after
5637 } 5637 }
5638 return true; 5638 return true;
5639 } 5639 }
5640 5640
5641 5641
5642 void HOptimizedGraphBuilder::VisitObjectLiteral(ObjectLiteral* expr) { 5642 void HOptimizedGraphBuilder::VisitObjectLiteral(ObjectLiteral* expr) {
5643 DCHECK(!HasStackOverflow()); 5643 DCHECK(!HasStackOverflow());
5644 DCHECK(current_block() != NULL); 5644 DCHECK(current_block() != NULL);
5645 DCHECK(current_block()->HasPredecessor()); 5645 DCHECK(current_block()->HasPredecessor());
5646 5646
5647 expr->BuildConstantProperties(isolate());
5648 Handle<JSFunction> closure = function_state()->compilation_info()->closure(); 5647 Handle<JSFunction> closure = function_state()->compilation_info()->closure();
5649 HInstruction* literal; 5648 HInstruction* literal;
5650 5649
5651 // Check whether to use fast or slow deep-copying for boilerplate. 5650 // Check whether to use fast or slow deep-copying for boilerplate.
5652 int max_properties = kMaxFastLiteralProperties; 5651 int max_properties = kMaxFastLiteralProperties;
5653 Handle<Object> literals_cell(closure->literals()->get(expr->literal_index()), 5652 Handle<Object> literals_cell(closure->literals()->get(expr->literal_index()),
5654 isolate()); 5653 isolate());
5655 Handle<AllocationSite> site; 5654 Handle<AllocationSite> site;
5656 Handle<JSObject> boilerplate; 5655 Handle<JSObject> boilerplate;
5657 if (!literals_cell->IsUndefined()) { 5656 if (!literals_cell->IsUndefined()) {
(...skipping 7490 matching lines...) Expand 10 before | Expand all | Expand 10 after
13148 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13147 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13149 } 13148 }
13150 13149
13151 #ifdef DEBUG 13150 #ifdef DEBUG
13152 graph_->Verify(false); // No full verify. 13151 graph_->Verify(false); // No full verify.
13153 #endif 13152 #endif
13154 } 13153 }
13155 13154
13156 } // namespace internal 13155 } // namespace internal
13157 } // namespace v8 13156 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698