Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(815)

Side by Side Diff: src/cpu-profiler-inl.h

Issue 6551011: Fix CPU profiling for Crankshaft. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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) {
45 entry->set_shared_id(code_map->GetSFITag(sfi_address));
46 }
44 } 47 }
45 48
46 49
47 void CodeMoveEventRecord::UpdateCodeMap(CodeMap* code_map) { 50 void CodeMoveEventRecord::UpdateCodeMap(CodeMap* code_map) {
48 code_map->MoveCode(from, to); 51 code_map->MoveCode(from, to);
49 } 52 }
50 53
51 54
52 void CodeDeleteEventRecord::UpdateCodeMap(CodeMap* code_map) { 55 void CodeDeleteEventRecord::UpdateCodeMap(CodeMap* code_map) {
53 code_map->DeleteCode(start); 56 code_map->DeleteCode(start);
54 } 57 }
55 58
56 59
57 void CodeAliasEventRecord::UpdateCodeMap(CodeMap* code_map) { 60 void SFIMoveEventRecord::UpdateCodeMap(CodeMap* code_map) {
58 code_map->AddAlias(start, entry, code_start); 61 code_map->MoveCode(from, to);
59 } 62 }
60 63
61 64
62 TickSampleEventRecord* TickSampleEventRecord::init(void* value) { 65 TickSampleEventRecord* TickSampleEventRecord::init(void* value) {
63 TickSampleEventRecord* result = 66 TickSampleEventRecord* result =
64 reinterpret_cast<TickSampleEventRecord*>(value); 67 reinterpret_cast<TickSampleEventRecord*>(value);
65 result->filler = 1; 68 result->filler = 1;
66 ASSERT(result->filler != SamplingCircularQueue::kClear); 69 ASSERT(result->filler != SamplingCircularQueue::kClear);
67 // Init the required fields only. 70 // Init the required fields only.
68 result->sample.pc = NULL; 71 result->sample.pc = NULL;
(...skipping 19 matching lines...) Expand all
88 && tag != Logger::LAZY_COMPILE_TAG 91 && tag != Logger::LAZY_COMPILE_TAG
89 && tag != Logger::REG_EXP_TAG 92 && tag != Logger::REG_EXP_TAG
90 && tag != Logger::SCRIPT_TAG); 93 && tag != Logger::SCRIPT_TAG);
91 } 94 }
92 95
93 } } // namespace v8::internal 96 } } // namespace v8::internal
94 97
95 #endif // ENABLE_LOGGING_AND_PROFILING 98 #endif // ENABLE_LOGGING_AND_PROFILING
96 99
97 #endif // V8_CPU_PROFILER_INL_H_ 100 #endif // V8_CPU_PROFILER_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698