OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |