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

Side by Side Diff: src/hydrogen.cc

Issue 527963002: Implement loads and calls from 'super' (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: CR feedback Created 6 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 unified diff | Download patch | Annotate | Revision Log
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 <algorithm> 7 #include <algorithm>
8 8
9 #include "src/v8.h" 9 #include "src/v8.h"
10 10
(...skipping 11169 matching lines...) Expand 10 before | Expand all | Expand 10 after
11180 void HOptimizedGraphBuilder::VisitThisFunction(ThisFunction* expr) { 11180 void HOptimizedGraphBuilder::VisitThisFunction(ThisFunction* expr) {
11181 DCHECK(!HasStackOverflow()); 11181 DCHECK(!HasStackOverflow());
11182 DCHECK(current_block() != NULL); 11182 DCHECK(current_block() != NULL);
11183 DCHECK(current_block()->HasPredecessor()); 11183 DCHECK(current_block()->HasPredecessor());
11184 HInstruction* instr = BuildThisFunction(); 11184 HInstruction* instr = BuildThisFunction();
11185 return ast_context()->ReturnInstruction(instr, expr->id()); 11185 return ast_context()->ReturnInstruction(instr, expr->id());
11186 } 11186 }
11187 11187
11188 11188
11189 void HOptimizedGraphBuilder::VisitSuperReference(SuperReference* expr) { 11189 void HOptimizedGraphBuilder::VisitSuperReference(SuperReference* expr) {
11190 UNREACHABLE(); 11190 DCHECK(!HasStackOverflow());
11191 DCHECK(current_block() != NULL);
11192 DCHECK(current_block()->HasPredecessor());
11193 return Bailout(kSuperReference);
11191 } 11194 }
11192 11195
11193 11196
11194 void HOptimizedGraphBuilder::VisitDeclarations( 11197 void HOptimizedGraphBuilder::VisitDeclarations(
11195 ZoneList<Declaration*>* declarations) { 11198 ZoneList<Declaration*>* declarations) {
11196 DCHECK(globals_.is_empty()); 11199 DCHECK(globals_.is_empty());
11197 AstVisitor::VisitDeclarations(declarations); 11200 AstVisitor::VisitDeclarations(declarations);
11198 if (!globals_.is_empty()) { 11201 if (!globals_.is_empty()) {
11199 Handle<FixedArray> array = 11202 Handle<FixedArray> array =
11200 isolate()->factory()->NewFixedArray(globals_.length(), TENURED); 11203 isolate()->factory()->NewFixedArray(globals_.length(), TENURED);
(...skipping 1288 matching lines...) Expand 10 before | Expand all | Expand 10 after
12489 if (ShouldProduceTraceOutput()) { 12492 if (ShouldProduceTraceOutput()) {
12490 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 12493 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
12491 } 12494 }
12492 12495
12493 #ifdef DEBUG 12496 #ifdef DEBUG
12494 graph_->Verify(false); // No full verify. 12497 graph_->Verify(false); // No full verify.
12495 #endif 12498 #endif
12496 } 12499 }
12497 12500
12498 } } // namespace v8::internal 12501 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698