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

Side by Side Diff: src/runtime/runtime-internal.cc

Issue 1122033002: Migrate error messages, part 7. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 7 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/object-observe.js ('k') | src/runtime/runtime-typedarray.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/arguments.h" 7 #include "src/arguments.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/debug.h" 9 #include "src/debug.h"
10 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 isolate, NewReferenceError("not_defined", HandleVector(&name, 1))); 59 isolate, NewReferenceError("not_defined", HandleVector(&name, 1)));
60 } 60 }
61 61
62 62
63 RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) { 63 RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) {
64 HandleScope scope(isolate); 64 HandleScope scope(isolate);
65 DCHECK(args.length() == 1); 65 DCHECK(args.length() == 1);
66 CONVERT_ARG_HANDLE_CHECKED(Object, value, 0); 66 CONVERT_ARG_HANDLE_CHECKED(Object, value, 0);
67 THROW_NEW_ERROR_RETURN_FAILURE( 67 THROW_NEW_ERROR_RETURN_FAILURE(
68 isolate, 68 isolate,
69 NewTypeError("iterator_result_not_an_object", HandleVector(&value, 1))); 69 NewTypeError(MessageTemplate::kIteratorResultNotAnObject, value));
70 } 70 }
71 71
72 72
73 RUNTIME_FUNCTION(Runtime_PromiseRejectEvent) { 73 RUNTIME_FUNCTION(Runtime_PromiseRejectEvent) {
74 DCHECK(args.length() == 3); 74 DCHECK(args.length() == 3);
75 HandleScope scope(isolate); 75 HandleScope scope(isolate);
76 CONVERT_ARG_HANDLE_CHECKED(JSObject, promise, 0); 76 CONVERT_ARG_HANDLE_CHECKED(JSObject, promise, 0);
77 CONVERT_ARG_HANDLE_CHECKED(Object, value, 1); 77 CONVERT_ARG_HANDLE_CHECKED(Object, value, 1);
78 CONVERT_BOOLEAN_ARG_CHECKED(debug_event, 2); 78 CONVERT_BOOLEAN_ARG_CHECKED(debug_event, 2);
79 if (debug_event) isolate->debug()->OnPromiseReject(promise, value); 79 if (debug_event) isolate->debug()->OnPromiseReject(promise, value);
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 return args[0]; 401 return args[0];
402 } 402 }
403 403
404 404
405 RUNTIME_FUNCTION(Runtime_HarmonyToString) { 405 RUNTIME_FUNCTION(Runtime_HarmonyToString) {
406 // TODO(caitp): Delete this runtime method when removing --harmony-tostring 406 // TODO(caitp): Delete this runtime method when removing --harmony-tostring
407 return isolate->heap()->ToBoolean(FLAG_harmony_tostring); 407 return isolate->heap()->ToBoolean(FLAG_harmony_tostring);
408 } 408 }
409 } 409 }
410 } // namespace v8::internal 410 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/object-observe.js ('k') | src/runtime/runtime-typedarray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698