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

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

Issue 1239793002: [interpreter] Add basic framework for bytecode handler code generation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add comment to count macro. Created 5 years, 5 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
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/machine-type.h" 10 #include "src/compiler/machine-type.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 // Creates a call descriptor for simplified C calls that is appropriate 234 // Creates a call descriptor for simplified C calls that is appropriate
235 // for the host platform. This simplified calling convention only supports 235 // for the host platform. This simplified calling convention only supports
236 // integers and pointers of one word size each, i.e. no floating point, 236 // integers and pointers of one word size each, i.e. no floating point,
237 // structs, pointers to members, etc. 237 // structs, pointers to members, etc.
238 static CallDescriptor* GetSimplifiedCDescriptor(Zone* zone, 238 static CallDescriptor* GetSimplifiedCDescriptor(Zone* zone,
239 const MachineSignature* sig); 239 const MachineSignature* sig);
240 240
241 // Creates a call descriptor for interpreter handler code stubs. These are not 241 // Creates a call descriptor for interpreter handler code stubs. These are not
242 // intended to be called directly but are instead dispatched to by the 242 // intended to be called directly but are instead dispatched to by the
243 // interpreter. 243 // interpreter.
244 static CallDescriptor* GetInterpreterDispatchDescriptor( 244 //
245 Zone* zone, const MachineSignature* sig); 245 // If |does_return| is true, then this bytecode will return from the current
246 // function rather than dispatching to a new bytecode.
247 static CallDescriptor* GetInterpreterDispatchDescriptor(Zone* zone,
248 bool will_return);
246 249
247 // Get the location of an (incoming) parameter to this function. 250 // Get the location of an (incoming) parameter to this function.
248 LinkageLocation GetParameterLocation(int index) const { 251 LinkageLocation GetParameterLocation(int index) const {
249 return incoming_->GetInputLocation(index + 1); // + 1 to skip target. 252 return incoming_->GetInputLocation(index + 1); // + 1 to skip target.
250 } 253 }
251 254
252 // Get the machine type of an (incoming) parameter to this function. 255 // Get the machine type of an (incoming) parameter to this function.
253 MachineType GetParameterType(int index) const { 256 MachineType GetParameterType(int index) const {
254 return incoming_->GetInputType(index + 1); // + 1 to skip target. 257 return incoming_->GetInputType(index + 1); // + 1 to skip target.
255 } 258 }
(...skipping 28 matching lines...) Expand all
284 CallDescriptor* const incoming_; 287 CallDescriptor* const incoming_;
285 288
286 DISALLOW_COPY_AND_ASSIGN(Linkage); 289 DISALLOW_COPY_AND_ASSIGN(Linkage);
287 }; 290 };
288 291
289 } // namespace compiler 292 } // namespace compiler
290 } // namespace internal 293 } // namespace internal
291 } // namespace v8 294 } // namespace v8
292 295
293 #endif // V8_COMPILER_LINKAGE_H_ 296 #endif // V8_COMPILER_LINKAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698