| 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 #ifndef V8_COMPILER_LINKAGE_H_ | 5 #ifndef V8_COMPILER_LINKAGE_H_ |
| 6 #define V8_COMPILER_LINKAGE_H_ | 6 #define V8_COMPILER_LINKAGE_H_ |
| 7 | 7 |
| 8 #include "src/base/flags.h" | 8 #include "src/base/flags.h" |
| 9 #include "src/compiler/frame.h" | 9 #include "src/compiler/frame.h" |
| 10 #include "src/compiler/operator.h" | 10 #include "src/compiler/operator.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 kPointerSize); | 69 kPointerSize); |
| 70 } | 70 } |
| 71 | 71 |
| 72 static LinkageLocation ForSavedCallerConstantPool() { | 72 static LinkageLocation ForSavedCallerConstantPool() { |
| 73 DCHECK(V8_EMBEDDED_CONSTANT_POOL); | 73 DCHECK(V8_EMBEDDED_CONSTANT_POOL); |
| 74 return ForCalleeFrameSlot((StandardFrameConstants::kCallerPCOffset - | 74 return ForCalleeFrameSlot((StandardFrameConstants::kCallerPCOffset - |
| 75 StandardFrameConstants::kConstantPoolOffset) / | 75 StandardFrameConstants::kConstantPoolOffset) / |
| 76 kPointerSize); | 76 kPointerSize); |
| 77 } | 77 } |
| 78 | 78 |
| 79 static LinkageLocation ForSavedCallerMarker() { | 79 static LinkageLocation ForSavedCallerFunction() { |
| 80 return ForCalleeFrameSlot((StandardFrameConstants::kCallerPCOffset - | 80 return ForCalleeFrameSlot((StandardFrameConstants::kCallerPCOffset - |
| 81 StandardFrameConstants::kMarkerOffset) / | 81 StandardFrameConstants::kFunctionOffset) / |
| 82 kPointerSize); | 82 kPointerSize); |
| 83 } | 83 } |
| 84 | 84 |
| 85 static LinkageLocation ConvertToTailCallerLocation( | 85 static LinkageLocation ConvertToTailCallerLocation( |
| 86 LinkageLocation caller_location, int stack_param_delta) { | 86 LinkageLocation caller_location, int stack_param_delta) { |
| 87 if (!caller_location.IsRegister()) { | 87 if (!caller_location.IsRegister()) { |
| 88 return LinkageLocation(STACK_SLOT, | 88 return LinkageLocation(STACK_SLOT, |
| 89 caller_location.GetLocation() - stack_param_delta); | 89 caller_location.GetLocation() - stack_param_delta); |
| 90 } | 90 } |
| 91 return caller_location; | 91 return caller_location; |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 CallDescriptor* const incoming_; | 397 CallDescriptor* const incoming_; |
| 398 | 398 |
| 399 DISALLOW_COPY_AND_ASSIGN(Linkage); | 399 DISALLOW_COPY_AND_ASSIGN(Linkage); |
| 400 }; | 400 }; |
| 401 | 401 |
| 402 } // namespace compiler | 402 } // namespace compiler |
| 403 } // namespace internal | 403 } // namespace internal |
| 404 } // namespace v8 | 404 } // namespace v8 |
| 405 | 405 |
| 406 #endif // V8_COMPILER_LINKAGE_H_ | 406 #endif // V8_COMPILER_LINKAGE_H_ |
| OLD | NEW |