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

Side by Side Diff: src/x64/lithium-codegen-x64.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/ia32/lithium-ia32.cc ('k') | src/x64/lithium-codegen-x64.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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 bool GenerateCode(); 87 bool GenerateCode();
88 88
89 // Finish the code by setting stack height, safepoint, and bailout 89 // Finish the code by setting stack height, safepoint, and bailout
90 // information on it. 90 // information on it.
91 void FinishCode(Handle<Code> code); 91 void FinishCode(Handle<Code> code);
92 92
93 // Deferred code support. 93 // Deferred code support.
94 void DoDeferredNumberTagD(LNumberTagD* instr); 94 void DoDeferredNumberTagD(LNumberTagD* instr);
95 void DoDeferredTaggedToI(LTaggedToI* instr); 95 void DoDeferredTaggedToI(LTaggedToI* instr);
96 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr); 96 void DoDeferredMathAbsTaggedHeapNumber(LUnaryMathOperation* instr);
97 void DoDeferredStackCheck(LGoto* instr); 97 void DoDeferredStackCheck(LStackCheck* instr);
98 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); 98 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr);
99 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); 99 void DoDeferredStringCharFromCode(LStringCharFromCode* instr);
100 void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, 100 void DoDeferredLInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr,
101 Label* map_check); 101 Label* map_check);
102 102
103 // Parallel move support. 103 // Parallel move support.
104 void DoParallelMove(LParallelMove* move); 104 void DoParallelMove(LParallelMove* move);
105 void DoGap(LGap* instr); 105 void DoGap(LGap* instr);
106 106
107 // Emit frame translation commands for an environment. 107 // Emit frame translation commands for an environment.
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 void RecordSafepoint(int deoptimization_index); 240 void RecordSafepoint(int deoptimization_index);
241 void RecordSafepointWithRegisters(LPointerMap* pointers, 241 void RecordSafepointWithRegisters(LPointerMap* pointers,
242 int arguments, 242 int arguments,
243 int deoptimization_index); 243 int deoptimization_index);
244 void RecordPosition(int position); 244 void RecordPosition(int position);
245 int LastSafepointEnd() { 245 int LastSafepointEnd() {
246 return static_cast<int>(safepoints_.GetPcAfterGap()); 246 return static_cast<int>(safepoints_.GetPcAfterGap());
247 } 247 }
248 248
249 static Condition TokenToCondition(Token::Value op, bool is_unsigned); 249 static Condition TokenToCondition(Token::Value op, bool is_unsigned);
250 void EmitGoto(int block, LDeferredCode* deferred_stack_check = NULL); 250 void EmitGoto(int block);
251 void EmitBranch(int left_block, int right_block, Condition cc); 251 void EmitBranch(int left_block, int right_block, Condition cc);
252 void EmitCmpI(LOperand* left, LOperand* right); 252 void EmitCmpI(LOperand* left, LOperand* right);
253 void EmitNumberUntagD(Register input, 253 void EmitNumberUntagD(Register input,
254 XMMRegister result, 254 XMMRegister result,
255 bool deoptimize_on_undefined, 255 bool deoptimize_on_undefined,
256 LEnvironment* env); 256 LEnvironment* env);
257 257
258 // Emits optimized code for typeof x == "y". Modifies input register. 258 // Emits optimized code for typeof x == "y". Modifies input register.
259 // Returns the condition on which a final split to 259 // Returns the condition on which a final split to
260 // true and false label should be made, to optimize fallthrough. 260 // true and false label should be made, to optimize fallthrough.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 private: 362 private:
363 LCodeGen* codegen_; 363 LCodeGen* codegen_;
364 Label entry_; 364 Label entry_;
365 Label exit_; 365 Label exit_;
366 Label* external_exit_; 366 Label* external_exit_;
367 }; 367 };
368 368
369 } } // namespace v8::internal 369 } } // namespace v8::internal
370 370
371 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ 371 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698