| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 #ifdef DEBUG | 125 #ifdef DEBUG |
| 126 if (strlen(FLAG_stop_at) > 0 && | 126 if (strlen(FLAG_stop_at) > 0 && |
| 127 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { | 127 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { |
| 128 __ int3(); | 128 __ int3(); |
| 129 } | 129 } |
| 130 #endif | 130 #endif |
| 131 | 131 |
| 132 // We can optionally optimize based on counters rather than statistical | 132 // We can optionally optimize based on counters rather than statistical |
| 133 // sampling. | 133 // sampling. |
| 134 if (info->ShouldSelfOptimize()) { | 134 if (info->ShouldSelfOptimize()) { |
| 135 if (FLAG_trace_opt) { | 135 if (FLAG_trace_opt_verbose) { |
| 136 PrintF("[adding self-optimization header to %s]\n", | 136 PrintF("[adding self-optimization header to %s]\n", |
| 137 *info->function()->debug_name()->ToCString()); | 137 *info->function()->debug_name()->ToCString()); |
| 138 } | 138 } |
| 139 MaybeObject* maybe_cell = isolate()->heap()->AllocateJSGlobalPropertyCell( | 139 MaybeObject* maybe_cell = isolate()->heap()->AllocateJSGlobalPropertyCell( |
| 140 Smi::FromInt(Compiler::kCallsUntilPrimitiveOpt)); | 140 Smi::FromInt(Compiler::kCallsUntilPrimitiveOpt)); |
| 141 JSGlobalPropertyCell* cell; | 141 JSGlobalPropertyCell* cell; |
| 142 if (maybe_cell->To(&cell)) { | 142 if (maybe_cell->To(&cell)) { |
| 143 __ sub(Operand::Cell(Handle<JSGlobalPropertyCell>(cell)), | 143 __ sub(Operand::Cell(Handle<JSGlobalPropertyCell>(cell)), |
| 144 Immediate(Smi::FromInt(1))); | 144 Immediate(Smi::FromInt(1))); |
| 145 Handle<Code> compile_stub( | 145 Handle<Code> compile_stub( |
| (...skipping 4290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4436 *context_length = 0; | 4436 *context_length = 0; |
| 4437 return previous_; | 4437 return previous_; |
| 4438 } | 4438 } |
| 4439 | 4439 |
| 4440 | 4440 |
| 4441 #undef __ | 4441 #undef __ |
| 4442 | 4442 |
| 4443 } } // namespace v8::internal | 4443 } } // namespace v8::internal |
| 4444 | 4444 |
| 4445 #endif // V8_TARGET_ARCH_IA32 | 4445 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |