| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 frame_ = new VirtualFrame(); | 147 frame_ = new VirtualFrame(); |
| 148 set_in_spilled_code(false); | 148 set_in_spilled_code(false); |
| 149 | 149 |
| 150 // Adjust for function-level loop nesting. | 150 // Adjust for function-level loop nesting. |
| 151 loop_nesting_ += function->loop_nesting(); | 151 loop_nesting_ += function->loop_nesting(); |
| 152 | 152 |
| 153 JumpTarget::set_compiling_deferred_code(false); | 153 JumpTarget::set_compiling_deferred_code(false); |
| 154 | 154 |
| 155 #ifdef DEBUG | 155 #ifdef DEBUG |
| 156 if (strlen(FLAG_stop_at) > 0 && | 156 if (strlen(FLAG_stop_at) > 0 && |
| 157 // fun->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { | 157 function->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { |
| 158 false) { | |
| 159 frame_->SpillAll(); | 158 frame_->SpillAll(); |
| 160 __ int3(); | 159 __ int3(); |
| 161 } | 160 } |
| 162 #endif | 161 #endif |
| 163 | 162 |
| 164 // New scope to get automatic timing calculation. | 163 // New scope to get automatic timing calculation. |
| 165 { // NOLINT | 164 { // NOLINT |
| 166 HistogramTimerScope codegen_timer(&Counters::code_generation); | 165 HistogramTimerScope codegen_timer(&Counters::code_generation); |
| 167 CodeGenState state(this); | 166 CodeGenState state(this); |
| 168 | 167 |
| (...skipping 6771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6940 int CompareStub::MinorKey() { | 6939 int CompareStub::MinorKey() { |
| 6941 // Encode the two parameters in a unique 16 bit value. | 6940 // Encode the two parameters in a unique 16 bit value. |
| 6942 ASSERT(static_cast<unsigned>(cc_) < (1 << 15)); | 6941 ASSERT(static_cast<unsigned>(cc_) < (1 << 15)); |
| 6943 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0); | 6942 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0); |
| 6944 } | 6943 } |
| 6945 | 6944 |
| 6946 | 6945 |
| 6947 #undef __ | 6946 #undef __ |
| 6948 | 6947 |
| 6949 } } // namespace v8::internal | 6948 } } // namespace v8::internal |
| OLD | NEW |