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

Unified Diff: src/messages.js

Issue 1294583006: Clean up native context slots and add new ones. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/messages.cc ('k') | src/prologue.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/messages.js
diff --git a/src/messages.js b/src/messages.js
index 0d2d3d40f2acd3a51ee3c098ea6690ff4b922a56..5601db63a299250bd4832f512a4aa63077b56c6b 100644
--- a/src/messages.js
+++ b/src/messages.js
@@ -10,17 +10,8 @@ var $internalErrorSymbol;
var $messageGetPositionInLine;
var $messageGetLineNumber;
var $messageGetSourceLine;
-var $noSideEffectToString;
var $stackOverflowBoilerplate;
var $stackTraceSymbol;
-var $toDetailString;
-var $Error;
-var $EvalError;
-var $RangeError;
-var $ReferenceError;
-var $SyntaxError;
-var $TypeError;
-var $URIError;
var MakeError;
var MakeEvalError;
var MakeRangeError;
@@ -1018,16 +1009,6 @@ $errorToString = ErrorToString;
$messageGetPositionInLine = GetPositionInLine;
$messageGetLineNumber = GetLineNumber;
$messageGetSourceLine = GetSourceLine;
-$noSideEffectToString = NoSideEffectToString;
-$toDetailString = ToDetailString;
-
-$Error = GlobalError;
-$EvalError = GlobalEvalError;
-$RangeError = GlobalRangeError;
-$ReferenceError = GlobalReferenceError;
-$SyntaxError = GlobalSyntaxError;
-$TypeError = GlobalTypeError;
-$URIError = GlobalURIError;
MakeError = function(type, arg0, arg1, arg2) {
return MakeGenericError(GlobalError, type, arg0, arg1, arg2);
@@ -1076,7 +1057,16 @@ captureStackTrace = function captureStackTrace(obj, cons_opt) {
GlobalError.captureStackTrace = captureStackTrace;
utils.ExportToRuntime(function(to) {
+ to.Error = GlobalError;
+ to.EvalError = GlobalEvalError;
+ to.RangeError = GlobalRangeError;
+ to.ReferenceError = GlobalReferenceError;
+ to.SyntaxError = GlobalSyntaxError;
+ to.TypeError = GlobalTypeError;
+ to.URIError = GlobalURIError;
to.GetStackTraceLine = GetStackTraceLine;
+ to.NoSideEffectToString = NoSideEffectToString;
+ to.ToDetailString = ToDetailString;
});
});
« no previous file with comments | « src/messages.cc ('k') | src/prologue.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698