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

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

Issue 7216009: Change the handling of stack check on backward branches (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Changed stack check elimination to remove the stack check instruction Created 9 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 | Annotate | Revision Log
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-codegen-ia32.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 // Finish the code by setting stack height, safepoint, and bailout 91 // Finish the code by setting stack height, safepoint, and bailout
92 // information on it. 92 // information on it.
93 void FinishCode(Handle<Code> code); 93 void FinishCode(Handle<Code> code);
94 94
95 // Deferred code support. 95 // Deferred code support.
96 void DoDeferredNumberTagD(LNumberTagD* instr); 96 void DoDeferredNumberTagD(LNumberTagD* instr);
97 void DoDeferredNumberTagI(LNumberTagI* instr); 97 void DoDeferredNumberTagI(LNumberTagI* instr);
98 void DoDeferredTaggedToI(LTaggedToI* instr); 98 void DoDeferredTaggedToI(LTaggedToI* instr);
99 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); 99 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr);
100 void DoDeferredStackCheck(LGoto* instr); 100 void DoDeferredStackCheck(LStackCheck* instr);
101 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); 101 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr);
102 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); 102 void DoDeferredStringCharFromCode(LStringCharFromCode* instr);
103 void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, 103 void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr,
104 Label* map_check); 104 Label* map_check);
105 105
106 // Parallel move support. 106 // Parallel move support.
107 void DoParallelMove(LParallelMove* move); 107 void DoParallelMove(LParallelMove* move);
108 void DoGap(LGap* instr); 108 void DoGap(LGap* instr);
109 109
110 // Emit frame translation commands for an environment. 110 // Emit frame translation commands for an environment.
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 int arguments, 251 int arguments,
252 int deoptimization_index); 252 int deoptimization_index);
253 void RecordSafepoint(LPointerMap* pointers, int deoptimization_index); 253 void RecordSafepoint(LPointerMap* pointers, int deoptimization_index);
254 void RecordSafepoint(int deoptimization_index); 254 void RecordSafepoint(int deoptimization_index);
255 void RecordSafepointWithRegisters(LPointerMap* pointers, 255 void RecordSafepointWithRegisters(LPointerMap* pointers,
256 int arguments, 256 int arguments,
257 int deoptimization_index); 257 int deoptimization_index);
258 void RecordPosition(int position); 258 void RecordPosition(int position);
259 259
260 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 260 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
261 void EmitGoto(int block, LDeferredCode* deferred_stack_check = NULL); 261 void EmitGoto(int block);
262 void EmitBranch(int left_block, int right_block, Condition cc); 262 void EmitBranch(int left_block, int right_block, Condition cc);
263 void EmitCmpI(LOperand* left, LOperand* right); 263 void EmitCmpI(LOperand* left, LOperand* right);
264 void EmitNumberUntagD(Register input, 264 void EmitNumberUntagD(Register input,
265 XMMRegister result, 265 XMMRegister result,
266 bool deoptimize_on_undefined, 266 bool deoptimize_on_undefined,
267 LEnvironment* env); 267 LEnvironment* env);
268 268
269 // Emits optimized code for typeof x == "y". Modifies input register. 269 // Emits optimized code for typeof x == "y". Modifies input register.
270 // Returns the condition on which a final split to 270 // Returns the condition on which a final split to
271 // true and false label should be made, to optimize fallthrough. 271 // true and false label should be made, to optimize fallthrough.
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 private: 369 private:
370 LCodeGen* codegen_; 370 LCodeGen* codegen_;
371 Label entry_; 371 Label entry_;
372 Label exit_; 372 Label exit_;
373 Label* external_exit_; 373 Label* external_exit_;
374 }; 374 };
375 375
376 } } // namespace v8::internal 376 } } // namespace v8::internal
377 377
378 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ 378 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698