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

Side by Side Diff: src/hydrogen.cc

Issue 1083193005: WIP: new.target (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix return from new func Created 5 years, 8 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/full-codegen.h ('k') | src/liveedit.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 5324 matching lines...) Expand 10 before | Expand all | Expand 10 after
5335 while (length-- > 0) { 5335 while (length-- > 0) {
5336 context = Add<HLoadNamedField>( 5336 context = Add<HLoadNamedField>(
5337 context, nullptr, 5337 context, nullptr,
5338 HObjectAccess::ForContextSlot(Context::PREVIOUS_INDEX)); 5338 HObjectAccess::ForContextSlot(Context::PREVIOUS_INDEX));
5339 } 5339 }
5340 return context; 5340 return context;
5341 } 5341 }
5342 5342
5343 5343
5344 void HOptimizedGraphBuilder::VisitVariableProxy(VariableProxy* expr) { 5344 void HOptimizedGraphBuilder::VisitVariableProxy(VariableProxy* expr) {
5345 if (expr->is_new_target()) {
5346 return Bailout(kNewTarget);
5347 }
5348
5345 if (expr->is_this()) { 5349 if (expr->is_this()) {
5346 graph()->MarkThisHasUses(); 5350 graph()->MarkThisHasUses();
5347 } 5351 }
5348 5352
5349 DCHECK(!HasStackOverflow()); 5353 DCHECK(!HasStackOverflow());
5350 DCHECK(current_block() != NULL); 5354 DCHECK(current_block() != NULL);
5351 DCHECK(current_block()->HasPredecessor()); 5355 DCHECK(current_block()->HasPredecessor());
5352 Variable* variable = expr->var(); 5356 Variable* variable = expr->var();
5353 switch (variable->location()) { 5357 switch (variable->location()) {
5354 case Variable::UNALLOCATED: { 5358 case Variable::UNALLOCATED: {
(...skipping 7692 matching lines...) Expand 10 before | Expand all | Expand 10 after
13047 if (ShouldProduceTraceOutput()) { 13051 if (ShouldProduceTraceOutput()) {
13048 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13052 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13049 } 13053 }
13050 13054
13051 #ifdef DEBUG 13055 #ifdef DEBUG
13052 graph_->Verify(false); // No full verify. 13056 graph_->Verify(false); // No full verify.
13053 #endif 13057 #endif
13054 } 13058 }
13055 13059
13056 } } // namespace v8::internal 13060 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/full-codegen.h ('k') | src/liveedit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698