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

Side by Side Diff: src/crankshaft/hydrogen.h

Issue 1818003002: [crankshaft] Check if the function is callable before generating a tail call via Call builtin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@tco-crank-4
Patch Set: Created 4 years, 9 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 | « no previous file | src/crankshaft/hydrogen.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_CRANKSHAFT_HYDROGEN_H_ 5 #ifndef V8_CRANKSHAFT_HYDROGEN_H_
6 #define V8_CRANKSHAFT_HYDROGEN_H_ 6 #define V8_CRANKSHAFT_HYDROGEN_H_
7 7
8 #include "src/accessors.h" 8 #include "src/accessors.h"
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/ast/ast.h" 10 #include "src/ast/ast.h"
(...skipping 2819 matching lines...) Expand 10 before | Expand all | Expand 10 after
2830 HValue* object_elements); 2830 HValue* object_elements);
2831 2831
2832 void BuildEmitFixedArray(Handle<FixedArrayBase> elements, 2832 void BuildEmitFixedArray(Handle<FixedArrayBase> elements,
2833 ElementsKind kind, 2833 ElementsKind kind,
2834 HValue* object_elements, 2834 HValue* object_elements,
2835 AllocationSiteUsageContext* site_context); 2835 AllocationSiteUsageContext* site_context);
2836 2836
2837 void AddCheckPrototypeMaps(Handle<JSObject> holder, 2837 void AddCheckPrototypeMaps(Handle<JSObject> holder,
2838 Handle<Map> receiver_map); 2838 Handle<Map> receiver_map);
2839 2839
2840 void BuildEnsureCallable(HValue* object);
2841
2840 HInstruction* NewCallFunction(HValue* function, int argument_count, 2842 HInstruction* NewCallFunction(HValue* function, int argument_count,
2841 TailCallMode syntactic_tail_call_mode, 2843 TailCallMode syntactic_tail_call_mode,
2842 ConvertReceiverMode convert_mode, 2844 ConvertReceiverMode convert_mode,
2843 TailCallMode tail_call_mode); 2845 TailCallMode tail_call_mode);
2844 2846
2845 HInstruction* NewCallFunctionViaIC(HValue* function, int argument_count, 2847 HInstruction* NewCallFunctionViaIC(HValue* function, int argument_count,
2846 TailCallMode syntactic_tail_call_mode, 2848 TailCallMode syntactic_tail_call_mode,
2847 ConvertReceiverMode convert_mode, 2849 ConvertReceiverMode convert_mode,
2848 TailCallMode tail_call_mode, 2850 TailCallMode tail_call_mode,
2849 FeedbackVectorSlot slot); 2851 FeedbackVectorSlot slot);
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
3061 } 3063 }
3062 3064
3063 private: 3065 private:
3064 HOptimizedGraphBuilder* builder_; 3066 HOptimizedGraphBuilder* builder_;
3065 }; 3067 };
3066 3068
3067 } // namespace internal 3069 } // namespace internal
3068 } // namespace v8 3070 } // namespace v8
3069 3071
3070 #endif // V8_CRANKSHAFT_HYDROGEN_H_ 3072 #endif // V8_CRANKSHAFT_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698