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

Side by Side Diff: src/ia32/regexp-macro-assembler-ia32.cc

Issue 338017: Remove --check-stack flag from V8. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 1 month 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/codegen-ia32.cc ('k') | src/x64/builtins-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 2008-2009 the V8 project authors. All rights reserved. 1 // Copyright 2008-2009 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 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after
1086 __ cmp(esp, Operand::StaticVariable(stack_guard_limit)); 1086 __ cmp(esp, Operand::StaticVariable(stack_guard_limit));
1087 __ j(above, &no_preempt, taken); 1087 __ j(above, &no_preempt, taken);
1088 1088
1089 SafeCall(&check_preempt_label_); 1089 SafeCall(&check_preempt_label_);
1090 1090
1091 __ bind(&no_preempt); 1091 __ bind(&no_preempt);
1092 } 1092 }
1093 1093
1094 1094
1095 void RegExpMacroAssemblerIA32::CheckStackLimit() { 1095 void RegExpMacroAssemblerIA32::CheckStackLimit() {
1096 if (FLAG_check_stack) { 1096 Label no_stack_overflow;
1097 Label no_stack_overflow; 1097 ExternalReference stack_limit =
1098 ExternalReference stack_limit = 1098 ExternalReference::address_of_regexp_stack_limit();
1099 ExternalReference::address_of_regexp_stack_limit(); 1099 __ cmp(backtrack_stackpointer(), Operand::StaticVariable(stack_limit));
1100 __ cmp(backtrack_stackpointer(), Operand::StaticVariable(stack_limit)); 1100 __ j(above, &no_stack_overflow);
1101 __ j(above, &no_stack_overflow);
1102 1101
1103 SafeCall(&stack_overflow_label_); 1102 SafeCall(&stack_overflow_label_);
1104 1103
1105 __ bind(&no_stack_overflow); 1104 __ bind(&no_stack_overflow);
1106 }
1107 } 1105 }
1108 1106
1109 1107
1110 void RegExpMacroAssemblerIA32::FrameAlign(int num_arguments, Register scratch) { 1108 void RegExpMacroAssemblerIA32::FrameAlign(int num_arguments, Register scratch) {
1111 // TODO(lrn): Since we no longer use the system stack arbitrarily (but we do 1109 // TODO(lrn): Since we no longer use the system stack arbitrarily (but we do
1112 // use it, e.g., for SafeCall), we know the number of elements on the stack 1110 // use it, e.g., for SafeCall), we know the number of elements on the stack
1113 // since the last frame alignment. We might be able to do this simpler then. 1111 // since the last frame alignment. We might be able to do this simpler then.
1114 int frameAlignment = OS::ActivationFrameAlignment(); 1112 int frameAlignment = OS::ActivationFrameAlignment();
1115 if (frameAlignment != 0) { 1113 if (frameAlignment != 0) {
1116 // Make stack end at alignment and make room for num_arguments words 1114 // Make stack end at alignment and make room for num_arguments words
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
1161 } 1159 }
1162 } 1160 }
1163 } 1161 }
1164 1162
1165 1163
1166 #undef __ 1164 #undef __
1167 1165
1168 #endif // V8_NATIVE_REGEXP 1166 #endif // V8_NATIVE_REGEXP
1169 1167
1170 }} // namespace v8::internal 1168 }} // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698