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

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

Issue 257583004: Mark the simulate before EnterInlined with BailoutId::None(), and set ReturnId on EnterInlined. Whe… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-instructions.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2067 matching lines...) Expand 10 before | Expand all | Expand 10 after
2078 }; 2078 };
2079 2079
2080 2080
2081 class HArgumentsObject; 2081 class HArgumentsObject;
2082 2082
2083 2083
2084 class HEnterInlined V8_FINAL : public HTemplateInstruction<0> { 2084 class HEnterInlined V8_FINAL : public HTemplateInstruction<0> {
2085 public: 2085 public:
2086 static HEnterInlined* New(Zone* zone, 2086 static HEnterInlined* New(Zone* zone,
2087 HValue* context, 2087 HValue* context,
2088 BailoutId return_id,
2088 Handle<JSFunction> closure, 2089 Handle<JSFunction> closure,
2089 int arguments_count, 2090 int arguments_count,
2090 FunctionLiteral* function, 2091 FunctionLiteral* function,
2091 InliningKind inlining_kind, 2092 InliningKind inlining_kind,
2092 Variable* arguments_var, 2093 Variable* arguments_var,
2093 HArgumentsObject* arguments_object) { 2094 HArgumentsObject* arguments_object) {
2094 return new(zone) HEnterInlined(closure, arguments_count, function, 2095 return new(zone) HEnterInlined(return_id, closure, arguments_count,
2095 inlining_kind, arguments_var, 2096 function, inlining_kind, arguments_var,
2096 arguments_object, zone); 2097 arguments_object, zone);
2097 } 2098 }
2098 2099
2099 void RegisterReturnTarget(HBasicBlock* return_target, Zone* zone); 2100 void RegisterReturnTarget(HBasicBlock* return_target, Zone* zone);
2100 ZoneList<HBasicBlock*>* return_targets() { return &return_targets_; } 2101 ZoneList<HBasicBlock*>* return_targets() { return &return_targets_; }
2101 2102
2102 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 2103 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
2103 2104
2104 Handle<JSFunction> closure() const { return closure_; } 2105 Handle<JSFunction> closure() const { return closure_; }
2105 int arguments_count() const { return arguments_count_; } 2106 int arguments_count() const { return arguments_count_; }
2106 bool arguments_pushed() const { return arguments_pushed_; } 2107 bool arguments_pushed() const { return arguments_pushed_; }
2107 void set_arguments_pushed() { arguments_pushed_ = true; } 2108 void set_arguments_pushed() { arguments_pushed_ = true; }
2108 FunctionLiteral* function() const { return function_; } 2109 FunctionLiteral* function() const { return function_; }
2109 InliningKind inlining_kind() const { return inlining_kind_; } 2110 InliningKind inlining_kind() const { return inlining_kind_; }
2111 BailoutId ReturnId() const { return return_id_; }
2110 2112
2111 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { 2113 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE {
2112 return Representation::None(); 2114 return Representation::None();
2113 } 2115 }
2114 2116
2115 Variable* arguments_var() { return arguments_var_; } 2117 Variable* arguments_var() { return arguments_var_; }
2116 HArgumentsObject* arguments_object() { return arguments_object_; } 2118 HArgumentsObject* arguments_object() { return arguments_object_; }
2117 2119
2118 DECLARE_CONCRETE_INSTRUCTION(EnterInlined) 2120 DECLARE_CONCRETE_INSTRUCTION(EnterInlined)
2119 2121
2120 private: 2122 private:
2121 HEnterInlined(Handle<JSFunction> closure, 2123 HEnterInlined(BailoutId return_id,
2124 Handle<JSFunction> closure,
2122 int arguments_count, 2125 int arguments_count,
2123 FunctionLiteral* function, 2126 FunctionLiteral* function,
2124 InliningKind inlining_kind, 2127 InliningKind inlining_kind,
2125 Variable* arguments_var, 2128 Variable* arguments_var,
2126 HArgumentsObject* arguments_object, 2129 HArgumentsObject* arguments_object,
2127 Zone* zone) 2130 Zone* zone)
2128 : closure_(closure), 2131 : return_id_(return_id),
2132 closure_(closure),
2129 arguments_count_(arguments_count), 2133 arguments_count_(arguments_count),
2130 arguments_pushed_(false), 2134 arguments_pushed_(false),
2131 function_(function), 2135 function_(function),
2132 inlining_kind_(inlining_kind), 2136 inlining_kind_(inlining_kind),
2133 arguments_var_(arguments_var), 2137 arguments_var_(arguments_var),
2134 arguments_object_(arguments_object), 2138 arguments_object_(arguments_object),
2135 return_targets_(2, zone) { 2139 return_targets_(2, zone) {
2136 } 2140 }
2137 2141
2142 BailoutId return_id_;
2138 Handle<JSFunction> closure_; 2143 Handle<JSFunction> closure_;
2139 int arguments_count_; 2144 int arguments_count_;
2140 bool arguments_pushed_; 2145 bool arguments_pushed_;
2141 FunctionLiteral* function_; 2146 FunctionLiteral* function_;
2142 InliningKind inlining_kind_; 2147 InliningKind inlining_kind_;
2143 Variable* arguments_var_; 2148 Variable* arguments_var_;
2144 HArgumentsObject* arguments_object_; 2149 HArgumentsObject* arguments_object_;
2145 ZoneList<HBasicBlock*> return_targets_; 2150 ZoneList<HBasicBlock*> return_targets_;
2146 }; 2151 };
2147 2152
(...skipping 5418 matching lines...) Expand 10 before | Expand all | Expand 10 after
7566 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7571 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7567 }; 7572 };
7568 7573
7569 7574
7570 #undef DECLARE_INSTRUCTION 7575 #undef DECLARE_INSTRUCTION
7571 #undef DECLARE_CONCRETE_INSTRUCTION 7576 #undef DECLARE_CONCRETE_INSTRUCTION
7572 7577
7573 } } // namespace v8::internal 7578 } } // namespace v8::internal
7574 7579
7575 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7580 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698