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

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

Issue 2289613002: [turbofan] Remove special JSForInStep and JSForInDone. (Closed)
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 } 1079 }
1080 1080
1081 // Both Crankshaft and Turbofan expect BodyId to be right before stmt->body(). 1081 // Both Crankshaft and Turbofan expect BodyId to be right before stmt->body().
1082 PrepareForBailoutForId(stmt->BodyId(), BailoutState::NO_REGISTERS); 1082 PrepareForBailoutForId(stmt->BodyId(), BailoutState::NO_REGISTERS);
1083 // Generate code for the body of the loop. 1083 // Generate code for the body of the loop.
1084 Visit(stmt->body()); 1084 Visit(stmt->body());
1085 1085
1086 // Generate code for going to the next element by incrementing the 1086 // Generate code for going to the next element by incrementing the
1087 // index (smi) stored on top of the stack. 1087 // index (smi) stored on top of the stack.
1088 __ bind(loop_statement.continue_label()); 1088 __ bind(loop_statement.continue_label());
1089 PrepareForBailoutForId(stmt->IncrementId(), BailoutState::NO_REGISTERS);
1089 __ SmiAddConstant(Operand(rsp, 0 * kPointerSize), Smi::FromInt(1)); 1090 __ SmiAddConstant(Operand(rsp, 0 * kPointerSize), Smi::FromInt(1));
1090 1091
1091 EmitBackEdgeBookkeeping(stmt, &loop); 1092 EmitBackEdgeBookkeeping(stmt, &loop);
1092 __ jmp(&loop); 1093 __ jmp(&loop);
1093 1094
1094 // Remove the pointers stored on the stack. 1095 // Remove the pointers stored on the stack.
1095 __ bind(loop_statement.break_label()); 1096 __ bind(loop_statement.break_label());
1096 DropOperands(5); 1097 DropOperands(5);
1097 1098
1098 // Exit and decrement the loop depth. 1099 // Exit and decrement the loop depth.
(...skipping 2536 matching lines...) Expand 10 before | Expand all | Expand 10 after
3635 DCHECK_EQ( 3636 DCHECK_EQ(
3636 isolate->builtins()->OnStackReplacement()->entry(), 3637 isolate->builtins()->OnStackReplacement()->entry(),
3637 Assembler::target_address_at(call_target_address, unoptimized_code)); 3638 Assembler::target_address_at(call_target_address, unoptimized_code));
3638 return ON_STACK_REPLACEMENT; 3639 return ON_STACK_REPLACEMENT;
3639 } 3640 }
3640 3641
3641 } // namespace internal 3642 } // namespace internal
3642 } // namespace v8 3643 } // namespace v8
3643 3644
3644 #endif // V8_TARGET_ARCH_X64 3645 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/interpreter/bytecode-array-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698