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

Side by Side Diff: src/compiler/instruction-selector.cc

Issue 946553002: [turbofan] Fix several int vs size_t issues. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Fix Win64. Created 5 years, 10 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/ia32/instruction-selector-ia32.cc ('k') | src/compiler/scheduler.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/compiler/instruction-selector.h" 5 #include "src/compiler/instruction-selector.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/compiler/instruction-selector-impl.h" 9 #include "src/compiler/instruction-selector-impl.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 callee->opcode() == IrOpcode::kInt64Constant)) 391 callee->opcode() == IrOpcode::kInt64Constant))
392 ? g.UseImmediate(callee) 392 ? g.UseImmediate(callee)
393 : g.UseRegister(callee)); 393 : g.UseRegister(callee));
394 break; 394 break;
395 case CallDescriptor::kCallJSFunction: 395 case CallDescriptor::kCallJSFunction:
396 buffer->instruction_args.push_back( 396 buffer->instruction_args.push_back(
397 g.UseLocation(callee, buffer->descriptor->GetInputLocation(0), 397 g.UseLocation(callee, buffer->descriptor->GetInputLocation(0),
398 buffer->descriptor->GetInputType(0))); 398 buffer->descriptor->GetInputType(0)));
399 break; 399 break;
400 } 400 }
401 DCHECK_EQ(1, static_cast<int>(buffer->instruction_args.size())); 401 DCHECK_EQ(1u, buffer->instruction_args.size());
402 402
403 // If the call needs a frame state, we insert the state information as 403 // If the call needs a frame state, we insert the state information as
404 // follows (n is the number of value inputs to the frame state): 404 // follows (n is the number of value inputs to the frame state):
405 // arg 1 : deoptimization id. 405 // arg 1 : deoptimization id.
406 // arg 2 - arg (n + 1) : value inputs to the frame state. 406 // arg 2 - arg (n + 1) : value inputs to the frame state.
407 if (buffer->frame_state_descriptor != NULL) { 407 if (buffer->frame_state_descriptor != NULL) {
408 InstructionSequence::StateId state_id = 408 InstructionSequence::StateId state_id =
409 sequence()->AddFrameStateDescriptor(buffer->frame_state_descriptor); 409 sequence()->AddFrameStateDescriptor(buffer->frame_state_descriptor);
410 buffer->instruction_args.push_back(g.TempImmediate(state_id.ToInt())); 410 buffer->instruction_args.push_back(g.TempImmediate(state_id.ToInt()));
411 411
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
1213 MachineOperatorBuilder::Flags 1213 MachineOperatorBuilder::Flags
1214 InstructionSelector::SupportedMachineOperatorFlags() { 1214 InstructionSelector::SupportedMachineOperatorFlags() {
1215 return MachineOperatorBuilder::Flag::kNoFlags; 1215 return MachineOperatorBuilder::Flag::kNoFlags;
1216 } 1216 }
1217 1217
1218 #endif // !V8_TURBOFAN_BACKEND 1218 #endif // !V8_TURBOFAN_BACKEND
1219 1219
1220 } // namespace compiler 1220 } // namespace compiler
1221 } // namespace internal 1221 } // namespace internal
1222 } // namespace v8 1222 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | src/compiler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698