OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 #ifdef DEBUG | 143 #ifdef DEBUG |
144 if (strlen(FLAG_stop_at) > 0 && | 144 if (strlen(FLAG_stop_at) > 0 && |
145 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { | 145 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { |
146 __ stop("stop-at"); | 146 __ stop("stop-at"); |
147 } | 147 } |
148 #endif | 148 #endif |
149 | 149 |
150 // We can optionally optimize based on counters rather than statistical | 150 // We can optionally optimize based on counters rather than statistical |
151 // sampling. | 151 // sampling. |
152 if (info->ShouldSelfOptimize()) { | 152 if (info->ShouldSelfOptimize()) { |
153 if (FLAG_trace_opt) { | 153 if (FLAG_trace_opt_verbose) { |
154 PrintF("[adding self-optimization header to %s]\n", | 154 PrintF("[adding self-optimization header to %s]\n", |
155 *info->function()->debug_name()->ToCString()); | 155 *info->function()->debug_name()->ToCString()); |
156 } | 156 } |
157 MaybeObject* maybe_cell = isolate()->heap()->AllocateJSGlobalPropertyCell( | 157 MaybeObject* maybe_cell = isolate()->heap()->AllocateJSGlobalPropertyCell( |
158 Smi::FromInt(Compiler::kCallsUntilPrimitiveOpt)); | 158 Smi::FromInt(Compiler::kCallsUntilPrimitiveOpt)); |
159 JSGlobalPropertyCell* cell; | 159 JSGlobalPropertyCell* cell; |
160 if (maybe_cell->To(&cell)) { | 160 if (maybe_cell->To(&cell)) { |
161 __ li(a2, Handle<JSGlobalPropertyCell>(cell)); | 161 __ li(a2, Handle<JSGlobalPropertyCell>(cell)); |
162 __ lw(a3, FieldMemOperand(a2, JSGlobalPropertyCell::kValueOffset)); | 162 __ lw(a3, FieldMemOperand(a2, JSGlobalPropertyCell::kValueOffset)); |
163 __ Subu(a3, a3, Operand(Smi::FromInt(1))); | 163 __ Subu(a3, a3, Operand(Smi::FromInt(1))); |
(...skipping 4291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4455 *context_length = 0; | 4455 *context_length = 0; |
4456 return previous_; | 4456 return previous_; |
4457 } | 4457 } |
4458 | 4458 |
4459 | 4459 |
4460 #undef __ | 4460 #undef __ |
4461 | 4461 |
4462 } } // namespace v8::internal | 4462 } } // namespace v8::internal |
4463 | 4463 |
4464 #endif // V8_TARGET_ARCH_MIPS | 4464 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |