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

Side by Side Diff: src/ppc/full-codegen-ppc.cc

Issue 1139733002: Add a bailout id just before every variable load in fullcode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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/mips64/full-codegen-mips64.cc ('k') | src/x64/full-codegen-x64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_PPC 7 #if V8_TARGET_ARCH_PPC
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after
1443 } 1443 }
1444 } 1444 }
1445 __ b(done); 1445 __ b(done);
1446 } 1446 }
1447 } 1447 }
1448 1448
1449 1449
1450 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { 1450 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) {
1451 // Record position before possible IC call. 1451 // Record position before possible IC call.
1452 SetSourcePosition(proxy->position()); 1452 SetSourcePosition(proxy->position());
1453 PrepareForBailoutForId(proxy->BeforeId(), NO_REGISTERS);
1453 Variable* var = proxy->var(); 1454 Variable* var = proxy->var();
1454 1455
1455 // Three cases: global variables, lookup variables, and all other types of 1456 // Three cases: global variables, lookup variables, and all other types of
1456 // variables. 1457 // variables.
1457 switch (var->location()) { 1458 switch (var->location()) {
1458 case Variable::UNALLOCATED: { 1459 case Variable::UNALLOCATED: {
1459 Comment cmnt(masm_, "[ Global variable"); 1460 Comment cmnt(masm_, "[ Global variable");
1460 __ LoadP(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); 1461 __ LoadP(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand());
1461 __ mov(LoadDescriptor::NameRegister(), Operand(var->name())); 1462 __ mov(LoadDescriptor::NameRegister(), Operand(var->name()));
1462 if (FLAG_vector_ics) { 1463 if (FLAG_vector_ics) {
(...skipping 3988 matching lines...) Expand 10 before | Expand all | Expand 10 after
5451 return ON_STACK_REPLACEMENT; 5452 return ON_STACK_REPLACEMENT;
5452 } 5453 }
5453 5454
5454 DCHECK(interrupt_address == 5455 DCHECK(interrupt_address ==
5455 isolate->builtins()->OsrAfterStackCheck()->entry()); 5456 isolate->builtins()->OsrAfterStackCheck()->entry());
5456 return OSR_AFTER_STACK_CHECK; 5457 return OSR_AFTER_STACK_CHECK;
5457 } 5458 }
5458 } 5459 }
5459 } // namespace v8::internal 5460 } // namespace v8::internal
5460 #endif // V8_TARGET_ARCH_PPC 5461 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/full-codegen-mips64.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698