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

Side by Side Diff: src/hydrogen-instructions.h

Issue 1108563002: Detect simple tail calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed index type Created 5 years, 7 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/globals.h ('k') | test/unittests/compiler/instruction-selector-unittest.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_HYDROGEN_INSTRUCTIONS_H_ 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_
6 #define V8_HYDROGEN_INSTRUCTIONS_H_ 6 #define V8_HYDROGEN_INSTRUCTIONS_H_
7 7
8 #include <cstring> 8 #include <cstring>
9 #include <iosfwd> 9 #include <iosfwd>
10 10
(...skipping 2224 matching lines...) Expand 10 before | Expand all | Expand 10 after
2235 pass_argument_count_(pass_argument_count), 2235 pass_argument_count_(pass_argument_count),
2236 has_stack_check_(has_stack_check) { 2236 has_stack_check_(has_stack_check) {
2237 SetOperandAt(0, function); 2237 SetOperandAt(0, function);
2238 } 2238 }
2239 2239
2240 bool pass_argument_count_; 2240 bool pass_argument_count_;
2241 bool has_stack_check_; 2241 bool has_stack_check_;
2242 }; 2242 };
2243 2243
2244 2244
2245 enum CallMode { NORMAL_CALL, TAIL_CALL };
2246
2247
2248 class HCallWithDescriptor final : public HInstruction { 2245 class HCallWithDescriptor final : public HInstruction {
2249 public: 2246 public:
2250 static HCallWithDescriptor* New(Isolate* isolate, Zone* zone, HValue* context, 2247 static HCallWithDescriptor* New(Isolate* isolate, Zone* zone, HValue* context,
2251 HValue* target, int argument_count, 2248 HValue* target, int argument_count,
2252 CallInterfaceDescriptor descriptor, 2249 CallInterfaceDescriptor descriptor,
2253 const Vector<HValue*>& operands, 2250 const Vector<HValue*>& operands,
2254 CallMode call_mode = NORMAL_CALL) { 2251 CallMode call_mode = NORMAL_CALL) {
2255 DCHECK(operands.length() == descriptor.GetEnvironmentLength()); 2252 DCHECK(operands.length() == descriptor.GetEnvironmentLength());
2256 HCallWithDescriptor* res = new (zone) HCallWithDescriptor( 2253 HCallWithDescriptor* res = new (zone) HCallWithDescriptor(
2257 target, argument_count, descriptor, operands, call_mode, zone); 2254 target, argument_count, descriptor, operands, call_mode, zone);
(...skipping 5591 matching lines...) Expand 10 before | Expand all | Expand 10 after
7849 }; 7846 };
7850 7847
7851 7848
7852 7849
7853 #undef DECLARE_INSTRUCTION 7850 #undef DECLARE_INSTRUCTION
7854 #undef DECLARE_CONCRETE_INSTRUCTION 7851 #undef DECLARE_CONCRETE_INSTRUCTION
7855 7852
7856 } } // namespace v8::internal 7853 } } // namespace v8::internal
7857 7854
7858 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7855 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/globals.h ('k') | test/unittests/compiler/instruction-selector-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698