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

Side by Side Diff: src/ia32/lithium-codegen-ia32.h

Issue 5753005: Make closures optimizable by Crankshaft compiler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing next round of Florian's comments Created 10 years 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 Runtime::Function* function = Runtime::FunctionForId(id); 141 Runtime::Function* function = Runtime::FunctionForId(id);
142 CallRuntime(function, num_arguments, instr); 142 CallRuntime(function, num_arguments, instr);
143 } 143 }
144 144
145 // Generate a direct call to a known function. Expects the function 145 // Generate a direct call to a known function. Expects the function
146 // to be in edi. 146 // to be in edi.
147 void CallKnownFunction(Handle<JSFunction> function, 147 void CallKnownFunction(Handle<JSFunction> function,
148 int arity, 148 int arity,
149 LInstruction* instr); 149 LInstruction* instr);
150 150
151 void LoadPrototype(Register result, Handle<JSObject> prototype); 151 void LoadHeapObject(Register result, Handle<HeapObject> object);
152 152
153 void RegisterLazyDeoptimization(LInstruction* instr); 153 void RegisterLazyDeoptimization(LInstruction* instr);
154 void RegisterEnvironmentForDeoptimization(LEnvironment* environment); 154 void RegisterEnvironmentForDeoptimization(LEnvironment* environment);
155 void DeoptimizeIf(Condition cc, LEnvironment* environment); 155 void DeoptimizeIf(Condition cc, LEnvironment* environment);
156 156
157 void AddToTranslation(Translation* translation, 157 void AddToTranslation(Translation* translation,
158 LOperand* op, 158 LOperand* op,
159 bool is_tagged); 159 bool is_tagged);
160 void PopulateDeoptimizationData(Handle<Code> code); 160 void PopulateDeoptimizationData(Handle<Code> code);
161 int DefineDeoptimizationLiteral(Handle<Object> literal); 161 int DefineDeoptimizationLiteral(Handle<Object> literal);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 private: 254 private:
255 LCodeGen* codegen_; 255 LCodeGen* codegen_;
256 Label entry_; 256 Label entry_;
257 Label exit_; 257 Label exit_;
258 Label* external_exit_; 258 Label* external_exit_;
259 }; 259 };
260 260
261 } } // namespace v8::internal 261 } } // namespace v8::internal
262 262
263 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ 263 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698