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

Side by Side Diff: src/ia32/codegen-ia32.cc

Issue 345048: Fix issue 493: Infinite loop when debug break is set when entering function.apply (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/builtins-ia32.cc ('k') | src/ia32/fast-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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 2165 matching lines...) Expand 10 before | Expand all | Expand 10 after
2176 2176
2177 2177
2178 void DeferredStackCheck::Generate() { 2178 void DeferredStackCheck::Generate() {
2179 StackCheckStub stub; 2179 StackCheckStub stub;
2180 __ CallStub(&stub); 2180 __ CallStub(&stub);
2181 } 2181 }
2182 2182
2183 2183
2184 void CodeGenerator::CheckStack() { 2184 void CodeGenerator::CheckStack() {
2185 DeferredStackCheck* deferred = new DeferredStackCheck; 2185 DeferredStackCheck* deferred = new DeferredStackCheck;
2186 ExternalReference stack_guard_limit = 2186 ExternalReference stack_limit =
2187 ExternalReference::address_of_stack_guard_limit(); 2187 ExternalReference::address_of_stack_limit();
2188 __ cmp(esp, Operand::StaticVariable(stack_guard_limit)); 2188 __ cmp(esp, Operand::StaticVariable(stack_limit));
2189 deferred->Branch(below); 2189 deferred->Branch(below);
2190 deferred->BindExit(); 2190 deferred->BindExit();
2191 } 2191 }
2192 2192
2193 2193
2194 void CodeGenerator::VisitAndSpill(Statement* statement) { 2194 void CodeGenerator::VisitAndSpill(Statement* statement) {
2195 ASSERT(in_spilled_code()); 2195 ASSERT(in_spilled_code());
2196 set_in_spilled_code(false); 2196 set_in_spilled_code(false);
2197 Visit(statement); 2197 Visit(statement);
2198 if (frame_ != NULL) { 2198 if (frame_ != NULL) {
(...skipping 5856 matching lines...) Expand 10 before | Expand all | Expand 10 after
8055 8055
8056 int CompareStub::MinorKey() { 8056 int CompareStub::MinorKey() {
8057 // Encode the two parameters in a unique 16 bit value. 8057 // Encode the two parameters in a unique 16 bit value.
8058 ASSERT(static_cast<unsigned>(cc_) < (1 << 15)); 8058 ASSERT(static_cast<unsigned>(cc_) < (1 << 15));
8059 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0); 8059 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0);
8060 } 8060 }
8061 8061
8062 #undef __ 8062 #undef __
8063 8063
8064 } } // namespace v8::internal 8064 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/ia32/fast-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698