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

Side by Side Diff: src/debug/mirrors.js

Issue 2132493002: [runtime] Fully remove RUNTIME_ASSERT for good. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-runtime-assert-robust
Patch Set: Rebased. Created 4 years, 5 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
« no previous file with comments | « src/base/logging.cc ('k') | src/runtime/runtime-strings.cc » ('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 2006-2012 the V8 project authors. All rights reserved. 1 // Copyright 2006-2012 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 (function(global, utils) { 5 (function(global, utils) {
6 "use strict"; 6 "use strict";
7 7
8 // ---------------------------------------------------------------------------- 8 // ----------------------------------------------------------------------------
9 // Imports 9 // Imports
10 10
(...skipping 2324 matching lines...) Expand 10 before | Expand all | Expand 10 after
2335 return this.script_.id; 2335 return this.script_.id;
2336 }; 2336 };
2337 2337
2338 2338
2339 ScriptMirror.prototype.source = function() { 2339 ScriptMirror.prototype.source = function() {
2340 return this.script_.source; 2340 return this.script_.source;
2341 }; 2341 };
2342 2342
2343 2343
2344 ScriptMirror.prototype.setSource = function(source) { 2344 ScriptMirror.prototype.setSource = function(source) {
2345 if (!IS_STRING(source)) throw MakeError(kDebugger, "Source is not a string");
2345 %DebugSetScriptSource(this.script_, source); 2346 %DebugSetScriptSource(this.script_, source);
2346 }; 2347 };
2347 2348
2348 2349
2349 ScriptMirror.prototype.lineOffset = function() { 2350 ScriptMirror.prototype.lineOffset = function() {
2350 return this.script_.line_offset; 2351 return this.script_.line_offset;
2351 }; 2352 };
2352 2353
2353 2354
2354 ScriptMirror.prototype.columnOffset = function() { 2355 ScriptMirror.prototype.columnOffset = function() {
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
3051 // Functions needed by the debugger runtime. 3052 // Functions needed by the debugger runtime.
3052 utils.InstallFunctions(utils, DONT_ENUM, [ 3053 utils.InstallFunctions(utils, DONT_ENUM, [
3053 "ClearMirrorCache", ClearMirrorCache 3054 "ClearMirrorCache", ClearMirrorCache
3054 ]); 3055 ]);
3055 3056
3056 // Export to debug.js 3057 // Export to debug.js
3057 utils.Export(function(to) { 3058 utils.Export(function(to) {
3058 to.MirrorType = MirrorType; 3059 to.MirrorType = MirrorType;
3059 }); 3060 });
3060 }) 3061 })
OLDNEW
« no previous file with comments | « src/base/logging.cc ('k') | src/runtime/runtime-strings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698