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

Side by Side Diff: src/compiler/linkage.cc

Issue 1744163002: [stubs] Introduce a proper ToBooleanStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix mips Created 4 years, 9 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/js-generic-lowering.cc ('k') | src/compiler/mips/instruction-selector-mips.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/ast/scopes.h" 5 #include "src/ast/scopes.h"
6 #include "src/code-stubs.h" 6 #include "src/code-stubs.h"
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 #include "src/compiler/common-operator.h" 8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/frame.h" 9 #include "src/compiler/frame.h"
10 #include "src/compiler/linkage.h" 10 #include "src/compiler/linkage.h"
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 return new (zone) CallDescriptor( // -- 393 return new (zone) CallDescriptor( // --
394 CallDescriptor::kCallCodeObject, // kind 394 CallDescriptor::kCallCodeObject, // kind
395 target_type, // target MachineType 395 target_type, // target MachineType
396 target_loc, // target location 396 target_loc, // target location
397 types.Build(), // machine_sig 397 types.Build(), // machine_sig
398 locations.Build(), // location_sig 398 locations.Build(), // location_sig
399 stack_parameter_count, // stack_parameter_count 399 stack_parameter_count, // stack_parameter_count
400 properties, // properties 400 properties, // properties
401 kNoCalleeSaved, // callee-saved registers 401 kNoCalleeSaved, // callee-saved registers
402 kNoCalleeSaved, // callee-saved fp 402 kNoCalleeSaved, // callee-saved fp
403 flags, // flags 403 CallDescriptor::kCanUseRoots | // flags
404 flags, // flags
404 descriptor.DebugName(isolate)); 405 descriptor.DebugName(isolate));
405 } 406 }
406 407
407 408
408 LinkageLocation Linkage::GetOsrValueLocation(int index) const { 409 LinkageLocation Linkage::GetOsrValueLocation(int index) const {
409 CHECK(incoming_->IsJSFunctionCall()); 410 CHECK(incoming_->IsJSFunctionCall());
410 int parameter_count = static_cast<int>(incoming_->JSParameterCount() - 1); 411 int parameter_count = static_cast<int>(incoming_->JSParameterCount() - 1);
411 int first_stack_slot = OsrHelper::FirstStackSlotIndex(parameter_count); 412 int first_stack_slot = OsrHelper::FirstStackSlotIndex(parameter_count);
412 413
413 if (index == kOsrContextSpillSlotIndex) { 414 if (index == kOsrContextSpillSlotIndex) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 } else { 446 } else {
446 DCHECK(loc == regloc(kContextRegister)); 447 DCHECK(loc == regloc(kContextRegister));
447 return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot); 448 return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot);
448 } 449 }
449 } 450 }
450 451
451 452
452 } // namespace compiler 453 } // namespace compiler
453 } // namespace internal 454 } // namespace internal
454 } // namespace v8 455 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/compiler/mips/instruction-selector-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698