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 23 matching lines...) Expand all Loading... |
34 | 34 |
35 #include "circular-queue-inl.h" | 35 #include "circular-queue-inl.h" |
36 #include "profile-generator-inl.h" | 36 #include "profile-generator-inl.h" |
37 #include "unbound-queue-inl.h" | 37 #include "unbound-queue-inl.h" |
38 | 38 |
39 namespace v8 { | 39 namespace v8 { |
40 namespace internal { | 40 namespace internal { |
41 | 41 |
42 void CodeCreateEventRecord::UpdateCodeMap(CodeMap* code_map) { | 42 void CodeCreateEventRecord::UpdateCodeMap(CodeMap* code_map) { |
43 code_map->AddCode(start, entry, size); | 43 code_map->AddCode(start, entry, size); |
44 if (sfi_address != NULL) { | 44 if (shared != NULL) { |
45 entry->set_shared_id(code_map->GetSFITag(sfi_address)); | 45 entry->set_shared_id(code_map->GetSharedId(shared)); |
46 } | 46 } |
47 } | 47 } |
48 | 48 |
49 | 49 |
50 void CodeMoveEventRecord::UpdateCodeMap(CodeMap* code_map) { | 50 void CodeMoveEventRecord::UpdateCodeMap(CodeMap* code_map) { |
51 code_map->MoveCode(from, to); | 51 code_map->MoveCode(from, to); |
52 } | 52 } |
53 | 53 |
54 | 54 |
55 void CodeDeleteEventRecord::UpdateCodeMap(CodeMap* code_map) { | 55 void CodeDeleteEventRecord::UpdateCodeMap(CodeMap* code_map) { |
56 code_map->DeleteCode(start); | 56 code_map->DeleteCode(start); |
57 } | 57 } |
58 | 58 |
59 | 59 |
60 void SFIMoveEventRecord::UpdateCodeMap(CodeMap* code_map) { | 60 void SharedFunctionMoveEventRecord::UpdateCodeMap(CodeMap* code_map) { |
61 code_map->MoveCode(from, to); | 61 code_map->MoveCode(from, to); |
62 } | 62 } |
63 | 63 |
64 | 64 |
65 TickSampleEventRecord* TickSampleEventRecord::init(void* value) { | 65 TickSampleEventRecord* TickSampleEventRecord::init(void* value) { |
66 TickSampleEventRecord* result = | 66 TickSampleEventRecord* result = |
67 reinterpret_cast<TickSampleEventRecord*>(value); | 67 reinterpret_cast<TickSampleEventRecord*>(value); |
68 result->filler = 1; | 68 result->filler = 1; |
69 ASSERT(result->filler != SamplingCircularQueue::kClear); | 69 ASSERT(result->filler != SamplingCircularQueue::kClear); |
70 // Init the required fields only. | 70 // Init the required fields only. |
(...skipping 20 matching lines...) Expand all Loading... |
91 && tag != Logger::LAZY_COMPILE_TAG | 91 && tag != Logger::LAZY_COMPILE_TAG |
92 && tag != Logger::REG_EXP_TAG | 92 && tag != Logger::REG_EXP_TAG |
93 && tag != Logger::SCRIPT_TAG); | 93 && tag != Logger::SCRIPT_TAG); |
94 } | 94 } |
95 | 95 |
96 } } // namespace v8::internal | 96 } } // namespace v8::internal |
97 | 97 |
98 #endif // ENABLE_LOGGING_AND_PROFILING | 98 #endif // ENABLE_LOGGING_AND_PROFILING |
99 | 99 |
100 #endif // V8_CPU_PROFILER_INL_H_ | 100 #endif // V8_CPU_PROFILER_INL_H_ |
OLD | NEW |