OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/base/platform/platform.h" | 8 #include "src/base/platform/platform.h" |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/compiler.h" | 10 #include "src/compiler.h" |
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
986 DCHECK(state < STACK_STATE_MAX); | 986 DCHECK(state < STACK_STATE_MAX); |
987 return stack_state_start_addresses_[state]; | 987 return stack_state_start_addresses_[state]; |
988 } | 988 } |
989 | 989 |
990 void SetStackStateStartAddress(StackState state, uintptr_t addr) { | 990 void SetStackStateStartAddress(StackState state, uintptr_t addr) { |
991 DCHECK(state < STACK_STATE_MAX); | 991 DCHECK(state < STACK_STATE_MAX); |
992 stack_state_start_addresses_[state] = addr; | 992 stack_state_start_addresses_[state] = addr; |
993 } | 993 } |
994 #endif | 994 #endif |
995 | 995 |
996 SmartArrayPointer<char> GetFilename() { | 996 base::SmartArrayPointer<char> GetFilename() { |
997 return String::cast(script()->name())->ToCString(); | 997 return String::cast(script()->name())->ToCString(); |
998 } | 998 } |
999 | 999 |
1000 int GetScriptLineNumber(int pos) { return script()->GetLineNumber(pos) + 1; } | 1000 int GetScriptLineNumber(int pos) { return script()->GetLineNumber(pos) + 1; } |
1001 | 1001 |
1002 | 1002 |
1003 private: | 1003 private: |
1004 const char* name_; | 1004 const char* name_; |
1005 Code* code_; | 1005 Code* code_; |
1006 SharedFunctionInfo* shared_info_; | 1006 SharedFunctionInfo* shared_info_; |
(...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2160 LineInfo* line_info = reinterpret_cast<LineInfo*>(event->user_data); | 2160 LineInfo* line_info = reinterpret_cast<LineInfo*>(event->user_data); |
2161 PutLineInfo(reinterpret_cast<Address>(event->code_start), line_info); | 2161 PutLineInfo(reinterpret_cast<Address>(event->code_start), line_info); |
2162 break; | 2162 break; |
2163 } | 2163 } |
2164 } | 2164 } |
2165 } | 2165 } |
2166 #endif | 2166 #endif |
2167 } // namespace GDBJITInterface | 2167 } // namespace GDBJITInterface |
2168 } // namespace internal | 2168 } // namespace internal |
2169 } // namespace v8 | 2169 } // namespace v8 |
OLD | NEW |