OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 4040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4051 node->entry()->resource_name()))); | 4051 node->entry()->resource_name()))); |
4052 } | 4052 } |
4053 | 4053 |
4054 | 4054 |
4055 int CpuProfileNode::GetLineNumber() const { | 4055 int CpuProfileNode::GetLineNumber() const { |
4056 IsDeadCheck("v8::CpuProfileNode::GetLineNumber"); | 4056 IsDeadCheck("v8::CpuProfileNode::GetLineNumber"); |
4057 return reinterpret_cast<const i::ProfileNode*>(this)->entry()->line_number(); | 4057 return reinterpret_cast<const i::ProfileNode*>(this)->entry()->line_number(); |
4058 } | 4058 } |
4059 | 4059 |
4060 | 4060 |
| 4061 double CpuProfileNode::GetTotalTime() const { |
| 4062 IsDeadCheck("v8::CpuProfileNode::GetTotalTime"); |
| 4063 return reinterpret_cast<const i::ProfileNode*>(this)->GetTotalMillis(); |
| 4064 } |
| 4065 |
| 4066 |
| 4067 double CpuProfileNode::GetSelfTime() const { |
| 4068 IsDeadCheck("v8::CpuProfileNode::GetSelfTime"); |
| 4069 return reinterpret_cast<const i::ProfileNode*>(this)->GetSelfMillis(); |
| 4070 } |
| 4071 |
| 4072 |
4061 double CpuProfileNode::GetTotalSamplesCount() const { | 4073 double CpuProfileNode::GetTotalSamplesCount() const { |
4062 IsDeadCheck("v8::CpuProfileNode::GetTotalSamplesCount"); | 4074 IsDeadCheck("v8::CpuProfileNode::GetTotalSamplesCount"); |
4063 return reinterpret_cast<const i::ProfileNode*>(this)->total_ticks(); | 4075 return reinterpret_cast<const i::ProfileNode*>(this)->total_ticks(); |
4064 } | 4076 } |
4065 | 4077 |
4066 | 4078 |
4067 double CpuProfileNode::GetSelfSamplesCount() const { | 4079 double CpuProfileNode::GetSelfSamplesCount() const { |
4068 IsDeadCheck("v8::CpuProfileNode::GetSelfSamplesCount"); | 4080 IsDeadCheck("v8::CpuProfileNode::GetSelfSamplesCount"); |
4069 return reinterpret_cast<const i::ProfileNode*>(this)->self_ticks(); | 4081 return reinterpret_cast<const i::ProfileNode*>(this)->self_ticks(); |
4070 } | 4082 } |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4227 | 4239 |
4228 | 4240 |
4229 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 4241 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
4230 HandleScopeImplementer* thread_local = | 4242 HandleScopeImplementer* thread_local = |
4231 reinterpret_cast<HandleScopeImplementer*>(storage); | 4243 reinterpret_cast<HandleScopeImplementer*>(storage); |
4232 thread_local->IterateThis(v); | 4244 thread_local->IterateThis(v); |
4233 return storage + ArchiveSpacePerThread(); | 4245 return storage + ArchiveSpacePerThread(); |
4234 } | 4246 } |
4235 | 4247 |
4236 } } // namespace v8::internal | 4248 } } // namespace v8::internal |
OLD | NEW |