OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 Debug.ScriptCompilationType = { Host: 0, | 96 Debug.ScriptCompilationType = { Host: 0, |
97 Eval: 1, | 97 Eval: 1, |
98 JSON: 2 }; | 98 JSON: 2 }; |
99 | 99 |
100 | 100 |
101 // The different types of scopes matching constants runtime.cc. | 101 // The different types of scopes matching constants runtime.cc. |
102 Debug.ScopeType = { Global: 0, | 102 Debug.ScopeType = { Global: 0, |
103 Local: 1, | 103 Local: 1, |
104 With: 2, | 104 With: 2, |
105 Closure: 3, | 105 Closure: 3, |
106 Catch: 4 }; | 106 Catch: 4, |
| 107 Block: 5 }; |
107 | 108 |
108 | 109 |
109 // Current debug state. | 110 // Current debug state. |
110 const kNoFrame = -1; | 111 const kNoFrame = -1; |
111 Debug.State = { | 112 Debug.State = { |
112 currentFrame: kNoFrame, | 113 currentFrame: kNoFrame, |
113 displaySourceStartLine: -1, | 114 displaySourceStartLine: -1, |
114 displaySourceEndLine: -1, | 115 displaySourceEndLine: -1, |
115 currentSourceLine: -1 | 116 currentSourceLine: -1 |
116 } | 117 } |
(...skipping 2680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2797 json += NumberToJSON_(elem); | 2798 json += NumberToJSON_(elem); |
2798 } else if (typeof(elem) === 'string') { | 2799 } else if (typeof(elem) === 'string') { |
2799 json += StringToJSON_(elem); | 2800 json += StringToJSON_(elem); |
2800 } else { | 2801 } else { |
2801 json += elem; | 2802 json += elem; |
2802 } | 2803 } |
2803 } | 2804 } |
2804 json += ']'; | 2805 json += ']'; |
2805 return json; | 2806 return json; |
2806 } | 2807 } |
OLD | NEW |