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

Side by Side Diff: src/d8.js

Issue 7549008: Preliminary code for block scopes and block contexts. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Small fix: set harmony flag properly Created 9 years, 4 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
« no previous file with comments | « src/d8.cc ('k') | src/factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « src/d8.cc ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698