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

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

Issue 1666073002: [turbofan] Remove the function reload hack for OSR. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Work-around safe point Created 4 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/code-generator-ia32.cc ('k') | src/compiler/linkage.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 #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
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() {
80 return ForCalleeFrameSlot((StandardFrameConstants::kCallerPCOffset -
81 StandardFrameConstants::kMarkerOffset) /
82 kPointerSize);
83 }
84
79 static LinkageLocation ConvertToTailCallerLocation( 85 static LinkageLocation ConvertToTailCallerLocation(
80 LinkageLocation caller_location, int stack_param_delta) { 86 LinkageLocation caller_location, int stack_param_delta) {
81 if (!caller_location.IsRegister()) { 87 if (!caller_location.IsRegister()) {
82 return LinkageLocation(STACK_SLOT, 88 return LinkageLocation(STACK_SLOT,
83 caller_location.GetLocation() - stack_param_delta); 89 caller_location.GetLocation() - stack_param_delta);
84 } 90 }
85 return caller_location; 91 return caller_location;
86 } 92 }
87 93
88 private: 94 private:
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 CallDescriptor* const incoming_; 395 CallDescriptor* const incoming_;
390 396
391 DISALLOW_COPY_AND_ASSIGN(Linkage); 397 DISALLOW_COPY_AND_ASSIGN(Linkage);
392 }; 398 };
393 399
394 } // namespace compiler 400 } // namespace compiler
395 } // namespace internal 401 } // namespace internal
396 } // namespace v8 402 } // namespace v8
397 403
398 #endif // V8_COMPILER_LINKAGE_H_ 404 #endif // V8_COMPILER_LINKAGE_H_
OLDNEW
« no previous file with comments | « src/compiler/ia32/code-generator-ia32.cc ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698