OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 code_map->MoveCode(from, to); | 47 code_map->MoveCode(from, to); |
48 } | 48 } |
49 | 49 |
50 | 50 |
51 void CodeDeleteEventRecord::UpdateCodeMap(CodeMap* code_map) { | 51 void CodeDeleteEventRecord::UpdateCodeMap(CodeMap* code_map) { |
52 code_map->DeleteCode(start); | 52 code_map->DeleteCode(start); |
53 } | 53 } |
54 | 54 |
55 | 55 |
56 void CodeAliasEventRecord::UpdateCodeMap(CodeMap* code_map) { | 56 void CodeAliasEventRecord::UpdateCodeMap(CodeMap* code_map) { |
57 code_map->AddAlias(alias, start); | 57 code_map->AddAlias(start, entry, code_start); |
58 } | 58 } |
59 | 59 |
60 | 60 |
61 TickSampleEventRecord* TickSampleEventRecord::init(void* value) { | 61 TickSampleEventRecord* TickSampleEventRecord::init(void* value) { |
62 TickSampleEventRecord* result = | 62 TickSampleEventRecord* result = |
63 reinterpret_cast<TickSampleEventRecord*>(value); | 63 reinterpret_cast<TickSampleEventRecord*>(value); |
64 result->filler = 1; | 64 result->filler = 1; |
65 ASSERT(result->filler != SamplingCircularQueue::kClear); | 65 ASSERT(result->filler != SamplingCircularQueue::kClear); |
66 // Init the required fields only. | 66 // Init the required fields only. |
67 result->sample.pc = NULL; | 67 result->sample.pc = NULL; |
(...skipping 22 matching lines...) Expand all Loading... |
90 && tag != Logger::FUNCTION_TAG | 90 && tag != Logger::FUNCTION_TAG |
91 && tag != Logger::LAZY_COMPILE_TAG | 91 && tag != Logger::LAZY_COMPILE_TAG |
92 && tag != Logger::SCRIPT_TAG); | 92 && tag != Logger::SCRIPT_TAG); |
93 } | 93 } |
94 | 94 |
95 } } // namespace v8::internal | 95 } } // namespace v8::internal |
96 | 96 |
97 #endif // ENABLE_LOGGING_AND_PROFILING | 97 #endif // ENABLE_LOGGING_AND_PROFILING |
98 | 98 |
99 #endif // V8_CPU_PROFILER_INL_H_ | 99 #endif // V8_CPU_PROFILER_INL_H_ |
OLD | NEW |