OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |