| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "arm64/instrument-arm64.h" | 5 #include "src/arm64/instrument-arm64.h" |
| 6 | 6 |
| 7 namespace v8 { | 7 namespace v8 { |
| 8 namespace internal { | 8 namespace internal { |
| 9 | 9 |
| 10 Counter::Counter(const char* name, CounterType type) | 10 Counter::Counter(const char* name, CounterType type) |
| 11 : count_(0), enabled_(false), type_(type) { | 11 : count_(0), enabled_(false), type_(type) { |
| 12 ASSERT(name != NULL); | 12 ASSERT(name != NULL); |
| 13 strncpy(name_, name, kCounterNameMaxLength); | 13 strncpy(name_, name, kCounterNameMaxLength); |
| 14 } | 14 } |
| 15 | 15 |
| (...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 | 586 |
| 587 | 587 |
| 588 void Instrument::VisitUnimplemented(Instruction* instr) { | 588 void Instrument::VisitUnimplemented(Instruction* instr) { |
| 589 Update(); | 589 Update(); |
| 590 static Counter* counter = GetCounter("Other"); | 590 static Counter* counter = GetCounter("Other"); |
| 591 counter->Increment(); | 591 counter->Increment(); |
| 592 } | 592 } |
| 593 | 593 |
| 594 | 594 |
| 595 } } // namespace v8::internal | 595 } } // namespace v8::internal |
| OLD | NEW |