OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 6910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6921 return ToApiHandle<String>(isolate->factory()->InternalizeUtf8String( | 6921 return ToApiHandle<String>(isolate->factory()->InternalizeUtf8String( |
6922 node->entry()->resource_name())); | 6922 node->entry()->resource_name())); |
6923 } | 6923 } |
6924 | 6924 |
6925 | 6925 |
6926 int CpuProfileNode::GetLineNumber() const { | 6926 int CpuProfileNode::GetLineNumber() const { |
6927 return reinterpret_cast<const i::ProfileNode*>(this)->entry()->line_number(); | 6927 return reinterpret_cast<const i::ProfileNode*>(this)->entry()->line_number(); |
6928 } | 6928 } |
6929 | 6929 |
6930 | 6930 |
| 6931 int CpuProfileNode::GetColumnNumber() const { |
| 6932 return reinterpret_cast<const i::ProfileNode*>(this)-> |
| 6933 entry()->column_number(); |
| 6934 } |
| 6935 |
| 6936 |
6931 const char* CpuProfileNode::GetBailoutReason() const { | 6937 const char* CpuProfileNode::GetBailoutReason() const { |
6932 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); | 6938 const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
6933 return node->entry()->bailout_reason(); | 6939 return node->entry()->bailout_reason(); |
6934 } | 6940 } |
6935 | 6941 |
6936 | 6942 |
6937 unsigned CpuProfileNode::GetHitCount() const { | 6943 unsigned CpuProfileNode::GetHitCount() const { |
6938 return reinterpret_cast<const i::ProfileNode*>(this)->self_ticks(); | 6944 return reinterpret_cast<const i::ProfileNode*>(this)->self_ticks(); |
6939 } | 6945 } |
6940 | 6946 |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7528 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); | 7534 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); |
7529 Address callback_address = | 7535 Address callback_address = |
7530 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 7536 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
7531 VMState<EXTERNAL> state(isolate); | 7537 VMState<EXTERNAL> state(isolate); |
7532 ExternalCallbackScope call_scope(isolate, callback_address); | 7538 ExternalCallbackScope call_scope(isolate, callback_address); |
7533 callback(info); | 7539 callback(info); |
7534 } | 7540 } |
7535 | 7541 |
7536 | 7542 |
7537 } } // namespace v8::internal | 7543 } } // namespace v8::internal |
OLD | NEW |